/* ============================================================
   MercIA — Feuille de style principale
   DA « Papier & encre » v2 — interfaces-style update
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

/* --- Variables --- */
:root {
  --blanc-neutre: #fcfcfc;
  --encre: #111111;
  --vert-profond: #0F6E56;
  --bleu-slate: #4A7BA7;
  --sable: #c8b89a;
  --gris-bleu: #888888;
  --vert-pastel: #C1E8D9;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 8px;
  --border: 1px solid #f0f0f0;
  --border-soft: 1px solid #f5f5f5;
  --max-width: 680px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--blanc-neutre);
  color: var(--encre);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: var(--vert-profond); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Dots --- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.dot { display: inline-block; border-radius: 50%; flex-shrink: 0; }
.dot-green { width: 7px; height: 7px; background: var(--vert-profond); }
.dot-blue  { width: 7px; height: 7px; background: var(--bleu-slate); }
.dot-sable { width: 7px; height: 7px; background: var(--sable); }
.dot-live  { width: 7px; height: 7px; background: var(--vert-profond); animation: pulse 2s ease-in-out infinite; }

/* Badge statut */
.badge-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--vert-profond); font-weight: 500;
  background: #EFF7F4; padding: 5px 12px; border-radius: 20px;
  letter-spacing: .01em;
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 900px; margin: 0 auto; padding: 0 24px; }
section { padding: 52px 0; }

/* --- Navigation --- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--blanc-neutre);
  border-bottom: var(--border);
  padding: 14px 0;
}
nav .container-wide {
  display: flex; align-items: center; justify-content: space-between;
}
nav .logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--encre);
}
nav .logo-img { height: 28px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 24px; }
nav ul li a { font-size: 13px; color: var(--gris-bleu); font-weight: 400; }
nav ul li a:hover { color: var(--encre); text-decoration: none; }
nav .nav-cta {
  font-size: 13px; font-weight: 600;
  color: var(--blanc-neutre); background: var(--vert-profond);
  padding: 7px 16px; border-radius: var(--radius);
}
nav .nav-cta:hover { opacity: 0.88; text-decoration: none; }

/* --- Boutons --- */
.btn {
  display: inline-block; font-family: var(--font-body);
  font-weight: 600; font-size: 13px;
  padding: 10px 22px; border-radius: var(--radius);
  cursor: pointer; transition: opacity 0.2s; text-decoration: none;
}
.btn-primary { background: var(--vert-profond); color: var(--blanc-neutre); }
.btn-secondary { background: transparent; color: var(--gris-bleu); border: 1px solid #e8e8e8; }
.btn:hover { opacity: 0.85; text-decoration: none; }

/* --- Hero --- */
.hero { padding: 72px 0 60px; text-align: center; }
.hero .status-row { display: flex; justify-content: center; margin-bottom: 28px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 72px);
  font-weight: 600; line-height: 1.02;
  letter-spacing: -0.03em; color: var(--encre);
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--vert-profond); }
.hero .lead {
  font-size: 15px; color: var(--gris-bleu);
  line-height: 1.65; margin: 22px auto 32px;
  max-width: 400px;
}
.hero .cta-group { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* --- Section label --- */
.sec-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: var(--vert-profond);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px;
}

/* --- Séparateurs --- */
.sep { height: 1px; background: #f0f0f0; }

/* --- Manifeste --- */
.manifeste h2 {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600;
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: 18px;
}
.manifeste p.body {
  font-size: 14px; color: #666; line-height: 1.75;
  margin-bottom: 14px; max-width: 100%;
}
.manifeste p.body strong { color: var(--encre); font-weight: 500; }

/* --- Piliers --- */
.piliers-list { display: flex; flex-direction: column; margin-top: 28px; }
.pilier-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-top: var(--border-soft);
}
.pilier-item .dot { margin-top: 5px; }
.pilier-item .p-label {
  font-size: 13px; font-weight: 600; color: var(--encre);
  letter-spacing: -.01em; margin-bottom: 4px;
}
.pilier-item p { font-size: 13px; color: var(--gris-bleu); line-height: 1.55; }

/* --- Services --- */
.section-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.section-header .sec-label { margin: 0; }
.section-header a { font-size: 13px; color: var(--vert-profond); font-weight: 500; }

.services-list { display: flex; flex-direction: column; }
.service-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 0; border-top: var(--border-soft);
}
.service-item:last-child { border-bottom: var(--border-soft); }
.service-item .dot { margin-top: 6px; }
.service-item h3 {
  font-size: 15px; font-weight: 500;
  letter-spacing: -.01em; margin-bottom: 5px;
}
.service-item p { font-size: 13px; color: var(--gris-bleu); line-height: 1.55; }

/* --- Encart ouverture --- */
.encart-ouverture {
  background: #EFF7F4; border: 1px solid var(--vert-pastel);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px; margin-top: 16px;
}
.encart-ouverture h3 {
  font-size: 14px; font-weight: 500;
  color: var(--vert-profond); margin-bottom: 5px;
}
.encart-ouverture p {
  font-size: 13px; color: #4A7A6A;
  line-height: 1.55; max-width: 100%;
}
.encart-ouverture a {
  font-size: 13px; font-weight: 600;
  color: var(--vert-profond); white-space: nowrap; flex-shrink: 0;
}

/* --- Réalisation card --- */
.real-card {
  border: var(--border); border-radius: 10px; overflow: hidden;
}
.real-img {
  height: 200px; background: #ede8e2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: #c0b0a0; font-size: 12px;
}
.real-img svg { opacity: 0.3; }
.real-body {
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.real-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--vert-profond);
  background: #EFF7F4; padding: 3px 9px; border-radius: 20px;
  margin-bottom: 10px;
}
.real-body h3 {
  font-size: 16px; font-weight: 600;
  letter-spacing: -.01em; margin-bottom: 5px;
}
.real-body p { font-size: 13px; color: var(--gris-bleu); line-height: 1.55; }
.real-body .real-link {
  font-size: 13px; font-weight: 500; color: var(--vert-profond);
  white-space: nowrap; margin-left: 16px; padding-top: 2px; flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section { text-align: center; padding: 64px 0; }
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 600;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.cta-section p {
  font-size: 14px; color: var(--gris-bleu);
  line-height: 1.65; margin-bottom: 28px; max-width: 100%;
}

/* --- Footer --- */
footer {
  border-top: var(--border); padding: 18px 0;
}
footer .container-wide {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
footer small { font-size: 11px; color: #ccc; }
footer a { font-size: 11px; color: var(--bleu-slate); }
footer a:hover { color: var(--vert-profond); text-decoration: none; }

/* --- Responsive --- */
@media (max-width: 680px) {
  nav ul { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 36px 0; }
  .encart-ouverture { flex-direction: column; align-items: flex-start; }
  footer .container-wide { flex-direction: column; align-items: flex-start; }
}
