/* ==========================================================================
   PORTFOLIO ARCHITECTURE & 3D ASSETS - STYLE SHEET
   Thème : Minimalisme & Japandi
   ========================================================================== */

/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border-radius: 0 !important;
}

/* Thème global et variables de couleur */
:root {
    --white: #ffffff;
    --paper: #f7f7f5;
    --line: #111111;
    --line-soft: #d9d9d5;
    --text-dark: #111111;
    --text-muted: #4a4a47;
    --shadow-soft: none;
}

html {
    /* Suppression du smooth scroll global pour éviter les blocages de défilement */
}

body {
    background: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
}

img,
iframe,
video {
    display: block;
    max-width: 100%;
}

.site-logo {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 40px;
    height: 40px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    overflow: hidden;
    padding: 0;
}

.site-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bouton du menu fixe */
#menu-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1000;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--text-dark);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    padding: 10px 14px;
}

#menu-toggle:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* Menu latéral déroulant */
#sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background-color: var(--white);
    border-right: 1px solid var(--line);
    transition: left 0.3s ease;
    z-index: 999;
    padding: 96px 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#sidebar.active {
    left: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.personal-info {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted);
    border-top: 1px solid var(--line-soft);
    padding-top: 18px;
}

/* Conteneur principal et gestion des vues */
#main-content {
    padding-top: 12.5px;
    width: 100%;
}

.page-view {
    width: 100%;
    animation: pageFadeIn 0.25s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- VUE ACCUEIL (Carrousels) --- */
.home-feature-image {
    width: 100vw;
    max-width: 1920px;
    height: 1337px;
    margin: 0 auto 50px;
    overflow: hidden;
    background: #ffffff;
}

.home-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #ffffff;
}

img[src$=".png"] {
    background-color: #ffffff;
}

.carousels-wrapper {
    display: flex;
    height: 78vh;
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    gap: 28px;
}

.carousel-column {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
}

.carousel-header {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 8px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    font-weight: 700;
}

.carousel-slides {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.45s ease;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
}

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

.item-caption {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.caption-text {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.view-project-btn {
    background-color: var(--text-dark);
    color: var(--white);
    border: 1px solid var(--line);
    padding: 9px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-project-btn:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

.download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 18px;
    background-color: var(--text-dark);
    color: var(--white);
    border: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

.asset-meta-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: grid;
    gap: 10px;
}

.asset-meta-list li {
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   E-COMMERCE & 3D ASSET VIEWER LAYOUT
   ========================================================================== */

/* Structure générale E-commerce : Bloc Média à gauche (grand carré), Infos à droite */
.ecommerce-layout {
    display: flex;
    gap: 56px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.ecommerce-media-column {
    flex: 0 0 600px;
    max-width: 600px;
    width: 100%;
}

.ecommerce-image {
    flex: 0 0 600px;
    max-width: 600px;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
}

.ecommerce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Conteneur principal du visualiseur 3D et médias */
.media-viewer-container {
    width: 100%;
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

/* Onglets de sélection de mode (3D vs Photo) */
.viewer-tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.viewer-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.viewer-tab-btn:last-child {
    border-right: none;
}

.viewer-tab-btn:hover {
    background: #f0f0ed;
    color: var(--text-dark);
}

.viewer-tab-btn.active {
    background: var(--text-dark);
    color: var(--white);
}

.viewer-tab-btn svg {
    stroke: currentColor;
}

/* Viewports 3D et Image (Format Carré Strict 1:1) */
.viewer-3d-viewport,
.viewer-image-viewport {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    display: none;
    background: #f7f7f5;
}

.viewer-3d-viewport.active,
.viewer-image-viewport.active {
    display: block;
}

.viewer-image-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.three-canvas-wrapper {
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

.three-canvas-wrapper:active {
    cursor: grabbing;
}

/* Barre d'outils flottante Japandi */
.viewer-toolbar {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.viewer-tool-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.viewer-tool-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

.viewer-tool-btn.active {
    background: var(--text-dark);
    color: var(--white);
}

/* Badge de statut du modèle 3D */
.viewer-status-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
    max-width: 85%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: #27ae60;
    display: inline-block;
    flex-shrink: 0;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Indicateur de chargement */
.viewer-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(247, 247, 245, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 25;
}

.viewer-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--line-soft);
    border-top: 2px solid var(--text-dark);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.viewer-loading-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Colonne d'information E-commerce */
.ecommerce-info {
    flex: 1;
    min-width: 320px;
}

.ecommerce-info .detail-title {
    margin-bottom: 12px;
}

.ecommerce-info .detail-meta-tags {
    margin-bottom: 20px;
}

.ecommerce-short-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line-soft);
}

.ecommerce-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 28px 0 14px 0;
    font-weight: 700;
    color: var(--text-dark);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    cursor: pointer;
    z-index: 15;
    font-size: 18px;
    color: var(--text-dark);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--text-dark);
    color: var(--white);
}

.carousel-arrow.prev {
    left: 12px;
}

.carousel-arrow.next {
    right: 12px;
}

/* --- VUE TOUS LES PROJETS (Grille) --- */
.page-title {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto 28px auto;
    font-size: 24px;
    letter-spacing: 3px;
    font-weight: 300;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 14px;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 26px;
    width: 92%;
    max-width: 1600px;
    margin: 0 auto 100px auto;
}

.grid-item {
    cursor: pointer;
    background-color: var(--white);
    border: 1px solid var(--line);
    padding: 14px;
    transition: transform 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.grid-item:hover {
    transform: translateY(-2px);
    background: var(--paper);
}

.grid-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid var(--line-soft);
    background: var(--paper);
}

.grid-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.grid-item:hover .grid-img-container img {
    transform: scale(1.02);
}

.grid-item-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.grid-item-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* --- VUE DÉTAIL D'UN PROJET --- */
.project-detail-wrapper {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto 100px auto;
}

.back-button {
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-bottom: 30px;
    color: var(--text-dark);
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: var(--text-dark);
    color: var(--white);
}

.detail-header-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 75vh;
    overflow: hidden;
    margin-bottom: 36px;
    border: none;
    background: var(--paper);
}

.detail-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-body {
    display: flex;
    gap: 52px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.detail-info-panel {
    flex: 1 1 450px;
    max-width: 450px;
}

.detail-title {
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 700;
}

.detail-meta-tags {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.6;
}

.detail-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
}

/* --- PROJET DALHIA --- */
.dalhia-editorial-layout {
    display: grid;
    gap: 36px;
    width: 100%;
}

.dalhia-intro-block {
    padding: 34px 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-sizing: border-box;
    width: 100%;
}

.dalhia-intro-block .dalhia-label {
    display: block;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dalhia-intro-block h1 {
    font-size: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.dalhia-intro-block .dalhia-meta {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.dalhia-intro-block p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 2.1;
    text-align: justify;
    margin: 0;
}

.dalhia-large-image {
    width: min(1920px, 100%);
    height: 1380px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    box-sizing: border-box;
}

.dalhia-large-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

.dalhia-a1-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.dalhia-image-block {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    box-sizing: border-box;
}

.dalhia-image-block.a1 {
    aspect-ratio: 1 / 1.414;
    width: 100%;
}

.dalhia-image-block img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

.dalhia-text-image {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: stretch;
    width: 100%;
}

.dalhia-text-block,
.dalhia-text-image .dalhia-image-block {
    min-width: 0;
}

.dalhia-text-block {
    padding: 34px 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.dalhia-text-block .dalhia-label {
    display: block;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dalhia-text-block h2 {
    margin-bottom: 16px;
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dalhia-text-block p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 2.1;
    text-align: justify;
    margin: 0 0 16px 0;
}

.dalhia-text-block p:last-child {
    margin-bottom: 0;
}

.dalhia-text-image .dalhia-image-block {
    min-height: 420px;
    height: 100%;
}

.lart-du-lien-image {
    display: block;
    width: min(500px, 100%);
    height: 1310px;
    margin-top: 200px;
    object-fit: cover;
}

.mido-editorial-layout {
    display: grid;
    gap: 32px;
    width: 100%;
}

.mido-text-block,
.mido-image-block {
    min-width: 0;
}

.mido-text-block {
    width: 100%;
    padding: 34px 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-sizing: border-box;
}

.mido-text-block .mido-label {
    display: block;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mido-text-block h2 {
    margin-bottom: 14px;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mido-text-block p {
    width: 100%;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 2.1;
    margin: 0 0 16px 0;
    text-align: justify;
}

.mido-text-block p:last-child {
    margin-bottom: 0;
}

.mido-image-block {
    overflow: hidden;
    background: #ffffff;
}

.mido-image-block img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mido-feature {
    aspect-ratio: 16 / 8;
}

.mido-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.mido-split .mido-image-block {
    aspect-ratio: 4 / 3;
}

.mido-text-image {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
    gap: 28px;
    align-items: stretch;
}

.mido-text-image.reverse {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
}

.mido-text-image .mido-image-block {
    min-height: 360px;
}

.mido-plan {
    aspect-ratio: 16 / 9;
}

.mido-conclusion {
    width: 100%;
    box-sizing: border-box;
}

.behind-editorial-layout {
    display: grid;
    gap: 42px;
    width: 100%;
}

.behind-text-image {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
    gap: 32px;
    align-items: stretch;
}

.behind-text-image.reverse {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.behind-text-block {
    padding: 34px 30px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.behind-text-block .behind-label {
    display: block;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.behind-text-block h1,
.behind-text-block h2 {
    margin-bottom: 16px;
    font-size: 26px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.behind-text-block p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 2.1;
    text-align: justify;
    white-space: pre-line;
}

.behind-small-image {
    min-height: 420px;
    overflow: hidden;
    background: #ffffff;
}

.behind-small-image img,
.behind-large-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.behind-large-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: min(1920px, 100%);
    height: 1300px;
    margin: 8px auto 0;
}

.behind-large-image {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

#project-behind-doors .season-fall-socials {
    margin-top: 0;
}

#project-behind-doors .season-fall-socials .video-preview {
    min-height: 260px;
}

.shamal-editorial-layout {
    display: grid;
    gap: 24px;
    width: 100%;
}

.shamal-text-image {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: stretch;
}

.shamal-text-image.reverse {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
}

.shamal-text-block {
    padding: 34px 30px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.shamal-text-block .shamal-label {
    display: block;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.shamal-text-block h1,
.shamal-text-block h2 {
    margin-bottom: 16px;
    font-size: 26px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.shamal-text-block p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 2.1;
    text-align: justify;
    white-space: pre-line;
}

.shamal-image-block {
    overflow: hidden;
    background: #ffffff;
}

.shamal-image-block img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.shamal-start-image {
    min-height: 440px;
}

.shamal-vertical-images,
.shamal-horizontal-images,
.shamal-facades {
    display: grid;
    gap: 20px;
}

.shamal-vertical-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shamal-vertical-images .shamal-image-block {
    aspect-ratio: 1 / 1;
}

.shamal-horizontal-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shamal-horizontal-images .shamal-image-block {
    aspect-ratio: 16 / 8;
}

.shamal-facades {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shamal-facades .shamal-image-block {
    aspect-ratio: 4 / 3;
}

.shamal-final-image {
    width: min(1920px, 100%);
    height: 1380px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
}

.shamal-final-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

.season-fall-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

.season-fall-copy-column,
.season-fall-media-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.season-fall-text-block {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 22px 20px 18px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.season-fall-text-block:first-child {
    min-height: 230px;
}

.season-fall-text-block .season-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.season-fall-text-block h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.season-fall-text-block p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
}

.season-fall-media-card {
    background: transparent;
    border: none;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.season-fall-media-card img,
.season-fall-media-card.colorful img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none;
    background: transparent;
    image-rendering: -webkit-optimize-contrast;
}

.season-fall-media-card.tall,
.season-fall-media-card.wide,
.season-fall-media-card.full-width,
.season-fall-media-card.carousel-wide {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
}

.season-fall-final-image {
    width: min(1920px, 100%);
    max-width: 1920px;
    height: auto;
    margin: 18px auto 0;
    overflow: hidden;
    background: transparent;
    border: none;
}

.season-fall-final-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    background: transparent;
    image-rendering: -webkit-optimize-contrast;
}

.season-fall-socials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.season-fall-video-card {
    background: var(--white);
    border: 1px solid var(--line);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.season-fall-video-card .video-platform {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dark);
}

.season-fall-video-card .video-preview {
    flex: 1;
    background: linear-gradient(135deg, #151515 0%, #dddddb 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-fall-video-card .video-preview::before {
    content: "▶";
    color: var(--white);
    font-size: 26px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.season-fall-video-card .video-meta {
    padding: 10px 14px 14px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.instagram-embed-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
}

.instagram-embed-wrapper .instagram-media {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 540px !important;
    margin: 0 auto !important;
    box-shadow: none !important;
}

.tiktok-embed-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
}

.tiktok-embed-wrapper .tiktok-embed {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 605px !important;
    margin: 0 auto !important;
}

.youtube-embed-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: #000000;
    display: flex;
    justify-content: center;
}

.youtube-embed-wrapper iframe {
    width: 100%;
    max-width: 356px;
    aspect-ratio: 356 / 634;
    height: auto;
    border: none;
    display: block;
}

.kaza-text-intro {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
}

.kaza-editorial-layout {
    display: grid;
    gap: 28px;
    width: 100%;
}

.kaza-story-row {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    gap: 26px;
    align-items: stretch;
}

.kaza-story-copy {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kaza-story-row.reverse {
    grid-template-columns: 1.35fr 1.05fr;
    align-items: stretch;
}

.kaza-story-text,
.kaza-story-media,
.kaza-mosaic-item,
.kaza-text-grid {
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
    box-sizing: border-box;
}

.kaza-story-text,
.kaza-story-media {
    height: 100%;
    align-self: stretch;
}

.kaza-story-row.materials-row {
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
}

.kaza-story-text {
    padding: 24px 22px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.kaza-story-text .kaza-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--text-muted);
}

.kaza-story-text p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
    margin: 0 0 14px 0;
}

.kaza-story-text p:last-child {
    margin-bottom: 0;
}

.kaza-additional-text {
    margin-top: 18px;
    border: none;
    background: transparent;
}

.kaza-material-links {
    display: flex;
    justify-content: center;
    gap: 200px;
    margin-top: 24px;
}

.kaza-material-link,
.kaza-material-link img {
    width: 100px;
    height: 100px;
}

.kaza-material-link {
    display: block;
    flex: 0 0 100px;
    border: 1px solid var(--line);
    overflow: hidden;
}

.kaza-material-link img {
    object-fit: cover;
}

.kaza-story-media {
    background: var(--paper);
    min-height: 260px;
    height: 100%;
}

.kaza-story-media img,
.kaza-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kaza-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.kaza-mosaic-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    transform: none;
}

.kaza-mosaic-item.medium,
.kaza-mosaic-item.small {
    transform: none;
}

.kaza-text-grid {
    display: grid;
    gap: 14px;
    align-self: flex-start;
}

.kaza-text-card {
    border: 1px solid var(--line-soft);
    background: var(--white);
    padding: 18px 18px 16px;
}

.kaza-text-card h3 {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.kaza-text-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: left;
}

.detail-gallery {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-gallery.inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
}

.detail-gallery.inline .img-frame {
    flex: 1 1 calc(50% - 9px);
    min-width: 220px;
}

.detail-gallery img,
.detail-fullwidth-frame img {
    width: 100%;
    object-fit: cover;
    background-color: var(--paper);
    display: block;
}

.detail-fullwidth-frame {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    margin-top: 24px;
}

.project-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    margin-top: 20px;
    border: 1px solid var(--line);
}

.project-video-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Background placeholder spécifique pour KAKUTEN MUSEUM */
#project-kakuten-museum .detail-header-img {
    background-image: url('../images/kakuten_museum_banniere.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Masquer l'img interne pour éviter doublon si on utilise le background */
#project-kakuten-museum .detail-header-img img {
    display: none;
}

#project-kakuten-museum .detail-fullwidth-frame {
    aspect-ratio: 16 / 9;
}

#project-kakuten-museum .detail-gallery.inline .img-frame {
    aspect-ratio: 4 / 3;
}

#project-kakuten-museum .detail-body {
    display: block;
}

#project-kakuten-museum .detail-info-panel {
    max-width: 100%;
    width: 100%;
    margin-bottom: 30px;
}

#project-kakuten-museum .img-frame img,
#project-kakuten-museum .detail-fullwidth-frame img {
    object-position: center center;
}

/* Fond blanc pour le projet KAZA KAZ */
#project-kaza-kaz .project-detail-wrapper {
    background: #ffffff;
    padding: 0;
}

#project-kaza-kaz .kaza-story-text,
#project-kaza-kaz .kaza-story-media,
#project-kaza-kaz .kaza-mosaic-item,
#project-kaza-kaz .kaza-text-card {
    background: #ffffff;
    border-color: var(--line);
}

/* Cadre d'image commun pour conserver le même cadrage */
.img-frame {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: none;
    background-color: var(--paper);
    display: block;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- SECTION CONTACT GLOBALE --- */
#contact-section {
    width: 92%;
    max-width: 1600px;
    margin: 100px auto;
    padding: 42px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    background-color: var(--white);
}

.final-image-block {
    width: 100vw;
    height: 3000px;
    margin-left: calc(50% - 50vw);
    margin-top: 28px;
    overflow: hidden;
    background: var(--paper);
}

.final-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.contact-details h2,
.contact-form h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.contact-details p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 440px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--line-soft);
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--text-dark);
}

.contact-form button {
    margin-top: 18px;
    padding: 14px 18px;
    background-color: var(--text-dark);
    color: var(--white);
    border: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-form button:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

/* --- MEDIA QUERIES: Tablettes et Mobiles --- */
@media (max-width: 900px) {
    .carousels-wrapper {
        flex-direction: column;
        height: auto;
        gap: 20px;
        width: 95%;
    }

    .carousel-column {
        height: auto;
    }

    .carousel-slides {
        height: auto;
    }

    .carousel-item img {
        height: auto;
        border-radius: 3px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        width: 95%;
    }

    #sidebar {
        width: 300px;
        padding: 80px 20px;
    }

    #main-content {
        padding-top: 10px;
    }

    #contact-section {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        align-items: flex-start;
    }

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

    .detail-body {
        flex-direction: column;
        gap: 20px;
    }

    .detail-header-img {
        height: 40vh;
    }

    .ecommerce-layout {
        flex-direction: column;
        gap: 30px;
    }

    .ecommerce-media-column,
    .ecommerce-image {
        flex: 1;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}

@media (max-width: 600px) {
    #menu-toggle {
        top: 20px;
        left: 12px;
        font-size: 16px;
    }

    #sidebar {
        width: 85%;
        padding: 70px 20px;
        left: -85%;
    }

    #sidebar.active {
        left: 0;
    }

    .carousels-wrapper {
        width: 100%;
        padding: 0 10px;
        gap: 12px;
    }

    .carousel-column {
        width: 100%;
        min-height: 220px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .item-caption {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 12px;
    }

    .page-title {
        font-size: 20px;
    }

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

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
        width: 95%;
    }

    .grid-img-container {
        height: 160px;
    }

    .detail-header-img {
        height: 30vh;
    }

    #contact-section {
        padding: 20px;
    }

    .final-image-block {
        height: 2200px;
    }

    .kaza-material-links {
        gap: 24px;
    }

    .mido-editorial-layout {
        gap: 20px;
    }

    .mido-split,
    .mido-text-image,
    .mido-text-image.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mido-text-image .mido-image-block {
        min-height: 260px;
    }

    .mido-feature {
        aspect-ratio: 4 / 3;
    }

    .mido-text-block {
        padding: 26px 18px;
    }

    .behind-editorial-layout {
        gap: 24px;
    }

    .behind-text-image,
    .behind-text-image.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .behind-small-image {
        min-height: 280px;
    }

    .behind-large-images {
        grid-template-columns: 1fr;
        height: auto;
        gap: 16px;
    }

    .behind-large-image {
        aspect-ratio: 4 / 3;
    }

    #project-behind-doors .season-fall-socials {
        grid-template-columns: 1fr;
    }

    .behind-text-block {
        padding: 26px 18px;
    }

    .shamal-editorial-layout {
        gap: 24px;
    }

    .shamal-text-image,
    .shamal-text-image.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shamal-start-image {
        min-height: 280px;
    }

    .shamal-vertical-images,
    .shamal-horizontal-images,
    .shamal-facades {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .shamal-vertical-images .shamal-image-block {
        aspect-ratio: 1 / 1;
    }

    .shamal-horizontal-images .shamal-image-block {
        aspect-ratio: 4 / 3;
    }

    .shamal-facades .shamal-image-block {
        aspect-ratio: 4 / 3;
    }

    .shamal-final-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .shamal-text-block {
        padding: 26px 18px;
    }

    .dalhia-editorial-layout {
        gap: 24px;
    }

    .dalhia-large-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .dalhia-a1-images {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dalhia-text-image {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dalhia-intro-block,
    .dalhia-text-block {
        padding: 26px 18px;
    }

    .season-fall-final-image {
        height: auto;
        width: 100%;
    }
}