/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.5;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 3px;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
:focus {
    outline: 2px solid #4d90fe;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.language-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    z-index: 1001;
}

.lang-btn {
    background: none;
    border: none;
    color: #333;
    font-size: inherit;
    cursor: pointer;
    padding: 0 2px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: #555;
}

.lang-btn.active {
    font-weight: bold;
}

.lang-separator {
    font-size: inherit;
    color: #333;
    margin: 0;
}

/* ========================================
   HEADER & NAVIGATION - DESKTOP
   ======================================== */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0 120px;
    border-bottom: 1px solid #eee;
    margin: 40px auto 20px;
    min-height: 180px;
    max-width: 1400px;
    width: 100%;
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
}

.logo img {
    height: 200px;
    width: auto;
    transition: opacity 0.2s ease;
}

.nav-left,
.nav-right {
    position: absolute;
    bottom: 10px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.nav-left {
    left: 20px;
}

.nav-right {
    right: 20px;
}

nav a {
    text-decoration: none;
    color: #222;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 8px;
    border-radius: 2px;
}

nav a:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.05);
}

nav a.active {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.08);
    color: #000;
}

nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 14px;
    background-color: #222;
}

/* ========================================
   HAMBURGER MENU
   ======================================== */
.hamburger-menu {
    display: none;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px;
    z-index: 1000;
    transition: right 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: block;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   PROJECTS GRID
   ======================================== */
.projects-grid {
    margin: 20px 0;
}

.project {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
}

.project-panorama {
    display: flex;
    height: 200px;
    margin-bottom: 10px;
}

.project-image {
    flex: 1;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    aspect-ratio: 2/1;
}

.project-image:not(:last-child) {
    margin-right: 4px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.4s ease;
}

.project:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    display: flex;
    align-items: center;
}

.project-title {
    font-size: 18px;
    font-weight: 500;
    margin-right: 12px;
}

.project-subtitle {
    font-size: 13px;
    color: #555;
    font-weight: 300;
    padding-left: 12px;
    position: relative;
}

.project-subtitle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 12px;
    width: 1px;
    background-color: #ccc;
}

/* ========================================
   FILM DETAIL
   ======================================== */
.film-detail {
    margin: 30px 0;
    display: none;
}

.film-detail.active {
    display: block;
}

.back-link {
    display: inline-block;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #555;
}

.back-link::before {
    content: "← ";
    margin-right: 5px;
}

.film-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.film-title {
    font-size: 1.8rem;
    font-weight: bold;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.2;
}

.film-subtitle {
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 300;
}

.film-section {
    margin-bottom: 20px;
}

.film-section h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.film-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.film-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.film-tag {
    background-color: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.film-credits,
.award-item {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   GALLERY
   ======================================== */
.film-gallery {
    margin: 40px 0;
}

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

.gallery-item {
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   PHOTOGRAPHY PAGE
   ======================================== */
.photography-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 30px 0;
}

.photo-item {
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: blur(5px);
    will-change: transform, filter;
}

.photo-item img.loaded {
    filter: blur(0);
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   LIGHTBOX
   ======================================== */
body.lightbox-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

body.lightbox-open .language-switcher,
body.lightbox-open .hamburger-menu {
    display: none;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden !important;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 100% !important;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1001;
    pointer-events: auto !important;
}

.lightbox-img {
    max-width: 100% !important;
    max-height: 85vh;
    object-fit: contain !important;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.lightbox-close {
    position: fixed;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003 !important;
    pointer-events: auto !important;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-nav {
    position: fixed;
    top: 0;
    width: 80px;
    height: 100vh;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1002 !important;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    transition: opacity 0.2s ease;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    text-align: center;
    padding: 30px 0 15px;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-links a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.social-icon {
    width: 24px !important;
    height: 24px !important;
    fill: #333;
    display: inline-block;
    vertical-align: middle;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.about-text {
    height: 100%;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.about-image {
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

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

/* ========================================
   QUOTES - TAILLE FLUIDE UNIVERSELLE
   ======================================== */
.quote,
.fragments-intro {
    text-align: center;
    font-style: italic;
    color: #222;
    margin: clamp(0.5rem, 3vw, 40px) auto;
    padding: 0 20px;
    font-size: clamp(0.7rem, 1.8vw, 16px);
    line-height: 1.4;
    max-width: clamp(85%, 90vw, 1200px);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.quote-section {
    background-color: #f5f5f5;
    padding: 40px;
    margin: 60px 0;
    text-align: center;
    position: relative;
}

.quote-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote-portrait {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quote-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-text {
    font-style: italic;
    font-size: 19px;
    line-height: 1.6;
    color: #333;
    margin: 0 auto 20px;
}

.quote-author {
    font-weight: 600;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    margin: 40px 0;
}

.contact-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 15px;
}

.contact-details h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details p {
    font-size: 15px;
    color: #666;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
}

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

.honeypot {
    display: none;
}

.submit-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #555;
}

.form-message {
    color: green;
    text-align: center;
    margin-top: 10px;
}

/* ========================================
   FRAGMENTS PAGE
   ======================================== */
.fragments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 30px 0;
}

.fragment-item {
    text-align: center;
    margin-bottom: 20px;
}

.fragment-item img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.fragment-caption {
    font-size: 12px;
    color: #555;
    font-style: italic;
    margin-top: 8px;
    text-align: center;
}

.fragment-diptych {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */

/* TABLETTE (601px - 1024px) */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .nav-left,
    .nav-right {
        display: none;
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        left: 20px;
        top: 15px;
        z-index: 1002;
    }

    header {
        min-height: 180px;
        padding: 15px 0 32px;
    }

    .logo {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .logo img {
        height: 140px;
        width: auto;
        max-width: 90%;
        max-height: 140px;
        display: block;
        object-fit: contain;
    }

    .project-panorama {
        height: 160px;
    }

    .project-image {
        aspect-ratio: 2/1;
    }

    .photography-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content,
    .contact-grid {
        gap: 25px;
    }

    .lightbox-nav {
        display: none !important;
    }

    .lightbox-close {
        font-size: 32px;
        width: 48px;
        height: 48px;
    }

    main {
        margin-top: 40px;
    }
}

/* MOBILE PAYSAGE */
@media screen and (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .nav-left,
    .nav-right {
        display: none;
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        left: 15px;
        top: 10px;
        z-index: 1002;
    }

    header {
        min-height: 60px;
        padding: 5px 0 15px;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .logo {
        top: 12px;
        transform: translateX(-50%);
    }

    .logo img {
        height: 52px;
        object-fit: contain;
    }

    .language-switcher {
        top: 5px;
        right: 10px;
    }

    .project-panorama {
        height: 100px;
    }

    .project-image {
        aspect-ratio: 2/1;
    }
}

/* MOBILE PORTRAIT (max 768px) */
@media (max-width: 768px) {
    header {
        min-height: 95px;
        padding: 10px 0 28px;
        margin-top: 5px;
        margin-bottom: 15px;
    }

    .logo {
        top: 22px;
        transform: translateX(-50%);
    }

    .logo img {
        height: 70px;
        object-fit: contain;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        left: 15px;
        top: 30px;
        z-index: 1002;
    }

    .project-panorama {
        height: auto;
        flex-direction: row;
        gap: 6px;
    }

    .project-image {
        aspect-ratio: 2/1;
        min-height: 90px;
    }
    
    .project-image:not(:last-child) {
        margin-right: 0;
    }

    .project-info {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .project-title {
        font-size: 16px;
    }

    .project-subtitle {
        font-size: 12px;
    }

    .film-header {
        grid-template-columns: 1fr;
        gap: 20px;
        display: flex;
        flex-direction: column;
    }

    .film-header .film-video {
        order: -1;
        margin-bottom: 5px;
    }

    .film-title {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        height: 300px;
    }

    .fragment-diptych {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        display: none;
    }

    .lightbox-close {
        font-size: 28px;
    }

    .quote-section {
        padding: 30px 20px;
    }

    .quote-text {
        font-size: 15px;
    }

    .contact-section {
        margin: 40px 0;
    }

    .contact-section h2 {
        font-size: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-form {
        padding: 20px;
    }

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

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 14px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .submit-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* MOBILE PETIT (max 600px) */
@media screen and (max-width: 600px) {
    .project-image {
        min-height: 75px;
    }
}

/* MOBILE TRÈS PETIT (max 480px) */
@media (max-width: 480px) {
    .mobile-nav {
        width: 80%;
    }

    .photography-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .project-image {
        min-height: 65px;
    }
}

/* ============================================
   MANIFESTE BLOCK
   ============================================ */

.manifeste-block {
    max-width: 720px;
    margin: 100px auto;
    padding: 60px 50px;
    font-family: "Garamond", "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2a2a2a;
    background-image: url('/FOND_PAPIER.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid #bdb5a8;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
    position: relative;
    overflow: hidden;
}

.manifeste-block.visible {
    opacity: 1;
    transform: translateY(0);
}



.manifeste-block h2 {
    text-align: center;
    font-size: 1.85rem;
    margin-bottom: 50px;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1;
}

.manifeste-content {
    position: relative;
    z-index: 1;
}

.manifeste-content p {
    margin-bottom: 1.6em;
    text-indent: 1.2em;
}

.manifeste-content em {
    font-style: italic;
}

.manifeste-content .signature {
    margin-top: 3.5em;
    text-align: right;
    font-size: 0.95rem;
    color: #555;
    text-indent: 0;
}

@media (max-width: 768px) {
    .manifeste-block {
        margin: 60px 20px;
        padding: 40px 30px;
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .manifeste-block h2 {
        font-size: 1.5rem;
        margin-bottom: 35px;
    }

    .manifeste-content p {
        text-indent: 0.8em;
    }
}
