:root {
  --bg: #0b0c0e;
  --s1: #111215;
  --s2: #15161a;
  --line: #1e2024;
  --line-2: #2a2c31;
  --line-3: #3a3d43;
  --tx: #e6e7e9;
  --tx-2: #a3a8ae;
  --tx-3: #7c8188;
  --tx-4: #565b62;
  --bleu: #5b9bd5;
  --bleu-c: #8fb8e3;
  --vert: #3fb984;
  --vert-c: #57c393;
  --violet: #9a85d6;
  --violet-c: #b3a5e3;
  --rouge: #e5585f;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --serif: "IBM Plex Serif", Charter, Georgia, serif;
  --gut: 16px;
  --pad: 28px;
}

@media (min-width: 900px) { :root { --gut: 32px; --pad: 52px; } }

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: #2b2d33; color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; position: relative; }

@media (min-width: 900px) {
  .wrap { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

main.wrap { flex: 1 0 auto; }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }

header.barre {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.barre-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px var(--gut);
}

.marque { display: flex; align-items: center; gap: 11px; }
.marque img { width: 28px; height: 28px; object-fit: contain; mix-blend-mode: screen; }
.marque span { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }

nav.liens { display: flex; align-items: center; gap: 4px; }

.lien-nav {
  display: none;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--tx-2);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.lien-nav:hover { color: var(--tx); }
.lien-nav .dot { margin-right: 8px; opacity: 0.85; }
@media (min-width: 900px) { .lien-nav { display: inline-flex; align-items: center; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-plein {
  color: #0b0c0e;
  background: linear-gradient(180deg, #f0f1f2 0%, #d5d8dc 100%);
  border: 1px solid #f4f5f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 0 rgba(0, 0, 0, 0.6), 0 6px 18px -8px rgba(0, 0, 0, 0.8);
}

.btn-plein:hover { background: linear-gradient(180deg, #ffffff 0%, #e3e5e8 100%); }

.btn-trait {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.btn-trait:hover { background: var(--s2); border-color: var(--line-3); }
.btn-petit { padding: 8px 13px; font-size: 12.5px; }
.btn-large { width: 100%; }
.btn .fl { display: inline-block; font-family: var(--mono); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.btn:hover .fl { transform: translateX(3px); }
.btn:hover .fl.g { transform: translateX(-3px); }

.sec { position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }

.sec-tete {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--tx-3);
}

.sec-tete > * { padding: 12px var(--gut); display: flex; align-items: center; gap: 9px; min-width: 0; }
.sec-tete .n { border-right: 1px solid var(--line); color: var(--tx-2); padding-right: 0; }
.sec-tete .m { display: none; border-left: 1px solid var(--line); }

@media (min-width: 600px) {
  .sec-tete { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .sec-tete .m { display: flex; }
}

@media (min-width: 900px) {
  .sec-tete { grid-template-columns: 100px minmax(0, 1fr) calc(340px + var(--gut)); }
}

.sec-corps { padding: calc(var(--pad) + 4px) var(--gut) var(--pad); }

.sur-titre { font-family: var(--mono); font-size: 11.5px; color: var(--tx-3); display: flex; align-items: center; gap: 10px; }
.sur-titre::before { content: ""; width: 18px; height: 1px; background: var(--line-3); }

h1.titre {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin-top: 16px;
}

.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1.titre .it { color: var(--tx-2); }

.chapeau { font-size: 15.5px; color: var(--tx-2); line-height: 1.65; margin-top: 16px; max-width: 620px; }

.panneau {
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: linear-gradient(180deg, #121316 0%, #0f1013 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}

.panneau .tete { padding: 12px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--tx-3); display: flex; justify-content: space-between; gap: 12px; }
.panneau .corps { padding: 22px 20px 22px; }
@media (min-width: 600px) { .panneau .corps { padding: 28px 28px 28px; } }

.champs2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .champs2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

form.demande { display: flex; flex-direction: column; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.champ label { font-family: var(--mono); font-size: 11.5px; color: var(--tx-3); }

.saisie {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--tx);
  background: #0e0f11;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.saisie::placeholder { color: var(--tx-4); }
.saisie:focus { outline: none; border-color: var(--line-3); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(154, 133, 214, 0.12); }
textarea.saisie { resize: vertical; min-height: 150px; line-height: 1.6; }
select.saisie { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx-3) 50%), linear-gradient(135deg, var(--tx-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

.aide { font-size: 12px; color: var(--tx-3); line-height: 1.6; }
.aide a, .lien { color: var(--tx-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.aide a:hover, .lien:hover { color: var(--tx); text-decoration-color: var(--tx-3); }

.legal-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1000px) { .legal-grille { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }

.sommaire { display: none; }
@media (min-width: 1000px) {
  .sommaire { display: block; position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
}
.sommaire .t { font-family: var(--mono); font-size: 11px; color: var(--tx-3); padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.sommaire ol { list-style: none; margin: 0; padding: 0; }
.sommaire li a { display: block; padding: 7px 0; font-size: 12.5px; color: var(--tx-3); border-bottom: 1px solid var(--line); line-height: 1.4; transition: color 0.2s ease; }
.sommaire li a:hover { color: var(--tx); }

.legal { max-width: 760px; }
.legal h2 { scroll-margin-top: 80px; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; color: #fff; margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 14px; font-weight: 500; color: #d3d5d8; margin: 24px 0 6px; }
.legal p, .legal li { font-size: 14px; line-height: 1.75; color: var(--tx-2); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 18px; }
.legal li { margin-bottom: 4px; }
.legal li::marker { color: var(--tx-4); }
.legal strong { color: var(--tx); font-weight: 500; }
.legal em { font-family: var(--serif); }
.legal code { font-family: var(--mono); font-size: 12.5px; background: var(--s2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--tx); }
.legal a { color: var(--tx); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--tx-3); }
.legal .callout { border-left: 2px solid var(--bleu); background: rgba(91, 155, 213, 0.05); padding: 12px 16px; margin: 18px 0; border-radius: 0 3px 3px 0; }
.legal .callout p { color: var(--tx); margin: 0; }

footer.pied { border-top: 1px solid var(--line); }
.pied-in { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 26px var(--gut) 30px; font-size: 12px; color: var(--tx-3); }
@media (min-width: 800px) { .pied-in { flex-direction: row; justify-content: space-between; align-items: center; } }
.pied-in .g { display: flex; align-items: center; gap: 10px; }
.pied-in .g img { width: 18px; height: 18px; object-fit: contain; opacity: 0.7; }
.pied-in nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 11.5px; color: var(--tx-4); }
.pied-in nav a:hover { color: var(--tx-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

.deux-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 1000px) { .deux-col { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; } }
.deux-col .apres { margin-top: 26px; border-left: 2px solid var(--line-2); padding: 4px 0 4px 16px; }

.pile { display: flex; flex-direction: column; gap: 32px; }
.pile > :first-child { max-width: 680px; }
.pile .apres { margin-top: 18px; border-left: 2px solid var(--line-2); padding: 4px 0 4px 16px; }
