/* ===== Heure Miroir · Design System (Light Violet) ===== */

:root {
  /* Backgrounds */
  --bg-primary:    #f8f5ff;
  --bg-secondary:  #ffffff;
  --bg-elevated:   #f0e9ff;
  --bg-hover:      #ede4ff;

  /* Violet system */
  --violet-deep:   #5e3a9e;
  --violet:        #8159d4;
  --violet-soft:   #b89dde;
  --violet-glow:   rgba(129, 89, 212, 0.12);
  --violet-line:   #e2d5f5;

  /* Gold */
  --gold:          #c9a44c;
  --gold-soft:     rgba(201, 164, 76, 0.15);

  /* Text */
  --text-primary:  #2a2240;
  --text-secondary:#6b6280;
  --text-muted:    #9b95ad;
  --text-inverse:  #ffffff;

  /* Themes */
  --theme-love:        #d96874;
  --theme-spiritual:   #7b6fd4;
  --theme-career:      #5b8d72;
  --theme-twin-flame:  #c4688a;
  --theme-angel:       #d4af37;
  --theme-money:       #4a8b6f;

  /* Type */
  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body:    'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Space Mono', 'JetBrains Mono', 'Courier New', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-hour: 4.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm:     0 1px 3px rgba(42, 34, 64, 0.04);
  --shadow-md:     0 4px 12px rgba(94, 58, 158, 0.08);
  --shadow-lg:     0 12px 32px rgba(94, 58, 158, 0.12);
  --shadow-violet: 0 8px 24px rgba(129, 89, 212, 0.15);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--violet-deep); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--violet); }

button { font: inherit; cursor: pointer; border: 0; background: none; }

/* ===== Banner ===== */
.placeholder-banner {
  background: linear-gradient(95deg, #2a2240 0%, #5e3a9e 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  text-align: center;
}
.placeholder-banner b { color: var(--gold); }
.placeholder-banner a { color: #fff; text-decoration: underline; opacity: 0.85; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--violet-line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--violet-soft), var(--violet-deep) 75%);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
}
.brand-mark::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 2px; height: 9px;
  background: #fff;
  transform: translate(-50%, -90%) rotate(40deg);
  transform-origin: bottom center;
  border-radius: 2px;
}
.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
.nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
}
.nav a:hover, .nav a.active {
  background: var(--bg-elevated);
  color: var(--violet-deep);
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--violet-line);
  border-radius: var(--radius-full);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}
.lang-switch a:hover { background: var(--bg-hover); color: var(--violet-deep); }
.lang-switch a.active {
  background: var(--violet-deep);
  color: #fff;
}
.menu-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--violet-line);
  background: var(--bg-secondary);
  align-items: center; justify-content: center;
  color: var(--violet-deep);
  margin-left: auto;
}

/* ===== Hour Selector ===== */
.selector {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--violet-line);
  position: sticky;
  top: 65px;
  z-index: 40;
}
.selector-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.selector-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 500;
  flex-shrink: 0;
}
.selector-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.selector-input {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid var(--violet-line);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  width: 110px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-align: center;
}
.selector-input:focus {
  outline: 2px solid var(--violet-glow);
  border-color: var(--violet);
}
.btn {
  background: var(--violet-deep);
  color: var(--text-inverse);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--violet); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--violet-deep);
  border: 1px solid var(--violet-line);
}
.btn-ghost:hover { background: var(--bg-hover); }

.next-mirror {
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.next-mirror b { color: var(--violet-deep); font-weight: 600; font-family: var(--font-mono); }
.next-mirror .dot {
  width: 8px; height: 8px;
  background: var(--violet);
  border-radius: 50%;
  animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.selector-expand-btn {
  color: var(--violet-deep);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.selector-expanded {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 20px;
  border-top: 1px dashed var(--violet-line);
  padding-top: 20px;
  animation: slideDown 200ms ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all var(--transition);
  border: 0;
  cursor: pointer;
}
.tab:hover { background: var(--bg-hover); }
.tab.active { background: var(--violet-deep); color: #fff; }

.hour-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.hour-grid.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hour-cell {
  padding: 10px 8px;
  text-align: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.hour-cell:hover {
  background: var(--violet-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-violet);
}
.hour-cell.current {
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow--flush { padding-left: 0; padding-right: 0; }
@media (max-width: 900px) {
  .container-narrow--flush { padding-left: 16px; padding-right: 16px; }
}

/* ===== Hero ===== */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-6);
  color: var(--text-primary);
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--violet-deep);
}
.hero .subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  font-weight: 400;
  text-wrap: pretty;
}
.hero .byline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ===== Hour page hero ===== */
.hour-hero {
  padding: var(--space-12) 0 var(--space-8);
  text-align: center;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--violet-deep); }
.breadcrumb .sep { margin: 0 8px; color: var(--violet-soft); }

.hour-display {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 8vw, var(--text-hour));
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
  margin: 0;
}
.hour-display .colon {
  color: var(--violet);
  animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--violet-deep);
  margin: var(--space-6) 0 var(--space-4);
}
.badge-double { background: var(--bg-elevated); color: var(--violet-deep); }
.badge-triple { background: rgba(201, 164, 76, 0.15); color: #8a6e25; }
.badge-inverted { background: rgba(216, 104, 116, 0.12); color: #a8425a; }

.hour-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  line-height: 1.15;
  margin: var(--space-2) 0 var(--space-4);
  color: var(--text-primary);
  text-wrap: balance;
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--violet-deep);
  max-width: 580px;
  margin: 0 auto var(--space-4);
  text-wrap: balance;
}
.author-byline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.hour-image {
  border-radius: var(--radius-md);
  margin: var(--space-6) auto 0;
  max-width: 800px;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* ===== Quick answer card ===== */
.quick-answer {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8);
  margin: var(--space-12) auto;
  box-shadow: var(--shadow-md);
  position: relative;
  border-left: 3px solid var(--violet);
}
.quick-answer .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--violet-deep);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.quick-answer p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}

/* ===== Section ===== */
.section {
  margin: var(--space-12) 0;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-6);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}
.section p:last-child { margin-bottom: 0; }

.section-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: inline-block;
}

/* ===== Numerology block ===== */
.numerology-math {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-4) 0;
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--violet-deep);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.numerology-math .equals {
  color: var(--violet);
  margin: 0 8px;
}
.numerology-math .result {
  color: var(--text-primary);
  font-size: 1.4em;
}

/* ===== Action list ===== */
.action-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.action-list li {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--violet-line);
}
.action-list .num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--violet);
  flex-shrink: 0;
  width: 32px;
  line-height: 1;
}
.action-list li p,
.article-body .action-list li p { margin: 0; font-size: var(--text-base); line-height: 1.6; }

/* ===== Inline links (compact "pour aller plus loin") ===== */
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-6) 0;
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}
.inline-links::before {
  content: 'Pour Aller Plus Loin';
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 2px;
}
.inline-links a {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--violet-deep);
  border: 1px solid var(--violet-line);
  white-space: nowrap;
  transition: all var(--transition);
}
.inline-links a:hover {
  background: var(--violet-deep);
  color: #fff;
  border-color: var(--violet-deep);
}
@media (max-width: 500px) {
  .inline-links a { font-size: 12px; padding: 5px 12px; }
}

/* ===== Related hours ===== */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.related a {
  background: var(--bg-secondary);
  border: 1px solid var(--violet-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  transition: all var(--transition);
}
.related a:hover {
  background: var(--violet-deep);
  border-color: var(--violet-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-violet);
}
.related a:hover .h, .related a:hover .t { color: #fff; }
.related .h {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--violet-deep);
  display: block;
  margin-bottom: 4px;
}
.related .t {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== FAQ ===== */
.faq details {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--violet-line);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all var(--transition);
}
.faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--violet-soft);
}
.faq summary {
  padding: var(--space-4) var(--space-6);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-lg);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 300;
  color: var(--violet);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq .answer {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ===== Author note ===== */
.author-note {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-primary) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
  margin: var(--space-16) 0;
  text-align: center;
  position: relative;
}
.author-note::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--violet-soft);
  position: absolute;
  top: -20px;
  left: 32px;
  line-height: 1;
  font-style: italic;
  opacity: 0.6;
}
.author-note .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--violet);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.author-note p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

/* ===== Card grid (homepage) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: var(--space-8) 0;
}
.hour-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--violet-line);
  transition: all var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hour-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-violet);
  border-color: var(--violet-soft);
}
.hour-card .h {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.hour-card:hover .h { color: var(--violet-deep); }
.hour-card .t {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== Section header (homepage) ===== */
.section-header {
  margin: var(--space-24) 0 var(--space-8);
  text-align: center;
}
.section-header .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--violet);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-4xl);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  text-wrap: pretty;
}

.cta-row {
  text-align: center;
  margin-top: var(--space-8);
}

/* ===== Intro section ===== */
.intro-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-12);
  margin: var(--space-16) 0;
  box-shadow: var(--shadow-md);
}
.intro-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  margin: 0 0 var(--space-6);
  letter-spacing: -0.01em;
}
.intro-section .types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.type-card {
  padding: var(--space-6);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}
.type-card .count {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--violet-deep);
  display: block;
}
.type-card .name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  margin: 4px 0 8px;
}
.type-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ===== Author section ===== */
.author-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-12);
  align-items: center;
  margin: var(--space-16) 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  box-shadow: var(--shadow-md);
}
.author-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg-primary);
}
.author-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
.author-section p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}
.author-section .author-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--violet-deep);
  font-size: var(--text-lg);
  border-left: 3px solid var(--violet);
  padding-left: 16px;
  margin: var(--space-4) 0;
}

/* ===== Editorial cards ===== */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin: var(--space-8) 0;
}
.editorial-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.editorial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-violet);
}
.editorial-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.editorial-card .body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.editorial-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin: 0;
  color: var(--text-primary);
  text-wrap: balance;
}
.editorial-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.editorial-card .read-more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--violet-deep);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 8px;
}

/* ===== Footer ===== */
.site-footer {
  background: #2a2240;
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-24);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin: 0 0 var(--space-4);
}
.footer-col .brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col .brand-block .brand { color: #fff; }
.footer-col .brand-block p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255,255,255,0.55);
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--violet-soft); }

.hour-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 12px;
}
.hour-link-grid a {
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.hour-link-grid a:hover { color: var(--violet-soft); }

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-12) auto 0;
  padding: var(--space-6) 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ===== Hub page table ===== */
.hub-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: var(--space-8) 0;
}
.hub-table th {
  background: var(--bg-elevated);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--violet-deep);
  text-transform: uppercase;
  font-weight: 600;
  padding: var(--space-4);
  border-bottom: 1px solid var(--violet-line);
}
.hub-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--violet-line);
  font-size: 14px;
  color: var(--text-primary);
}
.hub-table tr:last-child td { border-bottom: 0; }
.hub-table tr:hover { background: var(--bg-hover); }
.hub-table td.hour {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--violet-deep);
}

/* ===== Calculator ===== */
.calc-panel {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  margin: var(--space-12) auto;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  text-align: center;
}
.calc-panel h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin: 0 0 var(--space-4);
}
.calc-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: var(--space-8) 0 var(--space-6);
  flex-wrap: wrap;
}
.calc-input {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  padding: var(--space-4) var(--space-6);
  border: 2px solid var(--violet-line);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  width: 180px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-align: center;
}
.calc-input:focus { outline: 2px solid var(--violet-glow); border-color: var(--violet); }
.calc-result {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.calc-result.match { border-left: 4px solid var(--violet); }
.calc-result.nomatch { border-left: 4px solid var(--text-muted); }
.calc-result .h {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--violet-deep);
  flex-shrink: 0;
}
.calc-result .text {
  flex: 1;
  font-size: var(--text-base);
  color: var(--text-primary);
}
.calc-result .text strong { color: var(--violet-deep); }

/* ===== About page ===== */
.about-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-12);
  align-items: start;
  margin: var(--space-8) 0;
}
.about-section .portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-section h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-4xl);
  margin: 0 0 var(--space-6);
  letter-spacing: -0.01em;
}
.about-section p {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}
.about-section blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--violet-deep);
  margin: var(--space-8) 0 0;
  padding-left: 24px;
  border-left: 3px solid var(--violet);
  line-height: 1.4;
  text-wrap: balance;
}

/* ===== Editorial article ===== */
.editorial-hero {
  padding: var(--space-12) 0 var(--space-8);
  text-align: center;
}
.editorial-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-5xl);
  letter-spacing: -0.01em;
  margin: var(--space-4) 0 var(--space-4);
  text-wrap: balance;
}
.editorial-hero .lead {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-6);
}
.article-body p {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--text-primary);
  margin: 0 0 var(--space-6);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  margin: var(--space-12) 0 var(--space-4);
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin: var(--space-8) 0 var(--space-3);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header-inner { gap: 12px; padding: 12px 16px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--violet-line); padding: 12px 16px; flex-direction: column; gap: 4px; }
  .nav.open { display: flex; }
  .menu-btn { display: flex; }
  .selector { top: 58px; }
  .selector-inner { padding: 10px 16px; gap: 8px 14px; }
  .selector-title { font-size: 15px; }
  .selector-expand-btn { margin-left: auto; }
  .container, .container-narrow { padding: 0 16px; }
  .hour-grid { grid-template-columns: repeat(4, 1fr); }
  .hour-grid.compact { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .editorial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .intro-section { padding: var(--space-8); }
  .intro-section .types { grid-template-columns: 1fr; gap: var(--space-4); }
  .author-section { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-8); text-align: center; }
  .about-section { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-section .portrait { max-width: 280px; margin: 0 auto; }
  .hero { padding: var(--space-12) 0 var(--space-8); }
  .quick-answer { padding: var(--space-6); }
  .author-note { padding: var(--space-8) var(--space-6); }
  .author-note::before { left: 16px; font-size: 80px; }
}

@media (max-width: 620px) {
  /* Compact hour selector: hide the long prompt, put input + button on one row,
     and the next-mirror info + "see all" toggle on a tight second row. */
  .selector-inner { padding: 9px 16px; gap: 8px 12px; }
  .selector-title { display: none; }
  .selector-form { flex: 1 1 100%; }
  .selector-input { flex: 1; width: auto; min-width: 0; font-size: 16px; padding: 9px 12px; }
  .selector-form .btn { white-space: nowrap; padding: 9px 16px; }
  .next-mirror { font-size: 12px; flex: 1 1 auto; }
  .selector-expand-btn {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    margin-left: 0;
    font-size: 12px;
  }
}

@media (max-width: 500px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hour-link-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); text-align: left; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    text-align: left;
  }
  .footer-legal-links { gap: 14px; }
}

/* ===== Calculator page enrichment ===== */
.calc-hero { padding-bottom: 28px; }
.calc-hero .subtitle { max-width: 760px; }
.calc-hero-next-mirror { justify-content: center; margin-top: 18px; font-size: 15px; }
.calc-panel { position: relative; overflow: hidden; }
.calc-panel::before {
  content: '';
  position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--violet-deep), transparent);
}
.calc-label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-primary); }
.calc-label-hero {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  color: var(--text-primary); margin-bottom: 18px; letter-spacing: -0.01em;
}
.calc-input { height: 54px; }
.calc-form .btn { height: 54px; padding: 0 28px; }
.calc-help { margin: 12px 0 0; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; }
.calc-example { display: none; }
.calc-section { max-width: 900px; margin: 64px auto; }
.calc-section > h2 {
  margin: 0 0 14px; font-family: var(--font-display);
  font-size: var(--text-3xl); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em;
}
.calc-section > p { max-width: 760px; margin: 0 0 18px; color: var(--text-primary); font-size: 17px; line-height: 1.75; }
.calc-family-grid, .calc-info-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px;
}
.calc-family-card, .calc-info-card {
  padding: 23px; border: 1px solid var(--violet-line); border-radius: var(--radius-lg);
  background: var(--bg-secondary); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; height: 100%;
}
.calc-family-card .count {
  display: inline-block; margin-bottom: 12px; color: var(--violet-deep);
  font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700;
}
.calc-family-card h3, .calc-info-card h3 {
  margin: 0 0 9px; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500;
}
.calc-family-card p, .calc-info-card p { margin: 0; color: var(--text-secondary); line-height: 1.65; }
.calc-family-card p { flex: 1; }
.calc-family-card a { display: inline-block; margin-top: 14px; color: var(--violet-deep); font-weight: 700; }
.calc-family-card a.btn-ghost:hover { background: var(--violet-deep); color: #fff; border-color: var(--violet-deep); }
.filter-table { margin: 24px 0 8px; }
.filter-table-note { font-size: 13px; color: var(--text-muted); font-style: italic; }
.filter-table .table-wrap { overflow-x: auto; }
.sub-answer-list { display: flex; flex-direction: column; gap: 20px; margin: 24px 0 32px; }
.sub-answer-item {
  background: var(--bg-secondary);
  border: 1px solid var(--violet-line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.sub-answer-item h3 { margin: 0 0 8px; }
.sub-answer-item p { margin: 0 0 10px; }
.sub-answer-item p:last-child { margin-bottom: 0; }
.method-module { }
.method-reading {
  background: var(--bg-secondary);
  border: 1px solid var(--violet-line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 16px 0 20px;
}
.method-reading-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--violet-deep); text-transform: uppercase; font-weight: 600; margin-bottom: 8px;
}
.method-reading p { margin: 0 0 16px; }
.method-calc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.method-calc-badge {
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  background: var(--bg-elevated); color: var(--violet-deep);
  padding: 8px 14px; border-radius: var(--radius-sm); letter-spacing: 0.01em;
}
.method-method-btn { padding: 8px 16px; font-size: 13px; }
.method-accordions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.method-accordion {
  background: var(--bg-secondary); border: 1px solid var(--violet-line);
  border-radius: var(--radius-md); padding: 0; overflow: hidden;
}
.method-accordion summary {
  padding: 14px 20px; cursor: pointer; font-weight: 600; font-family: var(--font-display);
  font-size: 17px; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.method-accordion summary::-webkit-details-marker { display: none; }
.method-accordion summary::after { content: '+'; font-family: var(--font-mono); font-size: 20px; color: var(--violet); }
.method-accordion[open] summary::after { content: '−'; }
.method-accordion .answer { padding: 0 20px 18px; color: var(--text-secondary); }
.method-accordion .answer p { margin: 0 0 10px; }
.method-accordion .answer p:last-child { margin-bottom: 0; }
.method-alt-table { margin: 12px 0 0; font-size: 13px; }
.method-disclaimer {
  background: var(--bg-elevated); border-radius: var(--radius-md);
  padding: 18px 22px; margin-top: 8px;
}
.method-disclaimer-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-muted); text-transform: uppercase; font-weight: 600; margin-bottom: 6px;
}
.method-disclaimer p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.angel-caveat { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.method-tool {
  background: var(--bg-secondary); border: 1px solid var(--violet-line);
  border-radius: var(--radius-lg); padding: 28px; margin: 24px 0 32px;
  box-shadow: var(--shadow-sm);
}
.method-tool-title { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.method-tool-intro { font-size: 14px; color: var(--text-secondary); margin: 0 0 16px; }
.method-tool-form { display: flex; gap: 10px; flex-wrap: wrap; }
.method-tool-noscript { font-size: 13px; color: var(--text-muted); font-style: italic; }
.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; }
@media (max-width: 600px) { .method-tool-form { flex-direction: column; } .method-tool-form .calc-input, .method-tool-form .btn { width: 100%; } }
.mode-tabs { display: flex; gap: 8px; max-width: 900px; margin: 0 auto 20px; flex-wrap: wrap; }
.mode-tab {
  flex: 1; min-width: 200px; padding: 12px 18px; border-radius: var(--radius-md);
  background: var(--bg-elevated); color: var(--text-secondary); font-weight: 600; font-size: 14px;
  border: 1px solid var(--violet-line); cursor: pointer; transition: all 200ms ease;
}
.mode-tab.active { background: var(--violet-deep); color: #fff; border-color: var(--violet-deep); }
.mode-tab:hover:not(.active) { background: var(--bg-hover); }
.context-tool-method-line { font-size: 13px; color: var(--text-muted); font-style: italic; margin: 16px 0 4px; }
.compare-tool-link-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--violet-line); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--violet-deep); background: var(--bg-elevated);
  transition: all 200ms ease;
}
.compare-tool-link-secondary::after { content: '→'; }
.compare-tool-link-secondary:hover { background: var(--violet-deep); color: #fff; border-color: var(--violet-deep); }
.calc-directory { padding: 32px; border-radius: var(--radius-lg); background: var(--bg-secondary); box-shadow: var(--shadow-md); }
.calc-directory .tabs { margin-bottom: 16px; }
.calc-note {
  padding: 22px 24px; border-left: 3px solid var(--violet-deep);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--bg-elevated);
}
.calc-note p { margin: 0; line-height: 1.75; }
.calc-faq { display: grid; gap: 12px; margin-top: 22px; }
.calc-faq details {
  padding: 17px 19px; border: 1px solid var(--violet-line); border-radius: var(--radius-md); background: var(--bg-secondary);
}
.calc-faq summary { cursor: pointer; font-weight: 700; color: var(--text-primary); }
.calc-faq details p { margin: 13px 0 0; color: var(--text-secondary); line-height: 1.65; }
@media (max-width: 760px) {
  .calc-family-grid, .calc-info-grid { grid-template-columns: 1fr; }
  .calc-family-card a { white-space: normal; }
  .calc-directory { padding: 20px; }
}

/* Analyseur contextuel d'heures miroir */
.context-tool {
  max-width: 900px;
  margin: 36px auto 64px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--violet-line);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}
.context-tool::before {
  content: '';
  position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--violet-deep), transparent);
}
.context-tool * { box-sizing: border-box; }
.context-tool-heading { max-width: 720px; margin-bottom: 28px; }
.context-tool-heading h2 {
  margin: 0 0 10px; font-family: var(--font-display);
  font-size: var(--text-3xl); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em;
}
.context-tool-heading p { margin: 0; color: var(--text-secondary); line-height: 1.7; }
.context-tool-kicker {
  margin-bottom: 8px !important; color: var(--violet-deep) !important;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.context-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.context-tool-field, .context-tool-fieldset { display: grid; gap: 8px; }
.context-tool-field-full { grid-column: 1 / -1; }
.context-tool label, .context-tool legend {
  color: var(--text-primary); font-weight: 700; font-size: 14px;
}
.context-tool input[type="text"], .context-tool select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--violet-line); border-radius: var(--radius-md);
  background: #fff; color: var(--text-primary); font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.context-tool input[type="text"] { font-family: var(--font-mono); font-size: 17px; letter-spacing: 0.02em; }
.context-tool select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235e3a9e' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.context-tool input:focus, .context-tool select:focus, .context-tool button:focus-visible, .context-tool a:focus-visible {
  border-color: var(--violet-deep); outline: 3px solid var(--violet-glow); outline-offset: 2px;
}
.context-tool small { color: var(--text-secondary); line-height: 1.45; font-size: 13px; }
.context-tool-fieldset {
  margin: 0; padding: 16px; border: 1px solid var(--violet-line); border-radius: var(--radius-md); background: var(--bg-primary);
}
.context-tool-fieldset legend { padding: 0 6px; }
.context-tool-options { display: flex; flex-wrap: nowrap; gap: 8px 14px; margin-top: 6px; }
.context-tool-options label { white-space: nowrap; }
.context-tool-options label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  padding: 9px 14px; border: 1px solid transparent; border-radius: var(--radius-md);
  background: #fff; cursor: pointer; transition: all 150ms ease; font-size: 14px;
}
.context-tool-options label:has(input:checked) {
  border-color: var(--violet-deep); background: var(--violet-glow); color: var(--violet-deep);
}
.context-tool-options input { accent-color: var(--violet-deep); }
.context-tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.context-tool-actions .btn { flex: 1 1 auto; min-width: 200px; min-height: 52px; }
.context-tool-secondary {
  min-height: 52px; padding: 11px 20px; border: 1px solid var(--violet-line); border-radius: var(--radius-md);
  background: #fff; color: var(--text-primary); font: inherit; font-weight: 700; cursor: pointer; transition: all 150ms ease;
}
.context-tool-secondary:hover { border-color: var(--violet-deep); color: var(--violet-deep); }
.context-tool-error { min-height: 1.4em; margin: 14px 0 0; color: #9a2525; font-weight: 600; font-size: 14px; }
.context-tool-result {
  margin-top: 30px; padding: 24px; border: 1px solid var(--violet-line); border-left: 4px solid var(--violet-deep);
  border-radius: var(--radius-md); background: var(--bg-primary);
  animation: contextToolReveal 260ms ease;
}
@keyframes contextToolReveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.context-tool-result[hidden] { display: none; }
.context-tool-result-header { margin-bottom: 20px; }
.context-tool-badge {
  display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--violet-deep);
  color: #fff; font-family: var(--font-mono); font-size: .88rem; font-weight: 700; letter-spacing: 0.01em;
}
.context-tool-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.context-tool-card {
  padding: 18px; border: 1px solid var(--violet-line); border-radius: var(--radius-md); background: #fff;
  transition: box-shadow 150ms ease;
}
.context-tool-card:hover { box-shadow: var(--shadow-sm); }
.context-tool-card h3 {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--violet-deep);
}
.context-tool-card p { margin: 0; line-height: 1.68; font-size: 15px; }
.context-tool-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.context-tool-result-actions a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 11px 18px;
  border-radius: var(--radius-md); background: var(--violet-deep); color: #fff; font-weight: 700; text-decoration: none;
  transition: background 150ms ease;
}
.context-tool-result-actions a:hover { background: var(--violet); }
.context-tool-result-actions a.context-tool-link-secondary { border: 1px solid var(--violet-line); background: #fff; color: var(--text-primary); }
.context-tool-result-actions a.context-tool-link-secondary:hover { border-color: var(--violet-deep); color: var(--violet-deep); background: #fff; }
.context-tool-privacy { margin: 18px 0 0; color: var(--text-secondary); font-size: .88rem; }
.context-tool-noscript { margin-top: 15px; padding: 12px; border-radius: var(--radius-md); background: #fff3cd; color: #5e4d00; }
@media (max-width: 700px) {
  .context-tool { padding: 22px; }
  .context-tool-grid, .context-tool-result-grid { grid-template-columns: 1fr; }
  .context-tool-field-full { grid-column: auto; }
  .context-tool-options { flex-wrap: wrap; }
  .context-tool-actions { flex-direction: column; }
  .context-tool-actions > *, .context-tool-result-actions > * { width: 100%; justify-content: center; }
}

/* Comparateur d'heures miroir */
.compare-tool {
  max-width: 960px; margin: 36px auto 64px; padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--violet-line); border-radius: var(--radius-lg);
  background: var(--bg-secondary); box-shadow: var(--shadow-md); color: var(--text-primary);
  position: relative; overflow: hidden;
}
.compare-tool::before {
  content: '';
  position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--violet-deep), transparent);
}
.compare-tool * { box-sizing: border-box; }
.compare-tool-heading { max-width: 750px; margin-bottom: 26px; }
.compare-tool-heading h2 {
  margin: 0 0 10px; font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em;
}
.compare-tool-heading p { margin: 0; color: var(--text-secondary); line-height: 1.7; }
.compare-tool-kicker {
  margin-bottom: 8px !important; color: var(--violet-deep) !important;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.compare-tool-list { display: grid; gap: 12px; }
.compare-tool-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 10px; align-items: center;
  padding: 6px; border: 1px solid var(--violet-line); border-radius: var(--radius-md); background: var(--bg-primary);
}
.compare-tool-row-index {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 44px; border-radius: var(--radius-sm);
  background: var(--violet-deep); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.compare-tool-field { display: grid; gap: 6px; }
.compare-tool-row .compare-tool-field { gap: 0; }
.compare-tool label { color: var(--text-primary); font-weight: 700; font-size: 14px; }
.compare-tool-row .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; }
.compare-tool input, .compare-tool select {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--violet-line); border-radius: var(--radius-sm);
  background: #fff; color: var(--text-primary); font: inherit; transition: border-color 150ms ease;
}
.compare-tool-context select { min-height: 52px; border-radius: var(--radius-md); }
.compare-tool input { font-family: var(--font-mono); font-size: 16px; }
.compare-tool input:focus, .compare-tool select:focus, .compare-tool button:focus-visible, .compare-tool a:focus-visible {
  border-color: var(--violet-deep); outline: 3px solid var(--violet-glow); outline-offset: 2px;
}
.compare-tool-remove {
  width: 44px; height: 44px; border: 1px solid var(--violet-line); border-radius: var(--radius-sm);
  background: #fff; color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; transition: all 150ms ease; flex-shrink: 0;
}
.compare-tool-remove:hover { border-color: #9a2525; color: #9a2525; background: #fdf2f2; }
.compare-tool-context { margin-top: 20px; }
.compare-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.compare-tool-actions .btn { min-height: 48px; padding: 0 24px; }
.compare-tool-secondary {
  min-height: 48px; padding: 11px 18px; border: 1px solid var(--violet-line); border-radius: var(--radius-md);
  background: #fff; color: var(--text-primary); font: inherit; font-weight: 700; cursor: pointer; transition: all 150ms ease;
}
.compare-tool-secondary:hover { border-color: var(--violet-deep); color: var(--violet-deep); }
.compare-tool-secondary:disabled { cursor: not-allowed; opacity: .5; }
.compare-tool-error { min-height: 1.4em; margin: 14px 0 0; color: #9a2525; font-weight: 600; font-size: 14px; }
.compare-tool-result {
  margin-top: 30px; padding: 24px; border: 1px solid var(--violet-line); border-left: 4px solid var(--violet-deep);
  border-radius: var(--radius-md); background: var(--bg-primary); animation: contextToolReveal 260ms ease;
}
.compare-tool-result[hidden] { display: none; }
.compare-tool-badge {
  display: inline-block; margin-bottom: 16px; padding: 7px 14px; border-radius: 999px; background: var(--violet-deep);
  color: #fff; font-family: var(--font-mono); font-size: .88rem; font-weight: 700;
}
.compare-tool-table-wrap { overflow-x: auto; border-radius: var(--radius-md); }
.compare-tool-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; }
.compare-tool-table caption { margin-bottom: 12px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; text-align: left; color: var(--text-primary); }
.compare-tool-table th, .compare-tool-table td { padding: 12px 14px; border-bottom: 1px solid var(--violet-line); text-align: left; vertical-align: top; }
.compare-tool-table th { color: var(--violet-deep); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; background: var(--bg-elevated); }
.compare-tool-table tr:last-child td { border-bottom: 0; }
.compare-tool-table a { color: var(--violet-deep); font-weight: 700; }
.compare-tool-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.compare-tool-card { padding: 18px; border: 1px solid var(--violet-line); border-radius: var(--radius-md); background: #fff; }
.compare-tool-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--violet-deep); }
.compare-tool-card p, .compare-tool-card ul { margin: 0; line-height: 1.68; font-size: 15px; }
.compare-tool-card ul { padding-left: 20px; }
.compare-tool-card li + li { margin-top: 6px; }
.compare-tool-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.compare-tool-result-actions a, .compare-tool-result-actions button {
  display: inline-flex; align-items: center; min-height: 46px; padding: 11px 18px; border: 1px solid transparent;
  border-radius: var(--radius-md); background: var(--violet-deep); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background 150ms ease;
}
.compare-tool-result-actions a:hover { background: var(--violet); }
.compare-tool-result-actions button { border-color: var(--violet-line); background: #fff; color: var(--text-primary); }
.compare-tool-result-actions button:hover { border-color: var(--violet-deep); color: var(--violet-deep); }
.compare-tool-privacy { margin: 18px 0 0; color: var(--text-secondary); font-size: .88rem; }
.compare-tool-noscript { margin-top: 15px; padding: 12px; border-radius: var(--radius-md); background: #fff3cd; color: #5e4d00; }
@media (max-width: 760px) {
  .compare-tool { padding: 22px; }
  .compare-tool-summary-grid { grid-template-columns: 1fr; }
  .compare-tool-row { grid-template-columns: 32px minmax(0,1fr) 40px; }
  .compare-tool-row-index { width: 32px; height: 40px; font-size: 12px; }
  .compare-tool-remove { width: 40px; height: 40px; }
  .compare-tool-table, .compare-tool-table tbody, .compare-tool-table tr, .compare-tool-table td { display: block; width: 100%; }
  .compare-tool-table thead { display: none; }
  .compare-tool-table tr { margin-bottom: 12px; padding: 10px; border: 1px solid var(--violet-line); border-radius: var(--radius-md); }
  .compare-tool-table td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; padding: 7px 4px; border: 0; }
  .compare-tool-table td::before { color: var(--text-secondary); font-size: .8rem; font-weight: 700; content: attr(data-label); }
  .compare-tool-actions { flex-direction: column; }
  .compare-tool-actions > *, .compare-tool-result-actions > * { width: 100%; justify-content: center; }
}

/* placeholder marker */
.placeholder-domain {
  font-family: var(--font-mono);
  color: var(--gold);
  background: rgba(201,164,76,0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ===== Blog pagination ===== */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: var(--space-12) 0 var(--space-8);
  flex-wrap: wrap;
}
.blog-pagination-nums {
  display: flex;
  gap: 6px;
  order: 2;
}
.blog-pagination-nums a,
.blog-page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}
.blog-pagination-nums a {
  color: var(--violet-deep);
  background: var(--bg-secondary);
  border: 1px solid var(--violet-line);
  transition: all var(--transition);
}
.blog-pagination-nums a:hover { background: var(--bg-hover); }
.blog-page-current {
  background: var(--violet-deep);
  color: #fff;
}
@media (max-width: 600px) {
  .blog-pagination { justify-content: center; }
  .blog-pagination-nums { order: 0; width: 100%; justify-content: center; }
}


/* ===== Static site additions ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-8) 0;
}
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--violet-deep);
  font-size: var(--text-2xl);
  border-left: 3px solid var(--violet);
  padding-left: 20px;
  margin: var(--space-12) 0;
  line-height: 1.4;
  text-wrap: balance;
}
.next-mirror b a, .next-mirror a {
  color: var(--violet-deep);
  font-weight: 600;
  font-family: var(--font-mono);
  text-decoration: none;
}
.next-mirror a:hover { color: var(--violet); text-decoration: underline; }

/* Hour cells: keep tabular look */
.hour-grid a.hour-cell {
  text-decoration: none;
  display: block;
}

/* Smooth result area in calc page */
#calc-result:empty { display: none; }

/* ===== Hero image with graceful "image à venir" fallback ===== */
.img-frame {
  display: block;
  position: relative;
  margin: var(--space-6) auto 0;
  max-width: 800px;
  width: 100%;
}
.editorial-hero .img-frame,
.hour-hero .img-frame { margin-left: auto; margin-right: auto; }
.img-frame .img-fallback { display: none; }
.img-frame.is-missing img { display: none; }
.img-frame.is-missing .img-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, var(--bg-elevated), var(--bg-elevated) 12px, var(--bg-hover) 12px, var(--bg-hover) 24px);
  border: 1.5px dashed var(--violet-soft);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-align: center;
  padding: 24px;
}
.img-frame .img-fallback-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-deep);
  font-weight: 600;
}
.img-frame .img-fallback code {
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--violet-line);
}

/* Title-cased headings keep a touch of letter-spacing for polish */
.hero h1, .hour-hero h1, .editorial-hero h1, .about-section h1 { letter-spacing: -0.015em; }

/* ===== Legal pages ===== */
.legal-hero {
  padding: var(--space-12) 0 var(--space-6);
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-4xl);
  letter-spacing: -0.015em;
  margin: var(--space-2) 0 var(--space-3);
  text-wrap: balance;
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.legal-body h2 { margin-top: var(--space-8); }
.legal-body p { font-size: 1.0625rem; }
.legal-todo {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(201, 164, 76, 0.1);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
}
.legal-todo .legal-todo-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8a6e25;
  background: rgba(201, 164, 76, 0.25);
  padding: 4px 9px;
  border-radius: var(--radius-full);
  margin-top: 3px;
}
.legal-todo p {
  margin: 0;
  font-size: 0.95rem !important;
  line-height: 1.6;
  color: var(--text-secondary);
}
.footer-legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ===== Contact form ===== */
.contact-form {
  display: grid;
  gap: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--violet-line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-6);
}
.contact-form .field {
  display: grid;
  gap: 6px;
}
.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.contact-form .req { color: var(--theme-love); }
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--violet-line);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--violet-glow);
  border-color: var(--violet);
}
.contact-form .btn { justify-self: start; }
.contact-feedback {
  margin: 4px 0 0;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}
.contact-feedback.ok { background: var(--bg-elevated); color: var(--violet-deep); }
.contact-feedback.error { background: rgba(216,104,116,0.12); color: #a8425a; }
.contact-direct {
  margin-top: var(--space-6);
  font-size: 1.0625rem;
  color: var(--text-secondary);
}
