/* ==========================================================================
   Comandflow.com — Global CSS
   Variables charte graphique, reset, typographie, utilitaires
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   CSS Custom Properties — Charte graphique Dark Luxury
   ========================================================================== */

:root {
  /* Couleurs — Backgrounds */
  --color-bg-primary: #110E17;
  --color-bg-secondary: #1A1523;
  --color-card-bg: #1E1928;

  /* Couleurs — Or */
  --color-gold: #D4A853;
  --color-gold-dark: #8B7340;

  /* Couleurs — Bordeaux */
  --color-burgundy: #6D2E46;
  --color-burgundy-dark: #4A1942;

  /* Couleurs — Textes */
  --color-text-light: #F5F0EB;
  --color-text-body: #E8E0D8;
  --color-text-muted: #A09890;

  /* Typographies */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1200px;

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Transitions */
  --transition-base: 0.3s ease;
}

/* ==========================================================================
   Box-sizing Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ==========================================================================
   Body Reset
   ========================================================================== */

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typographie
   ========================================================================== */

h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-text-light);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-text-light);
  line-height: 1.3;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--color-text-light);
}

p {
  margin-bottom: var(--spacing-sm);
  max-width: 65ch;
}

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

a:hover {
  color: var(--color-text-light);
}

/* ==========================================================================
   Classes utilitaires
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.text-gold {
  color: var(--color-gold);
}

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

/* ==========================================================================
   Images — Reset et lazy loading (REQ-012)
   ========================================================================== */

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

img[loading="lazy"] {
  content-visibility: auto;
}
