/* French Baguette Tool — feuille de style unique, sans dépendance */

/* Spectral, dessinée par Production Type (fonderie parisienne) pour Google
   Fonts. Licence SIL Open Font, fichiers vendus en local dans assets/fonts/
   (voir LICENSE-spectral.txt) : aucun appel à un serveur de polices externe. */

@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/spectral-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/spectral-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Palette bleu blanc rouge, déclinée en tons royaux.
   Bleu roi #1B3B7A, blanc quasi pur, rouge royal #B5142B.
   Les variantes sombres gardent le même accord de teintes, assombri pour le contraste. */

:root {
  --bleu-france: #1b3b7a;
  --rouge-marianne: #b5142b;

  --bg: #fdfcfa;
  --surface: #ffffff;
  --surface-2: #f6f3ec;
  --border: #ece7d9;
  --border-strong: #dcd3bd;
  --text: #181818;
  --muted: #6b6152;

  --accent: #1b3b7a;
  --accent-text: #ffffff;
  --accent-soft: #e3e8f4;

  --red: #b5142b;
  --red-text: #ffffff;
  --red-soft: #f8dfe1;

  --ok: #18753c;
  --ok-soft: #b8fec9;
  --danger: #ce0500;

  --shadow: 0 1px 2px rgba(40, 26, 0, 0.07), 0 8px 24px -12px rgba(40, 26, 0, 0.24);
  --shadow-sm: 0 1px 2px rgba(40, 26, 0, 0.06), 0 3px 10px -5px rgba(40, 26, 0, 0.16);
  --radius: 14px;
  --radius-sm: 9px;
  --serif: 'Spectral', ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1120px;
}

/* Le fond reste blanc et le texte noir en permanence, y compris pour les
   visiteurs dont le système est réglé en mode sombre : c'est un choix
   d'identité visuelle, pas une adaptation au thème de l'appareil. */

* { box-sizing: border-box; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -50px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 620;
  font-size: 0.9rem;
  transition: top 0.14s ease;
}

.skip-link:focus { top: 12px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- En-tête ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.09rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark { display: block; }

.flag-mark {
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--border-strong);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}

.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 12px; }
  .brand { font-size: 0.95rem; gap: 8px; }
  .site-nav { gap: 14px; font-size: 0.85rem; }
  /* Le lien secondaire reste accessible depuis le pied de page. */
  .site-nav a[href="/confidentialite.html"] { display: none; }
}

.lang-switch {
  font-weight: 620;
  color: var(--accent) !important;
}

/* ---------- Titres et texte ---------- */

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; }
h2 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 620; }

.lead { color: var(--muted); font-size: 1.09rem; max-width: 60ch; font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Accueil ---------- */

.hero { padding: 64px 0 48px; text-align: center; }
.hero h1 { max-width: 24ch; margin: 0 auto; }
.hero .lead { margin: 16px auto 0; }

.search-title {
  margin: 44px 0 14px;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--muted);
}

.badge-local {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-local svg { display: block; }

.search-big {
  position: relative;
  margin: 32px auto 0;
  max-width: 560px;
}

.search-big-ic {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-big input[type="text"] {
  width: 100%;
  padding: 17px 20px 17px 52px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font: inherit;
  font-size: 1.02rem;
  text-align: left;
}

.search-big input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cat { margin: 44px 0 0; }
.cat h2 { font-size: 1.15rem; font-family: var(--sans); font-weight: 640; letter-spacing: 0; }
.cat-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 12px;
}

.card {
  display: block;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.card .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.card h3 { margin-bottom: 3px; }
.card p { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

.empty-search { color: var(--muted); padding: 28px 0; }

/* ---------- Page outil ---------- */

.breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.tool-head { padding: 18px 0 26px; }
.tool-head h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); }
.tool-head .lead { margin-top: 12px; font-size: 1rem; }

.panel {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 316px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 860px) {
  .tool-layout { grid-template-columns: 1fr; }
}

/* Filtre de catégories, page d'accueil */

.outils-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.cat-filter {
  position: sticky;
  top: 79px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
}

.cat-filter-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 6px;
  font-family: inherit;
}

.cat-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.cat-filter-btn span {
  font-size: 0.78rem;
  color: var(--muted);
}

.cat-filter-btn:hover {
  background: var(--accent-soft);
}

.cat-filter-btn.active {
  background: var(--accent);
  color: #fff;
}

.cat-filter-btn.active span {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 860px) {
  .outils-layout { grid-template-columns: 1fr; }
  .cat-filter {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }
  .cat-filter-title { width: 100%; margin: 0 0 2px; }
  .cat-filter-btn {
    flex: 0 0 auto;
    gap: 6px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 7px 14px;
  }
  .cat-filter-btn:hover { border-color: var(--accent); }
  .cat-filter-btn.active { border-color: var(--accent); }
  .cat-filter-btn span { font-size: 0.72rem; }
}

@media (max-width: 420px) {
  .cat-filter-btn { padding: 7px 12px; font-size: 0.85rem; }
}

/* Zone de dépôt */

.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 46px 24px;
  text-align: center;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.dropzone:hover, .dropzone.over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone .dz-ic { color: var(--accent); margin-bottom: 10px; }
.dropzone strong { display: block; font-weight: 620; margin-bottom: 4px; }
.dropzone span { color: var(--muted); font-size: 0.88rem; }

/* Liste de fichiers */

.queue { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }

.item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.item .thumb {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  background: var(--surface-2);
  object-fit: cover;
  display: block;
}

.item .name {
  font-size: 0.9rem;
  font-weight: 560;
  word-break: break-all;
  line-height: 1.35;
}

.item .meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.item .meta .gain { color: var(--ok); font-weight: 620; }
.item .meta .fail { color: var(--danger); }
.item .actions { display: flex; gap: 8px; align-items: center; }

.bar {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 7px;
}

.bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

/* Formulaire */

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

label.lbl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
}

label.lbl .val { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 640; }

input[type="text"], input[type="number"], input[type="email"], textarea, select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, .dropzone:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input[type="range"] { width: 100%; accent-color: var(--accent); }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }

.seg button {
  flex: 1 1 0;
  min-width: 62px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 560;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.check { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 620;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.14s ease;
}

.btn:hover { filter: brightness(1.07); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn.block { width: 100%; }

.btn.ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn.ghost:hover { background: var(--surface-2); filter: none; }

.btn.sm { padding: 6px 11px; font-size: 0.83rem; }

/* Action secondaire de récupération : rouge Marianne */
.btn.red { background: var(--red); color: var(--red-text); }

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

/* Repère tricolore devant les titres de section */
.cat-head h2 { position: relative; padding-left: 14px; }

.cat-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 5px;
  height: 0.85em;
  border-radius: 1px;
  background: linear-gradient(var(--bleu-france) 33.33%, var(--border-strong) 33.33% 66.66%, var(--rouge-marianne) 66.66%);
}

.actions-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* Divers */

.note {
  display: flex;
  gap: 9px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 16px;
}

.note svg { flex: 0 0 auto; margin-top: 2px; }

.note.warn {
  background: var(--red-soft);
  color: var(--text);
}

.note.warn svg { color: var(--red); }

.todo {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 640;
  font-size: 0.85em;
}

.preview-wrap {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 12px;
  display: grid;
  place-items: center;
  min-height: 120px;
}

.preview-wrap canvas, .preview-wrap img {
  max-width: 100%;
  max-height: 420px;
  display: block;
  border-radius: 4px;
}

.hidden { display: none !important; }

/* Recadrage */

.cropper {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
  touch-action: none;
  user-select: none;
}

.cropper img { display: block; max-width: 100%; height: auto; border-radius: 6px; }

.crop-sel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 9999px rgba(15, 12, 9, 0.55);
  cursor: move;
}

.crop-sel::before,
.crop-sel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.35);
  border-style: solid;
}

.crop-sel::before { border-width: 0 1px; left: 33.33%; right: 33.33%; }
.crop-sel::after { border-width: 1px 0; top: 33.33%; bottom: 33.33%; }

.crop-h {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.crop-h[data-h="nw"] { top: -7px; left: -7px; cursor: nwse-resize; }
.crop-h[data-h="ne"] { top: -7px; right: -7px; cursor: nesw-resize; }
.crop-h[data-h="sw"] { bottom: -7px; left: -7px; cursor: nesw-resize; }
.crop-h[data-h="se"] { bottom: -7px; right: -7px; cursor: nwse-resize; }

.crop-stage {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.crop-info {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Galerie d'images extraites */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.shot {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.shot img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: var(--surface-2); }
.shot .shot-b { padding: 8px 9px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.shot .shot-t { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.player {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  display: block;
  max-height: 460px;
}

/* Contenu éditorial bas de page outil */

.article { padding: 56px 0 0; max-width: 68ch; }
.article h2 { margin-top: 34px; }
.article h3 { margin-top: 24px; font-size: 1rem; }
.article p { color: var(--muted); }
.article ul { color: var(--muted); padding-left: 20px; }
.article li { margin-bottom: 6px; }

/* Outils similaires, bas de page outil */

.similar-tools { padding: 40px 0 0; border-top: 1px solid var(--border); margin-top: 48px; }
.similar-tools h2 { font-size: 1.15rem; font-family: var(--sans); font-weight: 640; margin-bottom: 18px; }
.similar-tools .card p { display: none; }
.similar-tools .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* Appel aux dons */

.support-card {
  margin: 40px 0 0;
  padding: 32px 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 65%);
  box-shadow: var(--shadow-sm);
}

.support-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.support-text h2 { font-size: 1.3rem; }
.support-text p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.support-text a { color: var(--accent); font-weight: 600; }

.donate-btn { flex-shrink: 0; background: var(--red); }

.support-progress { margin-top: 24px; }

.support-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.support-progress-labels strong { color: var(--text); }

.progress-bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 9px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--rouge-marianne));
  animation: bar-glow 2.6s ease-in-out infinite;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: bar-shimmer 2.2s linear infinite;
}

@keyframes bar-glow {
  0%, 100% { box-shadow: 0 0 5px 1px color-mix(in srgb, var(--accent) 55%, transparent); }
  50% { box-shadow: 0 0 14px 3px color-mix(in srgb, var(--accent) 85%, transparent); }
}

@keyframes bar-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 720px) {
  .support-card { padding: 28px; }
  .support-top { flex-direction: column; align-items: stretch; text-align: center; }
  .support-text p { max-width: none; }
  .donate-btn { justify-content: center; }
}

/* Pied de page */

.site-footer {
  margin-top: 76px;
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer .sep { margin-left: auto; }

/* Notification */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 560;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Pastille et modale de contact */

.contact-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 95;
}

.contact-fab:hover { background: var(--accent-dark, var(--accent)); }

.contact-modal {
  position: fixed;
  left: 20px;
  bottom: 84px;
  width: min(340px, calc(100vw - 40px));
  max-height: min(560px, calc(100vh - 120px));
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  z-index: 96;
}

.contact-modal.hidden { display: none; }

.contact-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.contact-modal-head h2 { font-size: 1.05rem; font-family: inherit; }

.contact-modal-close {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: grid;
  place-items: center;
}

.contact-modal .field { margin-bottom: 12px; }
.contact-modal textarea { resize: vertical; min-height: 90px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-turnstile { margin-bottom: 12px; }

.contact-status { font-size: 0.85rem; min-height: 1.2em; margin-bottom: 10px; }
.contact-status.ok { color: #1a5c33; }
.contact-status.fail { color: #7a1620; }

@media (max-width: 480px) {
  .contact-modal { left: 12px; right: 12px; width: auto; bottom: 80px; }
}

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