/* === NOUVEAU DESIGN - NAVIGATION MODERNE === */

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --border-color: #333333;
    --hover-color: #444444;
    --sidebar-width: 300px;
    --header-height: 60px;
    --nav-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    cursor: default;
}

/* === CURSEUR PERSONNALISÉ === */
.custom-cursor {
    position: fixed;
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.custom-cursor.active {
    display: block;
    opacity: 1;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 30px, rgba(255,255,255,0.2) 80px, transparent 150px);
    z-index: 1;
}

.custom-cursor::after {
    content: '♥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
    z-index: 2;
}

.main-image,
.mosaic-item img,
.mosaic-item video {
    cursor: none !important;
}

/* === HEADER FIXE === */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    overflow: hidden;
}

.site-title {
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 3px;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-title a:hover {
    opacity: 0.6;
}

.site-title strong {
    font-size: 1.4rem;
    font-weight: normal;
}

.site-title small {
    font-size: 0.9rem;
}

/* Style pour la page contact (utilise classe .logo) */
.logo {
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 3px;
}

.logo a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.6;
}

.logo strong {
    font-size: 1.4rem;
    font-weight: normal;
}

.logo small {
    font-size: 0.9rem;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: opacity 0.3s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.6;
}

/* === NAVIGATION PROJETS (GAUCHE VERTICALE) === */
.project-nav-left {
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    width: 200px;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    overflow-y: auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-nav-left::-webkit-scrollbar {
    width: 4px;
}

.project-nav-left::-webkit-scrollbar-track {
    background: transparent;
}

.project-nav-left::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.project-nav-left::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.project-nav-item {
    flex-shrink: 0;
    cursor: pointer;
    padding: 0.8rem 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: normal;
    line-height: 1.3;
    text-align: left;
    opacity: 0.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
}

.project-nav-item:hover {
    opacity: 1;
}

.project-nav-item.active {
    opacity: 1;
}

/* === DESCRIPTIF PROJET EN BAS === */
.project-info-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 2rem 2rem 50px;
    overflow-y: auto;
    z-index: 10;
}

.project-info-bottom::-webkit-scrollbar {
    width: 4px;
}

.project-info-bottom::-webkit-scrollbar-track {
    background: transparent;
}

.project-info-bottom::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.project-info-content {
    max-width: none;
    margin: 0;
    padding-right: 150px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: normal;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.project-infos {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.project-descriptif {
    font-size: 0.9rem;
    line-height: 1.8;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.project-descriptif p {
    margin-bottom: 1rem;
}

.project-descriptif a {
    color: var(--text-color);
    text-decoration: underline;
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* === BOUTON VOIR PLUS === */
.view-more-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.5;
    padding: 1rem 0;
    text-align: left;
    font-family: inherit;
    z-index: 20;
}

.view-more-btn:hover {
    opacity: 1;
}

/* === CONTAINER PRINCIPAL === */
.main-container {
    position: fixed;
    left: 200px;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    transition: left 0.4s ease;
}

/* === VUE GALERIE (IMAGE PLEIN ÉCRAN) === */
.gallery-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.current-project-display {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.4s ease;
    cursor: pointer;
}

.main-image:hover {
    transform: scale(1.015);
}

#main-project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

#main-project-video:hover {
    transform: scale(1.015);
}

/* === NAVIGATION PROJETS (BAS) === */
.project-nav-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: var(--nav-height);
    background-color: transparent;
    border-top: none;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
}

.project-nav-bottom::-webkit-scrollbar {
    height: 4px;
}

.project-nav-bottom::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.project-nav-bottom::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

.project-nav-item {
    flex-shrink: 0;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: normal;
    max-width: 200px;
    line-height: 1.3;
    text-align: center;
    opacity: 0.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.project-nav-item:hover {
    opacity: 1;
}

.project-nav-item.active {
    opacity: 1;
}

/* === VUE MOSAÏQUE === */
.mosaic-view {
    width: 100%;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
}

.mosaic-view.hidden {
    display: none;
}

.next-project-btn {
    grid-column: 1 / -1;
    padding: 1.5rem;
    text-align: center;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-top: 2rem;
    opacity: 0.5;
}

.next-project-btn:hover {
    opacity: 1;
}

/* Descriptif sous la mosaïque */
.mosaic-project-info {
    max-width: 1200px;
    margin: 3rem auto 2rem auto;
    padding: 0 2rem;
}

.mosaic-project-info .project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.mosaic-project-info .project-infos {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.mosaic-project-info .project-descriptif {
    font-size: 0.9rem;
    line-height: 1.8;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    width: 100%;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1;
}

.mosaic-item img,
.mosaic-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.mosaic-item:hover img,
.mosaic-item:hover video {
    transform: scale(1.03);
}

.mosaic-item.expanded {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.mosaic-item.main-featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* Canvas pour modèles 3D dans mosaïque */
.mosaic-item canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* === UTILITIES === */
.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Réduire le header */
    .main-header {
        padding: 0 1rem;
        height: 50px;
    }
    
    :root {
        --header-height: 50px;
    }
    
    .site-title {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .site-title strong {
        font-size: 1rem;
    }
    
    .site-title small {
        font-size: 0.7rem;
    }
    
    /* Styles pour page contact */
    .logo {
        font-size: 0.85rem;
        letter-spacing: 1px;
        max-width: 60%;
    }
    
    .logo strong {
        font-size: 1rem;
    }
    
    .logo small {
        font-size: 0.7rem;
    }
    
    .main-nav {
        gap: 1rem;
        padding: 0 1rem;
        height: 50px;
    }
    
    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    /* Navigation verticale plus compacte sur tablette */
    .project-nav-left {
        width: 150px;
    }
    
    .project-nav-item {
        font-size: 0.7rem;
        padding: 0.6rem 0.4rem;
    }
    
    /* Main container ajusté */
    .main-container {
        left: 150px;
    }
    
    /* Info bottom ajustée - s'étend jusqu'au bord gauche */
    .project-info-bottom {
        left: 0;
        height: 180px;
        padding: 1.5rem 1.5rem 1.5rem 170px;
    }
    
    /* Bouton VOIR PLUS ajusté pour tablette */
    .view-more-btn {
        right: 1.5rem;
        bottom: 1.5rem;
        font-size: 0.65rem;
    }
    
    .project-info-content {
        max-width: none;
        padding-right: 120px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-infos {
        font-size: 0.75rem;
    }
    
    .project-descriptif {
        font-size: 0.8rem;
        line-height: 1.7;
    }
    
    /* Mosaïque adaptée */
    .mosaic-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0;
    }
    
    /* Désactiver l'expansion sur mobile (trop petit) */
    .mosaic-item.expanded,
    .mosaic-item.main-featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* Boutons plus petits */
    .next-project-btn,
    .view-more-btn {
        font-size: 0.65rem;
        padding: 0.8rem;
    }
    
    /* Descriptif mosaïque adapté sur tablette */
    .mosaic-project-info {
        padding: 0 1.5rem;
        margin: 2rem auto 1.5rem auto;
    }
    
    .mosaic-project-info .project-title {
        font-size: 1.1rem;
    }
    
    .mosaic-project-info .project-infos {
        font-size: 0.8rem;
    }
    
    .mosaic-project-info .project-descriptif {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    /* Curseur personnalisé caché sur mobile */
    .custom-cursor {
        display: none !important;
    }
    
    .main-image,
    .mosaic-item img,
    .mosaic-item video {
        cursor: default !important;
    }
    
    /* Zoom plus subtil sur mobile */
    .main-image:hover,
    #main-project-video:hover {
        transform: scale(1.01);
    }
    
    .mosaic-item:hover img,
    .mosaic-item:hover video {
        transform: scale(1.02);
    }
}

/* Très petits écrans (smartphones en portrait) */
@media (max-width: 480px) {
    .main-header {
        padding: 0 0.5rem;
    }
    
    .site-title {
        font-size: 0.6rem;
        letter-spacing: 0.3px;
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .site-title strong {
        font-size: 0.75rem;
    }
    
    .site-title small {
        font-size: 0.55rem;
    }
    
    /* Styles pour page contact sur mobile */
    .logo {
        font-size: 0.6rem;
        letter-spacing: 0.3px;
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo strong {
        font-size: 0.75rem;
    }
    
    .logo small {
        font-size: 0.55rem;
    }
    
    .main-nav {
        padding: 0 0.5rem;
        height: 50px;
        gap: 0.3rem;
        overflow: hidden;
    }
    
    .nav-link {
        font-size: 0.55rem;
        letter-spacing: 0.3px;
        padding: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Navigation verticale visible mais compacte sur smartphone */
    .project-nav-left {
        width: 80px;
        background: rgba(0, 0, 0, 0.95);
        padding: 1rem 0.3rem;
    }
    
    .project-nav-item {
        font-size: 0.65rem;
        padding: 0.6rem 0.2rem;
        text-align: center;
        writing-mode: horizontal-tb;
    }
    
    /* Main container avec espace pour navigation */
    .main-container {
        left: 80px;
        right: 0;
    }
    
    /* Info bottom en plein largeur avec padding pour navigation */
    .project-info-bottom {
        left: 0;
        height: 200px;
        padding: 1rem 1rem 1rem 50px;
    }
    
    /* Bouton VOIR PLUS plus proche du bord sur mobile */
    .view-more-btn {
        right: 1rem;
        bottom: 1rem;
        font-size: 0.6rem;
    }
    
    .project-info-content {
        max-width: none;
        padding-right: 90px;
    }
    
    .project-title {
        font-size: 0.9rem;
    }
    
    .project-infos {
        font-size: 0.7rem;
    }
    
    .project-descriptif {
        font-size: 0.75rem;
        line-height: 1.65;
    }
    
    .mosaic-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    /* Descriptif mosaïque adapté sur mobile */
    .mosaic-project-info {
        padding: 0 1rem;
        margin: 1.5rem auto 1rem auto;
    }
    
    .mosaic-project-info .project-title {
        font-size: 0.95rem;
    }
    
    .mosaic-project-info .project-infos {
        font-size: 0.7rem;
    }
    
    .mosaic-project-info .project-descriptif {
        font-size: 0.75rem;
        line-height: 1.65;
    }
}

/* === PAGE CONTACT === */
.main-nav {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.contact-content {
    padding: 3rem 2rem;
    min-height: calc(100vh - 80px);
}

.contact-content h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 3px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 1rem;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.contact-info p {
    color: var(--text-color);
    opacity: 0.8;
}

.contact-info strong {
    font-size: 0.9rem;
}

.contact-info small {
    font-size: 0.75rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.form-group input,
.form-group textarea {
    padding: 0.5rem;
    background-color: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.contact-form button[type="submit"],
.btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.5;
    padding: 1.5rem;
    text-align: center;
    font-family: inherit;
}

.contact-form button[type="submit"]:hover,
.btn:hover {
    opacity: 1;
}

/* Contact mobile */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        width: 100%;
    }
}
