/* ===================================================
   GLOBAL CSS - Le Kasseria - Cuisine du monde
   Version: 5.1 | Année: 2026
   AUCUN style header/footer/nav ici - inline dans header.php/footer.php
   =================================================== */

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #2d1a0e;
  background-color: #fff8f0;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
}

table {
  max-width: 100%;
}

/* ===== TABLE RESPONSIVE WRAPPER ===== */
.table-responsive,
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

/* ===== TYPOGRAPHY GLOBALE ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.25;
  font-weight: 700;
  color: #1a0a0a;
}

p {
  line-height: 1.75;
  color: #4a2c1a;
}

a {
  color: #7f1d1d;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: #5a1414;
  text-decoration: underline;
}

strong {
  font-weight: 700;
  color: inherit;
}

/* ===== VISUALLY HIDDEN (ACCESSIBILITE) ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 3px solid #fde047;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== VARIABLES CSS ===== */
:root {
  --color-primary: #7f1d1d;
  --color-primary-dark: #5a1414;
  --color-secondary: #fed7aa;
  --color-accent: #fde047;
  --color-dark: #1a0a0a;
  --color-dark-mid: #2d1a0e;
  --color-text: #4a2c1a;
  --color-text-light: #7a5a4a;
  --color-bg: #fff8f0;
  --color-bg-alt: #fef3e2;
  --color-border: #f0d5b0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(127,29,29,0.08);
  --shadow-md: 0 6px 24px rgba(127,29,29,0.12);
  --shadow-lg: 0 16px 48px rgba(127,29,29,0.16);
  --container-max: 1200px;
  --container-padding: 24px;
}

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

/* ===== SECTION HEADER PATTERN ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #fef3e2;
  color: #7f1d1d;
  border: 1px solid #fed7aa;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.section-tag--light {
  background-color: rgba(254,215,170,0.15);
  color: #fed7aa;
  border-color: rgba(254,215,170,0.3);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #1a0a0a;
  margin-bottom: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #7a5a4a;
  line-height: 1.7;
  margin: 0;
}

/* ===== BUTTONS GLOBAL ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #7f1d1d;
  color: #fff8f0;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  font-family: inherit;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #5a1414;
  color: #fff8f0;
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: #7f1d1d;
  padding: 13px 27px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid #7f1d1d;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-family: inherit;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #7f1d1d;
  color: #fff8f0;
  text-decoration: none;
  outline: none;
}

/* ===== ARTICLE TAG / CATEGORY BADGE ===== */
.article-cat {
  display: inline-block;
}

.article-cat a {
  display: inline-block;
  background-color: #fef3e2;
  color: #7f1d1d;
  border: 1px solid #fed7aa;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background-color 0.2s, color 0.2s;
}

.article-cat a:hover,
.article-cat a:focus {
  background-color: #7f1d1d;
  color: #fff;
  text-decoration: none;
}

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

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

  .section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

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

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

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

  html {
    font-size: 15px;
  }

  .section-header {
    margin-bottom: 28px;
    max-width: 100%;
  }

  .section-tag {
    font-size: 0.72rem;
    padding: 5px 13px;
    margin-bottom: 12px;
  }

  .section-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

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

  .section-container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .table-responsive,
  .table-wrapper {
    border-radius: 8px;
  }

  .article-cat a {
    font-size: 0.72rem;
    padding: 3px 9px;
  }
}

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

  html {
    font-size: 14px;
  }

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

  .section-tag {
    font-size: 0.68rem;
    padding: 4px 11px;
    gap: 5px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: clamp(1.1rem, 6vw, 1.5rem);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }

  .section-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .btn-primary,
  .btn-secondary {
    padding: 11px 16px;
    font-size: 0.87rem;
    gap: 6px;
  }

  .section-container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .article-cat a {
    font-size: 0.68rem;
    padding: 2px 8px;
  }

  p {
    line-height: 1.65;
  }
}
/* Fix: headings in dark containers must be white */
div[style*="color: white"] h1, div[style*="color: white"] h2, div[style*="color: white"] h3,
div[style*="background: #1"] h1, div[style*="background: #1"] h2, div[style*="background: #1"] h3,
div[style*="background: #2"] h1, div[style*="background: #2"] h2, div[style*="background: #2"] h3,
div[style*="background: #7"] h1, div[style*="background: #7"] h2, div[style*="background: #7"] h3,
div[style*="background: linear-gradient"] h1, div[style*="background: linear-gradient"] h2, div[style*="background: linear-gradient"] h3,
section[style*="background"] h1, section[style*="background"] h2,
.article-hero h1, .article-hero p, .article-hero__title,
.category-hero h1, .category-hero p {
  color: #ffffff !important;
}

/* Fix: p elements with inline color:white must stay white */
p[style*="color: white"], p[style*="color:#fff"], p[style*="color: #ffffff"],
strong[style*="color: white"], span[style*="color: white"],
h3[style*="color: white"], h4[style*="color: white"] {
  color: inherit !important;
}
