/* =========================================================================
   RocketStart — EasyPrepare · Refonte UI
   Thème technique sombre, responsive mobile-first — cohérent KMTECH/RocketDump
   ========================================================================= */
:root {
  --bg:          #0a0e14;
  --bg-2:        #0e141d;
  --surface:     #131b26;
  --surface-2:   #18222f;
  --border:      #25303f;
  --border-soft: #1c2530;

  --text:        #e7eef6;
  --text-dim:    #93a4b8;
  --text-faint:  #5e7088;

  --accent:      #8bd400;
  --accent-2:    #6fb000;
  --accent-glow: rgba(139, 212, 0, 0.35);
  --accent-soft: rgba(139, 212, 0, 0.12);

  --green:       #2ec26a;
  --green-soft:  rgba(46, 194, 106, 0.12);
  --danger:      #ff5d6c;
  --danger-soft: rgba(255, 93, 108, 0.10);
  --warn:        #ffb454;
  --warn-soft:   rgba(255, 180, 84, 0.10);

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 18px 50px -12px rgba(0,0,0,0.6);

  --font-display:"Chakra Petch", system-ui, sans-serif;
  --font-body:   "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:   "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 80% -10%, rgba(139,212,0,0.09), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(111,176,0,0.07), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 75%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
::selection { background: var(--accent); color: #14260a; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10,14,20,0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand img { height: 40px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--text-dim); padding: 8px 14px; border-radius: 999px;
  transition: all 0.18s ease;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a.active { color: #14260a; background: var(--accent); }

.lang-switch {
  display: flex; align-items: center; gap: 3px;
  padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.lang-switch a {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  color: var(--text-dim); padding: 5px 11px; border-radius: 999px; transition: all 0.18s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: var(--accent); color: #14260a; box-shadow: 0 0 16px -4px var(--accent-glow); }

/* ---------- Main ---------- */
.site-main {
  position: relative; z-index: 1; flex: 1 0 auto;
  width: 100%; max-width: 960px; margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) 22px 56px;
}
.hero { margin-bottom: 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  padding: 5px 12px; border: 1px solid var(--accent-soft);
  border-radius: 999px; background: var(--accent-soft); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px 1px var(--accent);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; }
.hero h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 6vw, 2.9rem); letter-spacing: -0.01em; }
.hero h1 .hl { color: var(--accent); }
.hero p { margin: 0; max-width: 60ch; color: var(--text-dim); font-size: clamp(0.95rem, 2.4vw, 1.06rem); }

/* ---------- Alerte rappel ---------- */
.recall {
  margin: 22px 0; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--warn-soft); border: 1px solid rgba(255,180,84,0.35);
  color: #ffd79a; font-size: 0.9rem;
}
.recall strong { color: var(--warn); }
.recall + .recall { margin-top: -10px; }

/* ---------- Sélecteurs ---------- */
.selectors {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 620px) { .selectors { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 9px;
}
.field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 42px 14px 16px;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393a4b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field select:disabled { opacity: 0.5; cursor: not-allowed; }
.field select option { background: var(--surface); color: var(--text); }

/* ---------- Etapes ---------- */
.step { margin-top: 18px; opacity: 0; animation: rise 0.4s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.step-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--border);
}
.step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  color: #14260a; background: var(--accent);
}
.step-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.step-body { padding: 20px; }

/* ---------- Galerie branchement ---------- */
.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-stage {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); aspect-ratio: 3 / 2; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.gallery-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  cursor: zoom-in;
}
.gallery-zoom-hint {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
  background: rgba(10,14,20,0.7); color: var(--text);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  backdrop-filter: blur(6px); border: 1px solid var(--border);
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(10,14,20,0.7); color: var(--text);
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background 0.15s;
}
.gallery-nav:hover { background: var(--accent); color: #14260a; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 64px; height: 48px; padding: 0; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); overflow: hidden;
  opacity: 0.55; transition: opacity 0.15s, border-color 0.15s;
}
.gallery-thumbs button.active { opacity: 1; border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Upload dump ---------- */
.chip-hint {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid var(--accent-soft);
  color: var(--text); font-size: 0.95rem;
}
.chip-hint .ico { color: var(--accent); font-style: normal; font-weight: 700; }
.chip-hint code {
  font-family: var(--font-mono); color: var(--accent);
  background: var(--bg); padding: 2px 8px; border-radius: 5px;
}
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%;
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  padding: 30px 20px; text-align: center; cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  background: var(--bg);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-icon { font-size: 30px; color: var(--text-faint); }
.dropzone .dz-main { font-weight: 500; margin: 8px 0 2px; }
.dropzone .dz-sub { font-size: 0.85rem; color: var(--text-faint); }
.dropzone .dz-file {
  font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem;
  margin-top: 8px; word-break: break-all;
}
.upload-actions { margin-top: 16px; }
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.04em; color: #14260a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; border-radius: var(--radius-sm); padding: 14px 28px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.14s, filter 0.2s; box-shadow: 0 10px 30px -8px var(--accent-glow);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 520px) { .btn { width: 100%; justify-content: center; } }

.progress {
  margin-top: 16px; height: 8px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px; overflow: hidden; display: none;
}
.progress.show { display: block; }
.progress-bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.2s ease;
}

/* ---------- Messages résultat ---------- */
.result-msg {
  margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 6px; animation: rise 0.35s ease both;
}
.result-line { display: flex; align-items: center; gap: 10px; }
.result-msg .ico {
  flex-shrink: 0; font-style: normal; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.result-msg.success { background: var(--green-soft); border: 1px solid rgba(46,194,106,0.4); color: #a8e9c4; }
.result-msg.success .ico { background: var(--green); color: #04221a; }
.result-msg.error   { background: var(--danger-soft); border: 1px solid rgba(255,93,108,0.4); color: #ffb9c0; }
.result-msg.error .ico { background: var(--danger); color: #3a0a0e; }
.result-msg.success .result-line span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #c8f5a8; }
.result-msg .dl-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em;
  color: #14260a; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-sm); padding: 14px 28px;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
  transition: transform 0.14s, filter 0.2s;
}
.result-msg .dl-btn:hover { transform: translateY(-2px); filter: brightness(1.06); color: #14260a; }
.result-msg .dl-btn svg { width: 19px; height: 19px; }
@media (max-width: 520px) { .result-msg .dl-btn { width: 100%; justify-content: center; } }
.result-msg .dl-link {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--green);
}
.result-msg .result-note {
  display: flex; align-items: center; gap: 11px;
  margin-top: 14px; padding: 13px 16px;
  background: var(--warn-soft); border: 1px solid rgba(255,180,84,0.5);
  border-radius: var(--radius-sm);
  color: #ffd79a; font-size: 1rem; font-weight: 600; line-height: 1.4;
}
.result-msg .result-note .rn-ico {
  flex-shrink: 0; font-style: normal; font-size: 1.25rem; color: var(--warn); line-height: 1;
}

/* ---------- Lightbox (zoom plein écran) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(6,9,14,0.92); backdrop-filter: blur(4px);
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-stage {
  width: 94vw; height: 88vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
}
.lightbox img {
  max-width: 94vw; max-height: 88vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  transform-origin: 0 0; cursor: zoom-in; user-select: none; -webkit-user-drag: none;
}
.lightbox img.zoomed { cursor: grab; }
.lightbox img.zoomed:active { cursor: grabbing; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.lightbox-close:hover { background: var(--danger); color: #fff; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 26px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.lightbox-nav:hover { background: var(--accent); color: #14260a; }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.lightbox-zoom {
  position: absolute; bottom: 18px; right: 18px; z-index: 2;
  display: flex; gap: 6px; padding: 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.lz-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--text); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s;
}
.lz-btn:hover { background: var(--accent); color: #14260a; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim);
  background: var(--surface); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
}
@media (max-width: 560px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 22px; }
  .lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }
  .lightbox-zoom { bottom: 12px; right: 12px; }
  .lightbox-counter { bottom: 64px; }
}

/* ---------- Placeholder vide ---------- */
.empty-hint {
  margin-top: 18px; padding: 40px 20px; text-align: center;
  color: var(--text-faint); font-size: 0.95rem;
  border: 1px dashed var(--border); border-radius: var(--radius);
}

/* ---------- Formulaire contact ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(22px,4vw,32px); max-width: 620px;
}
.form-row { margin-bottom: 16px; }
.form-row input, .form-row textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 16px; transition: border-color 0.18s, box-shadow 0.18s;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-msg { margin-bottom: 14px; }
.error_message { color: var(--danger); font-size: 0.92rem; }
#success_page h4 { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0; position: relative; z-index: 1;
  border-top: 1px solid var(--border); background: rgba(10,14,20,0.6);
}
.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 20px 22px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint);
}
.footer-inner a { color: var(--text-dim); }
.footer-inner a:hover { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
