/*
 Theme Name:   Hello Elementor Child
 Theme URI:    http://jelenavolkov.fr
 Description:  Child theme for Hello Elementor — Jelena Volkov
 Author:       Jelena Volkov
 Author URI:   http://jelenavolkov.fr
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* ============================================
   VARIABLES GLOBALES
   ============================================ */
:root {
  --color-bg:        #0a0a0a;
  --color-primary:   #c9a96e;   /* or chaud */
  --color-accent:    #e8c99a;   /* or clair */
  --color-text:      #f0ebe4;   /* blanc cassé */
  --color-text-muted:#8a7f75;
  --color-border:    #2a2420;
  --font-heading:    'Cormorant Garamond', Georgia, serif;
  --font-body:       'Montserrat', Arial, sans-serif;
  --transition:      0.3s ease;
}

/* ============================================
   BASE
   ============================================ */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

/* ============================================
   HERO — PAGE D'ACCUEIL
   ============================================ */
.hero-fullscreen {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-fullscreen img,
.hero-fullscreen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(10,10,10,0.5) 70%,
    rgba(10,10,10,0.9) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6vw 8vh;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content p {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 2.5rem;
  max-width: 480px;
}

/* ============================================
   BOUTON CTA
   ============================================ */
.btn-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all var(--transition);
  background: transparent;
}

.btn-cta:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */
#jelena-chatbot {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}

#chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201,169,110,0.3);
}

#chatbot-toggle:hover {
  background: var(--color-accent);
  transform: scale(1.05);
}

#chatbot-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--color-bg);
}

#chatbot-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 340px;
  background: #141414;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

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

#chatbot-header {
  padding: 1rem 1.25rem;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2a2420;
}

#chatbot-header span {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

#chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  min-height: 250px;
  max-height: 350px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  padding: 0.6rem 0.9rem;
  border-radius: 3px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 85%;
}

.msg-bot {
  background: #1e1e1e;
  color: var(--color-text);
  align-self: flex-start;
  border-left: 2px solid var(--color-primary);
}

.msg-user {
  background: var(--color-primary);
  color: var(--color-bg);
  align-self: flex-end;
}

#chatbot-input-area {
  display: flex;
  border-top: 1px solid var(--color-border);
}

#chatbot-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.85rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

#chatbot-input::placeholder {
  color: var(--color-text-muted);
}

#chatbot-send {
  background: transparent;
  border: none;
  border-left: 1px solid var(--color-border);
  padding: 0 1rem;
  cursor: pointer;
  color: var(--color-primary);
  transition: color var(--transition);
}

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

/* ============================================
   BOUTIQUE — LISTE PRODUITS
   ============================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  padding: 2px;
}

.product-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: #111;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.85) 0%,
    transparent 50%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.product-card-price {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.btn-add-to-cart {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.btn-add-to-cart:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 5vw 10vh;
  }

  #chatbot-window {
    width: 300px;
    right: -10px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  #chatbot-window {
    width: calc(100vw - 2rem);
    right: calc(-2rem + 56px + 2rem - 100vw + 2rem);
  }
}
