/* ===========================================
   Vestes Gypaète Parapente — Style complet
   Version : 2025-10
   =========================================== */

/* ---------- Thème général ---------- */
:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1f2937;
  --primary: #22c55e;
  --danger: #ef4444;

  --preview-max-w: 800px;
  --preview-max-h-desktop: 520px;
  --preview-max-h-mobile: 400px;
}

/* ---------- Bases ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }

/* ---------- Layout ---------- */
.wrap {
  max-width: 1080px;
  margin: 32px auto;
  padding: 0 16px;
}
.site-head h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}
.site-head p {
  color: var(--muted);
  margin-bottom: 20px;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 820px) {
  .two-cols { grid-template-columns: 1fr; }
}

/* ---------- Cartes / formulaires ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
h2 { font-size: 1.2rem; margin-bottom: 12px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 4px; }
.field span { font-size: .9rem; color: var(--muted); }
.field input, .field select, .field textarea {
  background: #0b1220;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .7rem;
}
.field input:focus, .field select:focus {
  border-color: var(--primary);
  outline: none;
}

/* ---------- Boutons ---------- */
.actions { margin-top: 16px; }
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  padding: .8rem 1.2rem;
  border-radius: .7rem;
  font-weight: 600;
  transition: transform .1s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #062a10;
}
.btn-danger {
  background: var(--danger);
  color: white;
}

/* ---------- Galerie ---------- */
.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  height: var(--preview-max-h-desktop);
  max-width: var(--preview-max-w);
  margin: 0 auto;
}
.gallery .preview {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery .preview img {
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #0b1220;
}
@media (max-width: 820px) {
  .gallery { height: var(--preview-max-h-mobile); }
}

/* ---------- Alertes ---------- */
.alert {
  border-radius: 10px;
  padding: .8rem 1rem;
  background: #3b0a0a;
  color: #ffd1d1;
  border: 1px solid #7f1d1d;
  margin-bottom: 20px;
}

/* ---------- Tableau recap ---------- */
.recap {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recap li {
  margin-bottom: 4px;
}

/* ---------- Pied de page ---------- */
.site-foot {
  margin-top: 60px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
