/* ============================================================
   KUBAHOME — Design System
   Inspiration : Boffi / Bulthaup / Poliform
   Principe : le luxe vient du vide et de la retenue
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --bg:           #FAFAF8;
  --bg-warm:      #F4EFE7;
  --bg-dark:      #171715;
  --white:        #FFFFFF;
  --text:         #1A1A18;
  --text-light:   #6B6760;
  --accent:       #B89A6A;
  --accent-dark:  #9A7F52;
  --border:       #E5DFD6;
  --border-light: #F0EBE3;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius:     2px;
  --transition: 0.3s ease;
  --shadow-sm:  0 1px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.09);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input, textarea {
  font: inherit;
  color: inherit;
}

/* --- Typographie ------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.9rem); }
h4 { font-size: clamp(1rem, 2vw, 1.4rem); }

p { max-width: 65ch; }

/* --- Layout ----------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Boutons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--white);
  border: 1px solid var(--text);
}

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

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text);
}

.btn-lg {
  padding: 1.2rem 2.8rem;
  font-size: 0.85rem;
}

/* --- Utilitaires ------------------------------------------ */
.text-muted   { color: var(--text-light); }
.text-accent  { color: var(--accent); }
.text-center  { text-align: center; }
.text-small   { font-size: 0.85rem; }

.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 3rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Divider ---------------------------------------------- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 2rem 0;
}

.divider--center { margin: 2rem auto; }

/* --- Badge / label ---------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
}

/* --- Animations scroll ------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Sélecteur de langue ------------------------------------ */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-switch button {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--text-light);
  transition: color var(--transition), border-color var(--transition);
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button.is-active {
  color: var(--text);
  border-color: var(--border);
}

/* --- Placeholder photo ------------------------------------ */
.photo-placeholder {
  background: var(--bg-warm);
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  font-style: italic;
  padding: 2rem;
  min-height: 200px;
}

.photo-placeholder strong {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
}
