@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* Mêmes valeurs que src/app/globals.css. */
:root {
  --bg: #05080a;
  --surface: #0c1012;
  --surface-hover: #13181a;
  --line: #22282b;
  --line-strong: #343b3e;
  --fg: #fafbfb;
  --fg-soft: #cfd2d3;
  --muted: #9a9ea0;
  --faint: #7d8183;
  --accent: #c7f36b;
  --accent-ink: #0b0b0a;
  --accent-fill: color-mix(in oklab, var(--accent) 84%, #0b0e10);
  --accent-fill-hover: color-mix(in oklab, var(--accent) 93%, #0b0e10);
  --success: #8fdc6a;
  --warning: #e8b04a;
  --danger: #f05d5e;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

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

.page {
  max-width: 768px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 88px) 20px calc(32px + env(safe-area-inset-bottom));
}

.brand {
  display: inline-block;
  color: var(--accent);
  border-radius: 4px;
}

.brand svg {
  width: auto;
  height: 26px;
}

h1 {
  margin: 56px 0 0;
  font-size: clamp(38px, 7vw, 52px);
  font-weight: 640;
  letter-spacing: -0.022em;
  line-height: 1.05;
  font-feature-settings: "ss01", "cv11", "kern";
}

.lead {
  max-width: 34rem;
  margin: 16px 0 0;
  color: var(--fg-soft);
  font-size: 16.5px;
  line-height: 1.65;
}

/* Adresses */

.sites {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .sites {
    grid-template-columns: 1fr 1fr;
  }
}

.site {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgb(34 40 43 / 0.7);
  border-radius: 16px;
  background: rgb(12 16 18 / 0.5);
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

/* Seule adresse qui répond : mise en avant comme la carte « ticket » de la page Contact. */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.kind {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}

[data-state="up"] .dot {
  background: var(--success);
}
[data-state="unreachable"] .dot {
  background: var(--warning);
}
[data-state="down"] .dot {
  background: var(--danger);
}
[data-state="checking"] .dot {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.domain {
  margin: 18px 0 0;
  font-size: 30px;
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site[data-state="unreachable"] .domain,
.site[data-state="down"] .domain {
  color: var(--muted);
}

.open {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  height: 40px;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.open svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.open:hover {
  border-color: rgb(250 251 251 / 0.25);
  background: rgb(255 255 255 / 0.04);
}

.site.is-primary .open {
  border-color: transparent;
  background: var(--accent-fill);
  color: var(--accent-ink);
}

.site.is-primary .open:hover {
  background: var(--accent-fill-hover);
}

.advice {
  margin: 14px 0 0;
  color: var(--warning);
  font-size: 14px;
}

.advice[hidden] {
  display: none;
}

/* Réseaux */

h2 {
  margin: 64px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.links {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgb(34 40 43 / 0.7);
  border-radius: 16px;
  background: rgb(12 16 18 / 0.4);
  overflow: hidden;
}

.links li + li {
  border-top: 1px solid rgb(34 40 43 / 0.6);
}

.links a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 16px;
  grid-template-areas:
    "icon name hint arrow"
    "icon handle hint arrow";
  align-items: center;
  column-gap: 14px;
  padding: 14px 20px;
  transition: background-color 0.15s;
}

.links a:hover {
  background: rgb(19 24 26 / 0.6);
}

.icon {
  grid-area: icon;
  width: 32px;
  height: 32px;
}

.name {
  grid-area: name;
  font-size: 14.5px;
  font-weight: 500;
}

.handle {
  grid-area: handle;
  color: var(--muted);
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hint {
  grid-area: hint;
  color: var(--fg-soft);
  font-size: 13.5px;
  text-align: right;
}

.arrow {
  grid-area: arrow;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s;
}

.links a:hover .arrow {
  stroke: var(--fg);
}

@media (max-width: 480px) {
  .links a {
    grid-template-areas:
      "icon name arrow"
      "icon handle arrow"
      "icon hint arrow";
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    padding: 14px 16px;
  }
  .hint {
    margin-top: 2px;
    color: var(--muted);
    text-align: left;
  }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgb(34 40 43 / 0.6);
  color: var(--faint);
  font-size: 12.5px;
}

/* Sans JavaScript, pas de mesure : seuls les liens restent. */
.no-js .status {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
