/* =============================================================
   MONOLITHE NOIR — index
   Palette canonique extraite du PSD
   Référence visuelle : BlackRock / Blackstone
   Typographie : Archivo Black (display) + Inter (sans-serif)
   ============================================================= */

:root {
  --bg: #f4ede2;
  --ink: #0d0d0b;
  --ink-soft: #4a4540;
  --ink-mute: #6a635a;
  --rule: #d6cebf;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 80px 32px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ========== Masthead ========== */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-4);
  border-bottom: 0.5px solid var(--ink);
}

.brand {
  display: block;
  line-height: 0;
}

.brand-logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

.login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.login:hover {
  color: var(--ink-mute);
}

.login:hover .login-icon {
  transform: translateX(2px);
}

.login-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

/* ========== Sections ========== */

.section {
  padding: var(--space-7) 0;
  border-top: 0.5px solid var(--rule);
}

.section--first {
  border-top: none;
  padding-top: var(--space-6);
}

.section-header {
  margin-bottom: var(--space-5);
}

.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
  font-weight: normal;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-mute);
  margin-top: calc(var(--space-5) * -1 + var(--space-3));
  margin-bottom: var(--space-5);
}

/* ========== Prose ========== */

.prose p {
  margin-bottom: 1.2em;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .lead {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
}

.prose em {
  font-style: italic;
}

/* ========== Pull quote ========== */

.pull {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: var(--ink);
  padding: var(--space-5) 0;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  margin: var(--space-3) 0 var(--space-5);
}

/* ========== Dispositif ========== */

.dispositif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.dispositif-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  margin-bottom: var(--space-3);
  color: var(--ink);
  font-weight: normal;
  letter-spacing: -0.3px;
}

.dispositif-item p {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

/* ========== Protocole ========== */

.protocole-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.protocole-day {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(44px, 5vw, 60px);
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: var(--space-2);
  line-height: 1;
}

.protocole-name {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: var(--space-3);
}

.protocole-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
}

/* ========== Contact ========== */

.contact-email {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(26px, 3.2vw, 40px);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  display: inline-block;
  margin-bottom: var(--space-4);
  letter-spacing: -0.5px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-email:hover {
  color: var(--ink-mute);
  border-bottom-color: var(--ink-mute);
}

.contact-note {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ========== Footer ========== */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 0.5px solid var(--ink);
  margin-top: var(--space-7);
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}

.footer-right {
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-line {
  display: block;
}

.footer-right a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.footer-right a:hover {
  border-bottom-color: var(--ink-mute);
}

/* ========== Responsive ========== */

@media (max-width: 1024px) {
  .page {
    padding: 32px 40px;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 20px 20px 24px;
  }
  .brand-logo {
    max-width: 220px;
  }
  .login-label {
    display: none;
  }
  .login-icon {
    width: 22px;
    height: 22px;
  }
  .section {
    padding: 72px 0;
  }
  .section--first {
    padding-top: var(--space-5);
  }
  .section-title {
    font-size: clamp(32px, 8vw, 44px);
    letter-spacing: -0.5px;
  }
  .prose p {
    font-size: 16px;
  }
  .prose .lead {
    font-size: 19px;
  }
  .dispositif-grid,
  .protocole-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .footer-logo {
    max-width: 200px;
  }
  .footer-right {
    text-align: left;
    font-size: 14px;
  }
}
