/* Cordée — le site. Valeurs reprises de design/cordee-prototype.html. */

@font-face { font-family: "Barlow"; font-weight: 400; src: url("/fonts/Barlow-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow"; font-weight: 500; src: url("/fonts/Barlow-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow"; font-weight: 600; src: url("/fonts/Barlow-SemiBold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; src: url("/fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url("/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; src: url("/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #0F171D; --ink: #16232C; --ink-2: #1F2E39; --line: #2B3B47;
  --stone: #E9EAE4; --stone-2: #DCDED6; --paper: #F7F7F3;
  --rope: #2FB3C4; --rope-deep: #1B8A98; --hivis: #F2C400; --chalk: #6B747A; --chalk-2: #8F979C;
  --text: #E9EAE4; --text-2: #AFC3CC;
  --sans: "Barlow", system-ui, -apple-system, sans-serif;
  --cond: "Barlow Condensed", "Barlow", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--night); color: var(--text); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--rope); }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--hivis); outline-offset: 2px; }

/* Une colonne de téléphone, centrée sur ordinateur. */
.column { width: 100%; max-width: 430px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .12; }

.h-alt { font-family: var(--cond); font-weight: 800; letter-spacing: -.03em; line-height: .82; }
.h1 { font-family: var(--cond); font-weight: 700; font-size: 40px; line-height: .95; letter-spacing: -.02em; }
.lead { font-size: 16px; line-height: 1.4; color: var(--text-2); }
.small { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.label { font: 700 15px var(--cond); color: var(--rope); letter-spacing: .06em; }

/* Le panneau corde : fond encre, coins bas arrondis, lignes de niveau. */
.panel { position: relative; background: var(--ink); border-radius: 0 0 28px 28px; padding: 22px 22px 18px; overflow: hidden; }
.panel > :not(.contours) { position: relative; }
.panel .name { font-family: var(--cond); font-weight: 800; font-size: 64px; line-height: .8; margin-top: 6px; }
.panel .engagement { font: 500 14px/1.3 var(--sans); color: var(--text-2); margin-top: 12px; }
.panel .rope { display: block; width: 100%; height: auto; margin-top: 6px; }

.body { padding: 26px 24px 0; }
.body .h1 { margin-bottom: 10px; }

.footer { margin-top: auto; padding: 26px 24px 28px; }

/* Le bouton principal : turquoise, coin bas-droit coupé sur 14 px. */
.cta {
  height: 58px; width: 100%; background: var(--rope); color: var(--ink);
  font: 700 19px var(--cond); letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.copy { margin-top: 18px; }
.copy .small { margin-bottom: 8px; }
.copy-row { display: flex; align-items: center; gap: 10px; background: var(--ink); border: 1.5px solid var(--line); border-radius: 6px 16px 6px 16px; padding: 10px 10px 10px 14px; }
.copy-row code { flex: 1; min-width: 0; font: 500 13px var(--sans); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-row button { font: 700 15px var(--cond); letter-spacing: .06em; color: var(--rope); padding: 6px 4px; }

.notice { font: 600 15px var(--sans); color: var(--text); text-align: center; margin-top: 14px; min-height: 20px; }

/* Les pages d'erreur : l'habillage de la page d'invitation. */
.message { padding: 26px 24px 0; }
.message .lead { margin-top: 12px; }

/* Le bouton secondaire de l'app (`.cta.ghost`) : fond encre, coins arrondis. */
.ghost {
  height: 52px; width: 100%; background: var(--ink); color: var(--text);
  border-radius: 12px; font: 600 15px var(--sans);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}

.legal-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; padding: 18px 24px 28px; font-size: 13px; }
.legal-links a { color: var(--chalk-2); text-decoration: none; }

/* Les textes légaux. */
.legal { padding: 28px 24px 48px; }
.legal h1 { font-family: var(--cond); font-weight: 700; font-size: 40px; line-height: .95; letter-spacing: -.02em; margin-bottom: 14px; }
.legal h2 { font-family: var(--cond); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -.01em; margin: 26px 0 6px; }
.legal h3 { font: 600 16px/1.4 var(--sans); margin: 14px 0 4px; }
.legal p, .legal li { font-size: 16px; line-height: 1.4; color: var(--text-2); margin-bottom: 10px; }
.legal ul { list-style: none; }
.legal li::before { content: "– "; color: var(--rope); }
.legal .row { border-bottom: 1.5px solid var(--line); padding: 10px 0; }
.legal .row strong { display: block; color: var(--text); font-weight: 600; }
.legal .back { display: inline-block; margin-bottom: 18px; font: 700 15px var(--cond); letter-spacing: .06em; text-decoration: none; }
