/* ===== GLOBAL CSS - PigmaColor Peintures ===== */
/* Polices système uniquement - JAMAIS Google Fonts */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #2d2d2d;
  background-color: #faf0e6;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== ANTI-OVERFLOW GLOBAL ===== */
img, video, iframe, embed, object, svg, canvas {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
}

/* ===== RESPONSIVE OVERFLOW HELPERS ===== */
.table-responsive,
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== CSS VARIABLES ===== */
:root {
  --color-primary: #7c3aed;
  --color-primary-dark: #6d28d9;
  --color-primary-light: #a78bfa;
  --color-secondary: #c17050;
  --color-secondary-dark: #a85d3e;
  --color-light: #faf0e6;
  --color-dark: #1a1a2e;
  --color-text: #2d2d2d;
  --color-muted: #6b6b7a;
  --color-border: #e5d9cc;
  --color-white: #fff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.08);
  --shadow-md: 0 6px 24px rgba(124, 58, 237, 0.12);
  --shadow-lg: 0 12px 40px rgba(124, 58, 237, 0.16);
  --transition: 0.2s ease;
  --container-max: 1200px;
  --container-pad: 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.25;
  margin-top: 0;
}

p {
  margin-top: 0;
}

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

a:hover {
  color: var(--color-primary-dark);
}

/* ===== SECTION CONTAINERS ===== */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-title--light {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--color-primary);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

/* ===== SCREEN READER ONLY ===== */
.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;
}

/* ===== TAGS & BADGES ===== */
.tag {
  display: inline-block;
  background-color: rgba(124, 58, 237, 0.1);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== OVERFLOW WRAP ===== */
p, li, td, th, span, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===== RESPONSIVE (auto-repair) ===== */
@media (max-width: 1024px) {
  :root {
    --container-pad: 20px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 22px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 16px;
  }

  html {
    font-size: 15px;
  }

  .section-title {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
  }

  .section-subtitle {
    font-size: 0.97rem;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .tag {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 12px;
  }

  html {
    font-size: 14px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  .section-header {
    margin-bottom: 22px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 11px 16px;
    font-size: 0.9rem;
    border-radius: 22px;
  }

  .tag {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
}