/* ============================================================
   Contact Nearby — Design System du site
   Fond #0B0B0B · cartes #191919 (relief #1F1F1F) · orange #FF6A2B
   Poppins 400 / 500 / 700 (auto-hébergée, aucun appel externe)
   Règles : aucune bordure, aucune ombre, aucun trait ;
   hiérarchie par la taille et la luminosité ; espacements ×8.
   ============================================================ */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #0b0b0b;
  --card: #191919;
  --card-raised: #1f1f1f;
  --card-raised-hover: #262626;
  --title: #ffffff;
  --body: #e8e8e8;
  --secondary: #9a9a9a;
  --mention: #6a6a6a;
  --accent: #ff6a2b;
  --accent-bright: #ff8a55;
  --on-accent: #221007;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--body);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  color: var(--accent-bright);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

p,
ul {
  margin: 0;
}

/* Listes : point orange 8px, aucun trait */
ul {
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 24px;
}

li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

li + li {
  margin-top: 8px;
}

/* Étapes numérotées : numéro orange, aucun trait */
ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
}

ol li {
  counter-increment: steps;
}

ol li::before {
  content: counter(steps) ".";
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
}

/* ── Header ────────────────────────────────────────────────── */

.site-header,
.site-footer {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--title);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--title);
}

.brand-logo {
  width: 56px;
  height: auto;
}

/* Ancien monogramme "CN" (plus utilisé dans le HTML) */
.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--card-raised);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: 100%;
  min-width: 0;
}

.site-nav a,
.site-footer nav a {
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer nav a:hover {
  color: var(--title);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* ── Hero (accueil) ────────────────────────────────────────── */

.hero,
.page-main,
.section {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-home {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 32px 0 24px;
  text-align: center;
}

.hero-logo {
  width: min(560px, 82vw);
  height: auto;
  margin-bottom: -8px;
}

.hero-content {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 760px;
}

/* Labels de section : petites capitales orange, letter-spacing */
.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--title);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 {
  margin-top: 16px;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

.hero-lead {
  max-width: 620px;
  margin-top: 16px;
  color: var(--secondary);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* ── Boutons (pilules pleines, jamais outline) ─────────────── */

.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background 0.15s ease, transform 0.1s ease;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-bright);
  color: var(--on-accent);
}

.button-secondary {
  background: var(--card-raised);
  color: var(--title);
}

.button-secondary:hover {
  background: var(--card-raised-hover);
  color: var(--title);
}

/* ── Sections & cartes (accueil) ───────────────────────────── */

.section {
  padding: 48px 0 0;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.split-section h2 {
  margin-top: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

/* Carte pleine : #191919, coins 20px, sans bordure ni ombre */
.feature-card {
  display: grid;
  align-content: start;
  gap: 16px;
  border-radius: var(--radius);
  padding: 32px;
  background: var(--card);
}

.feature-card:hover {
  background: var(--card-raised);
}

.feature-card p {
  color: var(--secondary);
}

/* Numéro orange dans une pastille #1F1F1F */
.feature-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--card-raised);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
}

.link-list {
  display: grid;
  gap: 8px;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  border-radius: var(--radius);
  padding: 16px 24px;
  background: var(--card);
  color: var(--title);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.link-list a::after {
  content: "→";
  color: var(--accent);
  font-weight: 700;
}

.link-list a:hover {
  background: var(--card-raised);
  color: var(--title);
}

.link-list.compact {
  max-width: 560px;
}

/* Dans une carte, les lignes de liens passent en #1F1F1F */
.content-section .link-list a {
  background: var(--card-raised);
}

.content-section .link-list a:hover {
  background: var(--card-raised-hover);
}

/* ── Pages internes (support, légal…) ──────────────────────── */

.page-main {
  padding: 24px 0 64px;
}

.page-hero {
  padding: 32px 0;
}

.page-hero h1 {
  max-width: none;
  margin-top: 16px;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 16px;
  color: var(--secondary);
  font-size: 1.05rem;
}

.page-hero .button {
  margin-top: 24px;
}

/* Chaque article dans sa carte pleine.
   Écran large : carte sur toute la largeur, titre à gauche (sticky)
   et corps à droite — la colonne de texte garde ~680px de largeur
   de lecture. Écran étroit : titre au-dessus du corps. */
.content-section {
  margin-top: 16px;
  border-radius: var(--radius);
  padding: 32px;
  background: var(--card);
}

.article-head {
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .content-section {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    column-gap: 48px;
    padding: 48px;
  }

  .article-head {
    grid-column: 1;
    align-self: start;
    position: sticky;
    top: 32px;
    margin-bottom: 0;
  }

  .article-head h2 {
    margin-bottom: 0;
  }

  .article-body {
    grid-column: 2;
    max-width: 70ch;
  }

  /* Carte d'intro sans titre (ex. préambule des CGU) */
  .article-body:only-child {
    grid-column: 1 / -1;
    max-width: 72ch;
  }
}

/* Numéro d'article orange (01, 02…) */
.article-num {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.article-num + h2 {
  margin-top: 8px;
}

.content-section h2 {
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
}

.content-section p + p,
.content-section p + ul,
.content-section ul + p,
.content-section p + ol,
.content-section ol + p {
  margin-top: 16px;
}

.content-section p,
.content-section li {
  color: var(--body);
}

/* ── Footer (carte, mentions) ──────────────────────────────── */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  padding: 32px;
  background: var(--card);
  color: var(--mention);
}

.site-footer strong {
  color: var(--title);
  font-weight: 700;
}

.site-footer p {
  margin-top: 8px;
  font-size: 0.92rem;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .split-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header,
  .site-footer {
    display: flex;
  }

  .site-nav,
  .site-footer nav {
    justify-content: flex-start;
  }

  .feature-grid,
  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .hero,
  .page-main,
  .section {
    width: calc(100% - 24px);
    max-width: 1120px;
  }

  .site-header {
    padding-top: 16px;
  }

  .site-nav {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 8px 16px;
  }

  .site-nav a,
  .site-footer nav a {
    font-size: 0.86rem;
  }

  .site-footer nav {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-home {
    padding: 24px 0 8px;
  }

  .hero-logo {
    width: min(360px, 88vw);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-lead {
    max-width: 100%;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding-top: 32px;
  }

  .content-section,
  .site-footer,
  .feature-card {
    padding: 24px;
  }

  .page-main {
    padding-top: 16px;
  }

  .page-hero {
    padding-top: 24px;
  }
}
