/* =====================================================
   KOME DOJO NEUPRÉ — styles partagés
   Palette : papier washi crème + orange terracotta dojo
   Typo    : Shippori Mincho (titres) · M PLUS Rounded 1c (corps)
   ===================================================== */

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

/* --- VARIABLES --- */
:root {
  --paper:       #f4efe4;
  --paper-warm:  #ede5d2;
  --paper-rule:  #d8cebc;

  --ink:         #261e14;
  --ink-mid:     #5c5040;
  --ink-soft:    #9c8e7c;

  --orange:      #c4601a;
  --orange-warm: #d97830;
  --orange-pale: #f2dcc8;

  --font-display: 'Shippori Mincho', Georgia, serif;
  --font-body: 'Inter', sans-serif;

  --max-w:  1080px;
  --nav-h:  68px;
}

/* --- BASE --- */
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* --- PATTERN SEIGAIHA --- */
.bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* --- Z-INDEX GLOBAUX --- */
.site-header,
.hero,
.section-rule,
.info-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header > *:not(.bg-pattern),
.site-footer > *:not(.bg-pattern) {
  position: relative;
  z-index: 1;
}

/* --- SÉPARATEUR (utilisé dans index, contact, horaires, stages) --- */
.section-rule {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rule-line {
  flex: 1;
  height: 1px;
  background: var(--paper-rule);
}

.rule-diamond {
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* --- EN-TÊTE DE SOUS-PAGES (contact, horaires, stages) --- */
.page-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 40px 48px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}
.page-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
}

/* .hero-eyebrow : utilisé dans index (.hero) ET dans les sous-pages (.page-hero) */
.hero-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* --- ANIMATION --- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE PARTAGÉ --- */
@media (max-width: 820px) {
  .page-hero { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 580px) {
  .section-rule { padding: 0 20px; }
}
