/*
 * Main stylesheet for the JPER Conseil landing page.
 * The design borrows its palette and typography from the provided PDF.
 * Colours are defined as CSS custom properties for easy adjustment.
 */

:root {
  /* Primary dark blue taken from the report headings */
  --primary-color: #273d49;
  /* Light grey for subtle text and separators */
  --secondary-color: #7e8a94;
  /* Accent colour (unused for now, reserved for future call‑to‑action) */
  --accent-color: #0c66ff;
  /* Background colour */
  --background-color: #ffffff;
  /* Font family */
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--primary-color);
  font-family: var(--font-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Prevent text selection throughout the page to discourage copy/paste */
.noselect, .noselect * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Sticky header with slight translucency and blur */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 24px;
  /* Use brand dark blue for the header background */
  background: rgba(39, 61, 73, 0.95);
  backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

#logo {
  height: 40px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--primary-color);
}

.contact-item {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-item:hover {
  border-color: var(--primary-color);
}

.counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d1d5db;
}

.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* Individual page wrapper */
.page {
  position: relative;
  margin-bottom: 48px;
}

.page img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

/* Watermark overlay: uses ::after pseudo element to draw rotated text */
.page.watermark::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(0, 0, 0, 0.04);
  font-size: 4rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  transform: rotate(-30deg);
}

/* Footer styling */
.footer {
  text-align: center;
  padding: 40px 16px;
  font-size: 0.8rem;
  color: var(--secondary-color);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hero section styling */
.hero {
  min-height: 60vh;
  background: radial-gradient(circle at top left, #0C66FF 0%, #273d49 70%, #0c1f2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 3rem 1rem;
}
.hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero .btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background-color: #0C66FF;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.hero .btn:hover {
  background-color: #0A55D3;
}