/* Les outils gratuits de pirastack.fr : la direction artistique de la page des réseaux (espace, verre liquide, dégradé du logo, Saira italique). */
:root {
  --night: #14062e;
  --ink: #ffffff;
  --muted: #cfc6ee;
  --cyan: #00e5f0;
  --violet: #6a00ff;
  --magenta: #ff0a8a;
  --brand: linear-gradient(120deg, var(--cyan), var(--violet) 50%, var(--magenta));
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { background: var(--night); }
body { color: var(--ink); font: 400 17px/1.5 "Saira", system-ui, sans-serif; min-height: 100svh; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, label.drop:focus-within { outline: 3px solid var(--cyan); outline-offset: 3px; }

.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,6,46,.55), rgba(20,6,46,.88)); }

.glass {
  position: relative;
  background: linear-gradient(140deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 60%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.08), 0 24px 60px rgba(0,0,0,.45);
  isolation: isolate;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gutter) 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 4vw, 44px); }
.top img { display: block; width: clamp(140px, 22vw, 220px); height: auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }
.top a { color: var(--muted); font-size: 15px; text-underline-offset: 3px; }
.top a:hover { color: var(--cyan); }
h1 { font-style: italic; font-weight: 900; font-size: clamp(34px, 6vw, 60px); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
h2 { font-style: italic; font-weight: 900; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.1; text-transform: uppercase; margin-bottom: 12px; }
.lede { margin-top: 12px; color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); max-width: 58ch; }
.lede strong { color: var(--ink); font-weight: 600; }

.tool { display: grid; gap: 16px; margin-top: clamp(24px, 4vw, 40px); align-items: start; }
@media (min-width: 860px) { .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.panel { padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.panel label { display: grid; gap: 6px; font-weight: 600; }
.field {
  width: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(10,4,30,.55); color: var(--ink);
  font: inherit; font-weight: 400;
}
textarea.field { resize: vertical; min-height: 96px; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.row > label { flex: 1 1 180px; }
input[type="color"] { width: 56px; height: 48px; padding: 4px; border-radius: 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(10,4,30,.55); cursor: pointer; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  flex: 1 1 auto; padding: 12px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); background: rgba(10,4,30,.45); color: var(--ink); font: inherit; font-weight: 600;
}
.seg button[aria-pressed="true"] { background: var(--brand); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand); background-size: 160% 100%;
  color: #fff; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 24px rgba(0,0,0,.35);
  transition: background-position .4s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible { background-position: 100% 0; transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.note { color: var(--muted); font-size: 14px; }
.note a { color: var(--ink); }
.check { display: flex !important; grid-auto-flow: column; align-items: center; gap: 10px; font-weight: 400 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--magenta); }

footer { margin-top: clamp(40px, 7vw, 88px); padding: 24px 0 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 15px; }
footer .sign { display: flex; align-items: center; gap: 12px; }
footer img { width: 44px; height: auto; }
footer a { color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.tool > *, .cards > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.tool > :nth-child(2), .cards > :nth-child(2) { animation-delay: .1s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
