﻿@charset "UTF-8";

/* ===== CSS VARIABLES — identiques .com ===== */
:root {
    --bg-color: #121212;
    --text-color: #FDFFFC;
    --font-weight: 100;
    --text-color-faded: rgba(253, 255, 252, 0.7);
	--text-color-faded-fade: rgba(253, 255, 252, 0.4);
    --border-color: rgba(253, 255, 252, 0.7);
    --border-color-faded: rgba(253, 255, 252, 0.2);
    --transition: 0.3s ease;
    --bg-overlay: transparent;
    --hover-bg: rgba(253, 255, 252, 0.05);
}

/* ===== LIGHT MODE — identique .com ===== */
:root.light-mode {
    --bg-color: #FDFFFC;
    --text-color: #121212;
    --text-color-faded: rgba(18, 18, 18, 0.7);
    --border-color: rgba(18, 18, 18, 0.7);
    --border-color-faded: rgba(18, 18, 18, 0.2);
    --bg-overlay: transparent;
    --hover-bg: rgba(18, 18, 18, 0.05);
}

/* ===== RESET — identique .com ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "argent-pixel-cf", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-style: normal;
    font-weight: 200;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 60px;
    transition: background-color var(--transition), color var(--transition);
}
body.loading, body.no-scroll { overflow: hidden; }

/* ===== LAYOUT CONTAINER — identique .com ===== */
.main-container {
    width: 100%;
    max-width: 1400px;
    padding: 40px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* ===== HEADER — identique .com ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    transition: border-color var(--transition);
}
.logo {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-color-faded); }

/* Emoji ● */
.emoji {
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.emoji:hover { transform: rotate(180deg); }

/* ===== FILTRES — style adapté .ch ===== */
.filter-container {
    margin-bottom: 40px;
}
.filter-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}
.filter-select {
    font-family: "argent-pixel-cf", "Inter", sans-serif;
    color: var(--text-color);
    font-weight: 200;
    font-size: 14px;
    letter-spacing: -0.03em;
    padding: 8px 28px 8px 12px;
    background-color: transparent;
    border: 0.5px solid var(--border-color-faded);
    border-radius: 0;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23FDFFFC' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 1.2em;
    transition: all var(--transition);
}
.filter-select:hover {
    background-color: var(--hover-bg);
    border-color: var(--text-color);
}
.filter-select:focus { outline: none; }
.filter-select option {
    background-color: var(--bg-color);
    color: var(--text-color);
}
:root.light-mode .filter-select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23121212' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

/* ===== LISTE POSTERS — UX spécifique .ch ===== */
.projects {
    list-style: none;
    padding: 0;
    margin: 0;
}
.project {
    padding: 0.25rem 0;
    font-size: 14px;
    cursor: default;
    transition: padding 0.3s ease;
    letter-spacing: -0.03em;
}
.project.hovered {
    padding-left: 0.5rem;
    cursor: pointer;
}
.project span {
    color: var(--text-color-faded-fade);
    font-weight: 200;
}

/* ===== IMAGES HOVER PREVIEW ===== */
.project-image {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 465px;
    height: auto;
    object-fit: cover;
    pointer-events: none;
    z-index: 50;
}
.project-image-horizontal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 680px;
    height: auto;
    object-fit: cover;
    pointer-events: none;
    z-index: 50;
}
.project-image.active            { display: block; }
.project-image-horizontal.active { display: block; }

/* ===== OVERLAY CLICK ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(1, 1, 1, 0.85);
    z-index: 1999;
    justify-content: center;
    align-items: center;
}
.overlay.active { display: flex; }
.enlarged-image { max-width: 90%; max-height: 80vh; object-fit: contain; }

/* ===== FOOTER — identique .com mais simplifié ===== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    z-index: 2000;
    transition: background-color var(--transition), border-color var(--transition);
}
.footer-content {
    width: calc(100% - 80px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color-faded);
    transition: border-color var(--transition);
}
.footer-content a {
    color: var(--text-color-faded);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}
.footer-content a:hover { color: var(--text-color); }
#poster-count {
    font-size: 14px;
    color: var(--text-color-faded);
}
.date {
    font-size: 14px;
    color: var(--text-color-faded);
}

/* ===== LOADER — identique .com ===== */
.loader-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}
.loader { display: flex; gap: 0.5rem; align-items: center; }
.shape { width: 20px; height: 20px; background: var(--text-color); animation: bounce 1s infinite; }
.circle { border-radius: 50%; animation-delay: 0s; }
.square { animation-delay: 0.2s; }
.triangle {
    width: 0; height: 0;
    background: transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid var(--text-color);
    animation-delay: 0.4s;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px); }
}

/* ===== RESPONSIVE — identique .com ===== */
@media (max-width: 1024px) {
    .main-container { padding: 30px; }
    header { margin-bottom: 40px; align-items: flex-start; }
    .nav-links { gap: 20px; }
    .project-image, .project-image-horizontal { display: none !important; }
    .enlarged-image { max-width: 80%; max-height: 80vh; }
}
@media (max-width: 768px) {
    .main-container { padding: 20px; }
    header { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
    .logo { font-size: 14px; line-height: 1.3; }
    .nav-links { width: 100%; justify-content: space-between; font-size: 14px; }
    .filter-container { margin-bottom: 30px; }
    .footer-content { padding: 0.8rem 20px; }
	.date{display:none;}
    .enlarged-image { max-width: 90%; max-height: 60vh; }
}
@media (max-width: 414px) {
    .enlarged-image { max-width: 95%; max-height: 50vh; }
}
@media (max-width: 1200px) and (orientation: landscape) {
    .project-image { width: 440px; right: 40%; top: 50%; transform: translate(-40%, -50%); }
}

/* ===== FADE IN/OUT — requis par le JS ===== */
#main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}
#main-content.fade-in  { opacity: 1; }
.loader-container.fade-out { opacity: 0; pointer-events: none; }