/* ===== css/base.css ===== */
/* Variables CSS, typographie et layout global */

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

:root {
  --rose-poudre: #F5E6E0;
  --beige-dore: #d4a574;
  --rose-accent: #e8c4b8;
  --beige-clair: #f8f5f2;
  --text-dark: #4a4a4a;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(212, 165, 116, 0.15);
  --shadow-hover: 0 8px 24px rgba(212, 165, 116, 0.25);
  --border-radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #F5F0E8 !important; /* ✅ FORCER avec !important */
    color: var(--text-dark);
    min-height: 100vh;
    opacity: 0; /* ✅ NOUVEAU : Invisible au début */
    transition: opacity 0.3s ease; /* ✅ NOUVEAU : Transition douce */
}

body.loaded {
    background: linear-gradient(135deg, var(--beige-clair) 0%, var(--rose-poudre) 100%) !important;
    opacity: 1; /* ✅ NOUVEAU : Visible quand prêt */
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

/* Layout global */
.app-container {
  min-height: 100vh;
}

/* Header */
.app-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo h1 {
  font-size: 2rem;
  color: var(--beige-dore);
  margin-bottom: 0.25rem;
}

.logo p {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-quote p {
  font-style: italic;
  color: var(--text-light);
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.app-logo {
  max-height: 80px;
  max-width: 300px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.logo-text {
  text-align: center;
}

.logo-text h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--beige-dore);
}

.logo-text p {
  margin: 0;
  color: var(--beige-dore);
}

/* Navigation */
.app-nav {
  background: var(--white);
  border-bottom: 1px solid var(--rose-poudre);
  display: flex;
  justify-content: center;
  padding: 0 2rem;
}

.nav-tab {
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.nav-tab:hover {
  color: var(--beige-dore);
  background: var(--beige-clair);
}

.nav-tab.active {
  color: var(--beige-dore);
  border-bottom-color: var(--beige-dore);
  background: var(--beige-clair);
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.tab-content.active {
  display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--beige-dore);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c2956a;
}

/* Responsive de base */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .app-nav {
    flex-wrap: wrap;
    padding: 0 1rem;
  }

  .nav-tab {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .tab-content {
    padding: 1rem;
  }
}