/* ==========================================================================
   Sabine Delafon Website Stylesheet
   Designed from Figma Prototype (Final Page)
   Typography: Helvetica / Helvetica Neue
   ========================================================================== */

/* --- CSS Variables & Theme --- */
:root {
    --font-primary: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-logo: "HelveticaNeue-UltraLight", "Helvetica Neue UltraLight", "Helvetica Neue Ultra Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-text-secondary: #555555;
    --color-text-muted: #777777;
    --color-line: #111111;
    --color-border: #dcdcdc;
    --color-btn-bg: #cccccc;
    --color-btn-hover: #b8b8b8;
    --color-placeholder: #f4f4f4;

    --container-max-width: 988px;
    --gap-grid: 18px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-width: 1024px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.8125rem; /* ~13px */
    line-height: 1.45;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    min-width: 1024px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 400;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s ease, color 0.15s ease;
}

button, input, textarea, select {
    font-family: inherit;
    font-weight: 400;
}

/* --- Lists --- */
ul, ol {
    list-style-position: inside;
    margin: 8px 0;
    padding: 0;
}

li {
    margin-bottom: 4px;
}

/* --- Container & Layout --- */
.site-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 24px 20px 96px;
    width: 100%;
}

/* --- Separator Lines --- */
.header-top-line,
.header-bottom-line,
.content-line,
.project-card-line {
    width: 100%;
    height: 0.5px;
    background-color: var(--color-line);
}

.content-line {
    margin: 0;
}

.project-card-line {
    margin: 34px 0;
}

/* --- Header --- */
.site-header {
    width: 100%;
    margin-bottom: 0;
}

.header-brand-wrap {
    padding: 48px 0 78px;
}

.header-brand {
    display: inline-block;
    font-family: var(--font-logo);
    font-weight: 100;
    font-size: min(100px, 10.12vw);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 0.95;
}

@media (min-width: 988px) {
    .header-brand {
        font-size: 100px;
    }
}

.header-brand:hover {
    opacity: 0.85;
}

/* --- Navigation --- */
.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 16px;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 14px;
    position: relative;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-text);
}

.nav-link.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 3px;
    vertical-align: middle;
    border-top: 3px solid currentColor;
    border-right: 3px solid transparent;
    border-left: 3px solid transparent;
}

/* --- Dropdown Menu --- */
.nav-item.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background-color: #ffffff;
    border: 0.5px solid var(--color-line);
    list-style: none;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu,
.nav-item.has-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    transition: background-color 0.1s ease, color 0.1s ease;
}

.dropdown-link:hover,
.dropdown-link.is-active {
    color: var(--color-text);
    background-color: #f7f7f7;
}

/* --- Page Typography & Common Headings --- */
.page-header-wrap {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 18px 0;
}

.page-title {
    font-size: 1.35rem; /* ~21.5px */
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin: 0;
    line-height: 1.15;
}

/* --- Homepage Intro Section --- */
.home-intro-section {
    padding: 34px 0 34px;
}

.home-intro-section .page-title {
    margin-bottom: 14px;
}

.intro-text-wrap {
    display: flex;
    flex-direction: column;
}

.intro-text {
    font-size: 0.78rem; /* ~12.5px */
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.intro-text p + p {
    margin-top: 8px;
}

.quote-author {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-align: right;
    margin-top: 6px;
}

/* --- 3-Column Projects Grid (Homepage) --- */
.home-projects-section {
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--gap-grid);
    row-gap: 28px;
    padding: 34px 0 38px;
}

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

.project-card-image-link {
    display: block;
    width: 100%;
}

.project-card-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 5.2;
    overflow: hidden;
    background-color: var(--color-placeholder);
    position: relative;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.project-card-image-link:hover .project-card-img,
.project-card-image-link:hover .project-card-video-wrap {
    opacity: 0.92;
}

.project-card-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-placeholder);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.project-card-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 232%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    border: none;
    pointer-events: none;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-placeholder);
}

.project-card-info {
    margin-top: 0;
}

.project-card-title {
    font-size: 0.8125rem; /* ~13px */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text);
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.project-card-title a:hover {
    opacity: 0.7;
}

.project-card-desc {
    font-size: 0.75rem; /* ~12px */
    line-height: 1.4;
    color: var(--color-text-secondary);
}

.project-card-desc p + p {
    margin-top: 4px;
}

/* --- Single Project Page --- */
.project-single {
    width: 100%;
}

.project-intro-section {
    width: 100%;
}

.project-intro-header {
    padding: 32px 0 34px;
}

.project-full-title {
    margin-bottom: 14px;
}

.project-intro-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.project-intro-desc p + p {
    margin-top: 8px;
}

.project-series-section {
    width: 100%;
}

.series-header {
    padding: 32px 0 34px;
}

.series-title {
    margin-bottom: 14px;
}

.series-intro {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.series-intro p + p {
    margin-top: 8px;
}

/* Split Gallery Row: Left Slider (~55%), Right Thumbnails (~45%) */
.project-gallery-row {
    display: grid;
    grid-template-columns: 55% 1fr;
    column-gap: var(--gap-grid);
    align-items: start;
    padding: 34px 0 38px;
}

/* Left Slider Column */
.gallery-col-slider {
    display: flex;
    flex-direction: column;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-placeholder);
    overflow: hidden;
    user-select: none;
}

.slider-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide.is-active {
    opacity: 1;
    visibility: visible;
}

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

/* Slider Prev / Next Arrows */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 16px 12px;
    color: #444444;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.slider-nav-btn:hover {
    color: #000000;
}

.slider-btn-prev {
    left: 4px;
}

.slider-btn-next {
    right: 4px;
}

.nav-arrow {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    display: block;
}

/* Slider Pagination Dots */
.slider-pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
}

.pagination-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d8d8d8;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.pagination-dot:hover {
    background-color: #999999;
}

.pagination-dot.is-active {
    background-color: #888888;
    transform: scale(1.15);
}

/* Right Thumbnail Grid Column (4x4) */
.gallery-col-thumbs {
    width: 100%;
}

.thumbs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.thumb-item {
    aspect-ratio: 1 / 1;
    width: 100%;
    background-color: var(--color-placeholder);
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: opacity 0.15s ease;
}

.thumb-item:hover {
    opacity: 0.8;
}

.thumb-item.is-active {
    outline: 2px solid var(--color-line);
    outline-offset: -2px;
}

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

/* --- Single Image Block (Project Layout) --- */
.project-block-single-image {
    width: 100%;
}

.project-single-image-container {
    padding: 34px 0 38px;
    width: 100%;
}

.project-single-image-wrap {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Horizontal image: spans full column width */
.project-single-image-wrap.is-landscape .project-single-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Non-horizontal image (portrait / square): maximum height to avoid dominating viewport */
.project-single-image-wrap.is-non-landscape .project-single-image {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 75vh;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.project-single-image-caption {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

/* --- Video Block (Project Layout) --- */
.project-block-video {
    width: 100%;
}

.project-single-video-container {
    padding: 34px 0 38px;
    width: 100%;
}

.project-single-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background-color: #000000;
    overflow: hidden;
}

.project-single-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.project-single-video-caption {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin-top: 10px;
}

/* --- Audio Block (Project Layout) --- */
.project-block-audio {
    width: 100%;
}

.project-single-audio-container {
    padding: 34px 0 38px;
    width: 100%;
}

.project-single-audio-title {
    font-size: 13px;
    line-height: 18px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.project-single-audio-wrap {
    width: 100%;
}

.project-single-audio-player {
    display: block;
    width: 100%;
    height: 40px;
    outline: none;
    accent-color: var(--color-text);
}

.project-single-audio-caption {
    font-size: 12px;
    line-height: 17px;
    color: var(--color-text-secondary);
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

/* Project Footer Details & Exhibitions */
.project-footer-details {
    padding: 34px 0 38px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.project-body-text {
    margin-bottom: 16px;
}

.project-specifications {
    margin-bottom: 16px;
    color: var(--color-text);
}

.project-exhibitions {
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.project-footer-details p + p {
    margin-top: 10px;
}

/* --- History Page --- */
.history-page {
    width: 100%;
}

.history-intro-wrap {
    padding: 28px 0 32px;
}

.history-intro-text {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.history-intro-text p + p {
    margin-top: 6px;
}

.history-intro-text ol,
.history-intro-text ul {
    list-style-position: inside;
    margin-top: 6px;
    padding: 0;
}

.history-intro-text li {
    margin-bottom: 2px;
}

.history-grid-section {
    width: 100%;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--gap-grid);
    row-gap: 28px;
    padding: 34px 0 38px;
}

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

.history-card-link {
    display: block;
    width: 100%;
}

.history-card-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 5.2;
    background-color: var(--color-placeholder);
    overflow: hidden;
}

.history-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s ease;
}

.history-card-link:hover .history-card-img {
    opacity: 0.9;
}

.history-placeholder {
    background-color: #f0f0f0;
}

.history-card-info {
    margin-top: 10px;
}

.history-card-title {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 4px;
}

.history-card-desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* --- Biography Page --- */
.biography-page {
    width: 100%;
}

.biography-content-wrap {
    padding: 34px 0 48px;
}

.biography-text {
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.biography-text p + p {
    margin-top: 14px;
}

.biography-download {
    margin-top: 24px;
}

.cv-download-link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 0.5px solid var(--color-line);
    padding-bottom: 2px;
}

.cv-download-link:hover {
    opacity: 0.7;
}

/* --- Contact Page --- */
.contact-page {
    width: 100%;
}

.contact-content-wrap {
    padding: 34px 0 48px;
}

.contact-form {
    max-width: 435px;
    width: 100%;
}

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

.form-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.8125rem;
    color: var(--color-text);
    background-color: transparent;
    border: 0.5px solid var(--color-border);
    border-radius: 0;
    padding: 8px 10px;
    transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-line);
}

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

.form-actions {
    margin-top: 20px;
}

.form-submit-btn {
    display: inline-block;
    background-color: var(--color-btn-bg);
    color: var(--color-text);
    border: none;
    border-radius: 0;
    padding: 8px 26px;
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.form-submit-btn:hover {
    background-color: var(--color-btn-hover);
}

.contact-alert {
    max-width: 435px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 0.78rem;
    border: 0.5px solid;
}

.contact-alert-success {
    background-color: #f7faf7;
    border-color: #559955;
    color: #2e692e;
}

.contact-alert-error {
    background-color: #fff9f9;
    border-color: #cc4444;
    color: #aa2222;
}

.contact-additional-info {
    margin-top: 32px;
    max-width: 435px;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
}

/* --- Default & Error Pages --- */
.default-page,
.error-page {
    width: 100%;
}

.default-content-wrap,
.error-content-wrap {
    padding: 34px 0 48px;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* --- Suppress Cookie Shield / My Agile Privacy Diagnostic Banners --- */
#my-agile-privacy-notification-area,
.my-agile-privacy-admin-bar,
[id*="myagileprivacy"],
[class*="myagileprivacy"],
[id*="cookie-shield"],
[class*="cookie-shield"],
[id*="cookie_shield"],
[class*="cookie_shield"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}



