/* ------------------------------
   Mascarade - Base CSS
   ------------------------------ */

/* ===== 1. Variables ===== */
:root {
  /* Colors */
  --color-primary: #3A3A3A;
  --color-accent: #D9C87A;
  --color-text: #2A2A2A;
  --color-muted: #6A6A6A;
  --color-bg: #E5E5E5;
  --color-white: #F7F7F7;
  --color-primary-light: #4A4A4A; /* Clair, pour hover doux */
  --color-primary-dark: #2E2E2E;  /* Sombre, pour états actifs / focus */

  /* Fonts */
  --font-base: "Roboto", sans-serif;
  --font-title: "Bebas Neue", sans-serif;
  --font-alt: "Roboto Slab", serif;

  /* Font sizes */
  --fs-xs: 0.8rem;
  --fs-sm: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: 2rem;
  --fs-xl: 3rem;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  /* Border radius */
  --radius: 6px;
}

/* ===== 2. Reset (minimal) ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: var(--fs-sm);
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* prend tout l'espace restant */
}

/* ===== 3. Typography ===== */
h1 {
  font-family: var(--font-title);
  color: var(--color-white);
  font-weight: normal;
}
h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--color-primary);
  font-weight: normal;
}
h1 {
  font-size: var(--fs-xl);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}
h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--spacing-sm);
}
h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--spacing-xs);
}
h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}
p {
  margin-bottom: var(--spacing-sm);
  font-size: var(--fs-sm);
}
a {
  color: var(--color-primary-light); /* plus doux que primary pour la lecture */
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-accent); /* le jaune bambou crée un hover zen mais expressif */
}

strong {
  font-weight: 700;
}
em {
  font-style: italic;
}
ul, ol {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-sm);
}
li {
  margin-bottom: 0.25rem;
}
blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--spacing-sm);
  font-family: var(--font-alt);
  font-style: italic;
  color: var(--color-muted);
  margin: var(--spacing-sm) 0;
}

/* ===== 4. Layout Helpers ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}
.section {
  padding: var(--spacing-lg) 0;
}

/* ===== 5. Header/Footer (exemple) ===== */
header, footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-sm) 0;
}
header a, footer a {
  color: var(--color-white);
  font-weight: bold;
}
header a:hover, footer a:hover {
  color: var(--color-accent);
}

/* ===== 6. Responsive base ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* ===== 7. Utility classes (facultatif) ===== */
.text-center { text-align: center; }
.mt-md { margin-top: var(--spacing-md); }
.mb-md { margin-bottom: var(--spacing-md); }
.bg-primary { background-color: var(--color-primary); color: var(--color-white); }

/* ===== 8. Boutons ===== */
/* Bouton principal */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background-color: #00284d; /* primaire légèrement assombri */
  transform: translateY(-2px);
}

/* Bouton outline */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

