@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --bg: #1a1010;
    --bg-mid: #2a1a1a;
    --bg-card: #231515;
    --border: rgba(222, 200, 191, 0.12);
    --accent: #DEC8BF;
    --accent2: #b89080;
    --warm: #8c6060;
    --warm-dark: #5c3838;
    --text: #f0e8e4;
    --muted: #a89090;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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


button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--warm);
    border-radius: 3px;
}

#Concept,
#inventory,
#ajt {
    scroll-margin-top: 90px;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 16, 16, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-left img {
    width: 36px;
    filter: invert(1) sepia(1) saturate(0.3) brightness(1.2);
    transition: transform 0.3s;
}

.nav-left img:hover {
    transform: rotate(15deg);
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

.nav-right {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-right a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    position: relative;
}

.nav-right a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-right a:hover {
    color: var(--accent);
}

.nav-right a:hover::after {
    width: 100%;
}

.souligne {
    position: relative;
    text-decoration: none;
}

.souligne::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s;
}

.souligne:hover::after {
    width: 100%;
}


.overlay {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.80;
    filter: saturate(0.6);
}

.overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}

/* TITRE */
.overlay h1 {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    color: var(--accent);
    letter-spacing: -2px;
}

/* SOUS-TITRE */
.overlay h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 80px 80px;
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.6;
    border-left: 2px solid var(--warm);
    padding-left: 16px;
    max-width: 420px;
}



/* ── CONCEPT ── */
.cpt {
    max-width: 860px;
    margin: 0 auto;
    padding: 120px 48px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.cpt h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
    text-align: left;
}

.cpt h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--warm);
    transform: none;
    border-radius: 0;
}

.cpt p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--muted);
    text-align: left;
}

/* ── CARROUSEL ── */

.carousel-assets {
    flex: 1;
    height: 100%;
    background-color: var(--bg-card);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.new-asset {
    flex: 0 0 25%;
    height: 100%;
    background-color: var(--warm);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.new-asset:hover {
    background-color: var(--warm-dark);
    transform: translateY(-4px);
}

.carousel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    text-align: left;
}



/* ── POPUP ── */
.overlay-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.content-popup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    width: 400px;
    min-width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    box-shadow: var(--shadow);
}

.content-popup h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 0;
}

.content-popup p {
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

.content-popup .champ label {
    font-size: 0.85rem;
    color: var(--muted);
    justify-content: end;
    align-self: flex-start;
    margin-bottom: 6px;
}

.content-popup input[type="password"] {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-mid);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

.content-popup input[type="password"]:focus {
    outline: none;
    border-color: var(--accent2);
}

.content-popup input[type="submit"] {
    padding: 10px 20px;
    background: var(--warm);
    border: none;
    border-radius: 8px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.content-popup input[type="submit"]:hover {
    background: var(--warm-dark);
}

.close {
    position: absolute;
    top: 32%;
    right: 35%;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.close:hover {
    opacity: 1;
}

.close img {
    width: 16px;
    filter: invert(1);
}

/* ── INVENTORY ── */
.inventory {
    background: var(--bg);
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.snav-contain {
    padding: 60px 80px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-mid);
}

.snav-contain h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 32px;
    letter-spacing: -1px;
    text-shadow: none;
}

.snav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.snav a {
    color: var(--muted);
    text-decoration: none;
}

.snav button:hover,
.snav a:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.champ-password {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.champ-password input[type="password"],
.champ-password input[type="text"] {
    padding: 10px 40px 10px 14px;
    /* espace pour l'œil */
    background: var(--bg-mid);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

.toggle-pwd {
    position: absolute;
    right: 12px;
    top: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: 0.2s;
}

.toggle-pwd:hover {
    opacity: 1;
}


/* ── SEARCH ── */
.search-wrapper {
    position: relative;
    width: 280px;
    z-index: 1;
}

.search-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    outline: none;
}

.search-wrapper input:focus {
    border-color: var(--accent2);
}

.search-wrapper input::placeholder {
color: var(--bg-mid);
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
}

.search-btn img {
    width: 14px;
}

/* ── FILTER / SORT BUTTONS ── */
.filter-button,
.sort-button {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-button:hover,
.sort-button:hover {
    border-color: var(--accent2);
    color: var(--accent);
}

#resetFiltres {
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0;
    margin: 0;
}

#resetFiltres:hover {
    color: var(--accent);
}

/* ── SEGMENTED ── */
.apple-segment {
    position: relative;
}

.platter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platter ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.platter button {
    all: unset;
    box-sizing: border-box;
    padding: 9px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platter button.active {
    color: var(--bg);
}

.slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    background: var(--accent);
    border-radius: 5px;
    z-index: 1;
    opacity: 0;
    transition: transform 0.25s ease, width 0.25s ease, opacity 0.15s ease;
}

/* ── SORT DROPDOWN ── */
.sort-container {
    position: relative;
    z-index: 10;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 220px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 100;
}

.dropdown-content button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dropdown-content button:hover,
.dropdown-content button.active {
    background: var(--warm-dark);
    color: var(--accent);
}

.sort-option.active {
    background: var(--warm-dark);
    color: var(--accent);
    font-weight: 500;
}

/* ── FILTER PANEL ── */
.filter-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 32px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow-y: auto;
    box-shadow: none;
    font-family: 'DM Sans', sans-serif;
}

.filter-panel.open {
    right: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.filter-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 700;
}

.close-filter {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
    font-size: 22px;
    color: var(--text);
}

.close-filter:hover {
    opacity: 1;
}

.close-filter img {
    width: 16px;
    object-fit: contain;
    height: 20px;
}

.filter-section {
    margin-bottom: 32px;
}

.filter-section h3 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.option {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: var(--muted);
    border: 1px solid transparent;
    transition: all 0.2s;
    background: transparent;
}

.option:hover {
    background: var(--bg-mid);
    color: var(--text);
    border-color: transparent;
}

.option.selected {
    background: var(--warm-dark);
    border-color: var(--warm);
    color: var(--accent);
}

#saveFilters,
.save-filters {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--warm);
    border: none;
    border-radius: 10px;
    color: var(--accent);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

#saveFilters:hover,
.save-filters:hover {
    background: var(--warm-dark);
}

.pwd-error {
    width: 100%;
    background: rgba(140, 96, 96, 0.25);
    border: 1px solid var(--warm);
    color: var(--accent);
    padding: 10px 14px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    border-radius: 8px;
    margin-top: -10px;
    margin-bottom: 10px;
    backdrop-filter: blur(6px);
    animation: fadeSlide 0.35s ease-out;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    background: var(--bg-mid);
    border-top: 1px solid var(--border);
    padding: 60px 0;
    color: var(--muted);
    width: 100%;
    margin-top: auto; 
    position: relative; 
    margin-bottom: 0;
}


.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 48px;}

.footer-col {
    flex: 1;
    min-width: 240px;
}

.footer-logo {
    width: 42px;
    filter: invert(1) sepia(1) saturate(0.3) brightness(1.2);
    margin-bottom: 12px;
}

.footer-col h3,
.footer-col h4 {
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.footer-col p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

/* ── CARROUSEL ── */

.list-assets {
    position: relative;
    background: #2a1a1a;
    width: 100%;
    height: 60vh;
    border-top: 1px solid rgba(222, 200, 191, 0.12);
    border-bottom: 1px solid rgba(222, 200, 191, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 48px;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

#carousel-track {
    display: flex;
    gap: 18px;
    white-space: nowrap;
}

/* ── ITEMS ── */
.carousel-item {
    flex: 0 0 250px;
    background: #1e1212;
    border: 1px solid rgba(222, 200, 191, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    scroll-snap-align: none;
    pointer-events: auto;
}

.carousel-item:hover {
    transform: translateY(-6px);
    border-color: #b89080;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.carousel-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    opacity: 0.85;
    border-radius: 0;
    transition: opacity 0.3s;
    display: block;
}

.carousel-item:hover img {
    opacity: 1;
}

.carousel-item p {
    padding: 10px 14px 12px;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #DEC8BF;
    letter-spacing: 0.2px;
    white-space: normal;
}

/* ── BOUTONS STOP / START ── */
#stop-carousel,
#start-carousel {
    position: absolute;
    bottom: 60px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    background: rgba(30, 18, 18, 0.85);
    border: 1px solid rgba(222, 200, 191, 0.2);
    color: #a89090;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#stop-carousel:hover,
#start-carousel:hover {
    border-color: #DEC8BF;
    color: #DEC8BF;
    transform: translateY(-2px);
}

#stop-carousel {
    left: 3%;
}

#start-carousel {
    left: calc(3% + 90px);
}


.carousel-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* réduit l’espace entre le carrousel et le bouton */
    width: 100%;
    padding: 20px 40px;
    height: 320px;
}

.carousel-assets {
    flex: 1;
    height: 100%;
    background: #1e1212;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.new-asset {
    flex: 0 0 18%;
    /* réduit la largeur pour coller au carrousel */
    height: 100%;
    background: #1a1010;
    border: 1px dashed #8c6060;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.new-asset:hover {
    background: #2d1818;
    border-color: #b89080;
}



.new-asset p {
    font-size: 0.78rem;
    font-weight: 500;
    color: #a89090;
    text-align: center;
    padding: 0 16px;
    line-height: 1.5;
}