/* ============================================================
   thibaut.parpex — main.css
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base ───────────────────────────────────────────────────── */
html, body {
    width: 100%;
    min-height: 100%;
    background: #000;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Canvas background ──────────────────────────────────────── */
#halftone-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Site wrapper ───────────────────────────────────────────── */
.site-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 48px;
}

.site-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: opacity 0.2s ease;
}

.site-title:hover { opacity: 0.5; }

/* Navigation */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.site-nav a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { opacity: 0.45; }

/* ── Main content ───────────────────────────────────────────── */
.site-main {
    flex: 1;
    padding: 64px 48px;
}

.entry-title,
.page-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 32px;
}

/* entry-content : sans max-width pour laisser les blocs Gutenberg respirer */
.entry-content {
    font-size: 1rem;
    line-height: 1.75;
}

/* Contrainte de lecture sur les éléments texte uniquement */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote {
    max-width: 680px;
}

.entry-content p + p { margin-top: 1.2em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-weight: 400;
    margin-top: 1.6em;
    margin-bottom: 0.5em;
}

/* ── Blocs Gutenberg ────────────────────────────────────────── */

/* Médias et texte */
.entry-content .wp-block-media-text {
    gap: 56px;
    align-items: start;
}

.entry-content .wp-block-media-text .wp-block-media-text__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.entry-content .wp-block-media-text .wp-block-media-text__content {
    padding: 0;
}

.entry-content .wp-block-media-text p {
    max-width: none;
}

/* Colonnes */
.entry-content .wp-block-columns {
    gap: 56px;
}

.entry-content .wp-block-column p {
    max-width: none;
}

/* Image */
.entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.entry-content .wp-block-image figcaption {
    font-size: 0.78rem;
    font-weight: 300;
    opacity: 0.45;
    margin-top: 8px;
}

/* Séparateur */
.entry-content .wp-block-separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin: 40px 0;
    max-width: none;
}

/* Alignement large / pleine largeur */
.entry-content .alignwide {
    margin-left: -48px;
    margin-right: -48px;
}

.entry-content .alignfull {
    margin-left: calc(-48px);
    margin-right: calc(-48px);
    max-width: calc(100% + 96px);
    width: calc(100% + 96px);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 11px 48px;
}

.footer-instagram {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    transition: opacity 0.2s ease;
}

.footer-instagram:hover { opacity: 0.45; }

/* ── Page : Work ────────────────────────────────────────────── */
.work-intro {
    margin-bottom: 52px;
}

.work-filters {
    display: flex;
    gap: 28px;
    margin-bottom: 52px;
}

.work-filter-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.38);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    letter-spacing: 0.07em;
    text-transform: lowercase;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.work-filter-btn:hover,
.work-filter-btn.is-active { color: #fff; }

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px 32px;
}

.work-item a { display: block; }

.work-item-thumb {
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-bottom: 14px;
}

.work-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-item-thumb img { opacity: 0.75; }

.work-item-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 6px;
}

.work-item-meta {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.45;
    text-transform: lowercase;
}

.work-empty {
    opacity: 0.4;
    font-style: italic;
    font-size: 0.95rem;
}

/* ── Page : Contact ─────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.contact-side p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.75;
    max-width: none;
}

.contact-side p + p { margin-top: 1em; }

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

.contact-field { display: flex; flex-direction: column; gap: 8px; }

.contact-field label {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

.contact-field input,
.contact-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    padding: 8px 0;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.contact-field textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-submit {
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    padding: 10px 36px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-submit:hover {
    background: #fff;
    color: #000;
}

.contact-notice {
    font-size: 0.88rem;
    font-weight: 300;
    padding: 12px 0;
    opacity: 0.7;
}

.contact-notice--success { color: #afffaf; }
.contact-notice--error   { color: #ffafaf; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .entry-content .wp-block-media-text {
        grid-template-columns: 1fr !important;
    }

    .entry-content .wp-block-columns {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 12px 24px;
    }

    .site-nav ul { gap: 22px; }
    .site-main    { padding: 48px 24px; }
    .site-footer  { padding: 10px 24px; }

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

    .entry-content .alignwide,
    .entry-content .alignfull {
        margin-left: -24px;
        margin-right: -24px;
    }
}
