:root {
    --color-atelier-bg: #FDFCFB;
    --color-atelier-archive-bg: rgb(206, 206, 204);
    --color-atelier-dark: #121212;
    --color-atelier-accent: #B8860B;
    --color-atelier-hover: rgb(180 83 9);
    --color-atelier-muted: #737373;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-atelier-bg);
    color: var(--color-atelier-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
}

.font-inter-hero {
    font-family: 'Inter', sans-serif !important;
    transition: color 0.5s ease;
}

.font-inter-hero:hover {
    color: var(--color-atelier-hover) !important;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-atelier-accent);
    z-index: 100;
    width: 0%;
    transition: width 0.1s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar initialement transparente - exactement comme dans test.html */
#navbar {
    background: transparent;
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1.5rem 2rem;
}

/* Navbar après scroll - exactement comme dans test.html */
#navbar.nav-scrolled {
    background: white !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    color: black !important;
}

#navbar.nav-scrolled .nav-link {
    color: black !important;
}

#navbar.nav-scrolled .text-current {
    color: black !important;
}

/* Style initial des liens de navigation */
.nav-link {
    color: white;
    transition: color 0.3s ease;
}

.carousel-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-width: 100%;
}

@media (min-width: 768px) {
    .carousel-card {
        min-width: calc(33.333% - 1.35rem);
    }
}

.carousel-card:hover {
    border-color: var(--color-atelier-accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(184, 134, 11, 0.05);
}

.page-view { display: none; }
.page-view.active { display: block; animation: pageFadeIn 0.8s ease; }

@keyframes pageFadeIn {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 1; filter: blur(0); }
}

.filter-btn {
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn.active {
    color: var(--color-atelier-accent);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-atelier-accent);
}

.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item.hidden-filter {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

#view-archive, #view-about {
    background-color: var(--color-atelier-archive-bg);
}

.gallery-card {
    border: 1px solid rgba(0,0,0,0.05);
}

.horizontal-carousel {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.horizontal-carousel::-webkit-scrollbar {
    display: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
.animate-bounce {
    animation: bounce 1s infinite;
}
.animate-bounce-slow {
    animation: bounce 2s infinite;
}

#chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

#chatbot-bubble {
    width: 60px;
    height: 60px;
    background-color: var(--color-atelier-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

#chatbot-bubble:hover {
    transform: scale(1.1);
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

#chatbot-window.active {
    display: flex;
}

.chat-header {
    background: var(--color-atelier-dark);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f9f9f9;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.message.bot {
    background: white;
    align-self: flex-start;
    border: 1px solid #eee;
    color: #333;
}

.message.bot a {
    color: var(--color-atelier-accent);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.message.bot a:hover {
    color: var(--color-atelier-hover);
    text-decoration: underline;
}

.message.user {
    background: var(--color-atelier-accent);
    color: white;
    align-self: flex-end;
}

.chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    outline: none;
    font-size: 0.875rem;
}

#chat-input:focus {
    border-color: var(--color-atelier-accent);
}

.dot-pulse {
    display: flex;
    gap: 4px;
    padding: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.dot:nth-child(2) { 
    animation-delay: 0.2s; 
}

.dot:nth-child(3) { 
    animation-delay: 0.4s; 
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.4; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 1; 
    }
}

/* Styles pour le champ datetime-local */
input[type="datetime-local"] {
    color-scheme: dark;
    cursor: pointer !important;
    width: 100%;
    position: relative;
    z-index: 1;
}

input[type="datetime-local"]::-webkit-datetime-edit {
    cursor: pointer !important;
    padding: 0;
}

input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
    cursor: pointer !important;
}

input[type="datetime-local"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
input[type="datetime-local"]::-webkit-datetime-edit-ampm-field {
    cursor: pointer !important;
    padding: 0 2px;
}

input[type="datetime-local"]::-webkit-inner-spin-button,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer !important;
    opacity: 1;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input[type="datetime-local"]::-webkit-inner-spin-button {
    display: none;
}

input[type="datetime-local"]::-webkit-datetime-edit-text {
    color: rgba(255, 255, 255, 0.7);
}

input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field {
    color: rgba(255, 255, 255, 0.7);
}

input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field {
    color: rgba(255, 255, 255, 0.7);
}

.dot-pulse {
    display: flex;
    gap: 4px;
    padding: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 1; }
}
