/* img.zlef.fr — page styles layered on top of da.zlef.fr/tokens.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--zl-bg); color: var(--zl-text);
  font-family: var(--zl-font); font-size: var(--zl-text-base); line-height: var(--zl-leading);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--zl-accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Header */
header { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 13px; }
.mark { width: 44px; height: 44px; border-radius: var(--zl-radius-md); display: grid; place-items: center;
  background: var(--zl-accent); color: var(--zl-on-accent); font-weight: 800; font-size: 22px; }
.brand h1 { font-size: var(--zl-text-xl); font-weight: var(--zl-weight-bold); letter-spacing: .01em; }
.brand small { display: block; color: var(--zl-text-muted); font-size: var(--zl-text-xs); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--zl-text-soft); font-weight: var(--zl-weight-medium); font-size: var(--zl-text-sm); }
.nav a:hover { color: var(--zl-text); text-decoration: none; }

/* Hero */
.hero { padding: 28px 0 6px; text-align: center; }
.eyebrow { font-size: var(--zl-text-xs); font-weight: var(--zl-weight-bold); letter-spacing: var(--zl-tracking-wide);
  text-transform: uppercase; color: var(--zl-accent-soft); }
.hero h2 { font-size: var(--zl-text-4xl); line-height: var(--zl-leading-tight); letter-spacing: var(--zl-tracking-tight);
  font-weight: var(--zl-weight-bold); margin-top: 12px; }
.hero h2 .g { color: var(--zl-accent-soft); }
.hero p { color: var(--zl-text-soft); font-size: var(--zl-text-lg); margin: 16px auto 0; max-width: 580px; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin: 22px auto 0; max-width: 700px; }
.chip { background: var(--zl-surface-1); border: 1px solid var(--zl-line); border-radius: var(--zl-radius-sm);
  padding: 8px 15px; font-size: var(--zl-text-sm); font-weight: var(--zl-weight-medium); color: var(--zl-text);
  cursor: pointer; transition: border-color var(--zl-dur) var(--zl-ease), background var(--zl-dur) var(--zl-ease); }
.chip:hover { border-color: var(--zl-line-strong); background: var(--zl-surface-2); text-decoration: none; }
.chip .ar { color: var(--zl-accent-soft); margin: 0 5px; }

/* Tool card */
.card { background: var(--zl-surface-1); border: 1px solid var(--zl-line); border-radius: var(--zl-radius-lg);
  padding: 26px; margin: 22px 0; box-shadow: var(--zl-shadow-md); }
.drop { border: 2px dashed var(--zl-line-strong); border-radius: var(--zl-radius-md); padding: 44px; text-align: center;
  cursor: pointer; transition: border-color var(--zl-dur) var(--zl-ease), background var(--zl-dur) var(--zl-ease); }
.drop:hover, .drop.over { border-color: var(--zl-line-focus); background: var(--zl-accent-wash); }
.drop b { font-size: var(--zl-text-lg); }
.drop span { color: var(--zl-text-muted); display: block; margin-top: 6px; font-size: var(--zl-text-sm); }

/* Sections inside the tool: Conversion vs Modification */
.panel { border: 1px solid var(--zl-line); border-radius: var(--zl-radius-md); padding: 18px; margin-top: 18px; background: var(--zl-surface-2); }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.panel-head h3 { font-size: var(--zl-text-lg); font-weight: var(--zl-weight-bold); }
.panel-head .ic { font-size: 18px; }
.panel-sub { color: var(--zl-text-muted); font-size: var(--zl-text-xs); margin-bottom: 6px; }

label { display: block; font-size: var(--zl-text-sm); color: var(--zl-text-soft); margin: 12px 0 6px; font-weight: var(--zl-weight-medium); }
select, input[type=number], input[type=text] { background: var(--zl-surface-1); border: 1px solid var(--zl-line-strong);
  color: var(--zl-text); border-radius: var(--zl-radius-md); padding: 10px 12px; font-size: var(--zl-text-base); font-family: inherit; min-height: 44px; }
select { appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237d7e76' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
input[type=range] { accent-color: var(--zl-accent-soft); height: 6px; cursor: pointer; }
select:focus, input:focus { outline: none; border-color: var(--zl-line-focus); box-shadow: var(--zl-focus-ring); }

.row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.opts { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.opt { display: inline-flex; align-items: center; gap: 8px; background: var(--zl-surface-1); border: 1px solid var(--zl-line-strong);
  border-radius: var(--zl-radius-sm); padding: 9px 13px; font-size: var(--zl-text-sm); color: var(--zl-text-soft); cursor: pointer; user-select: none; }
.opt input { width: 18px; height: 18px; accent-color: var(--zl-accent-soft); }
.opt.on { border-color: var(--zl-line-focus); color: var(--zl-text); }

.btn { border: 1px solid var(--zl-accent-mid); cursor: pointer; font-weight: var(--zl-weight-bold); font-size: var(--zl-text-base);
  padding: 13px 24px; min-height: 48px; border-radius: var(--zl-radius-md); background: var(--zl-accent); color: var(--zl-on-accent);
  font-family: inherit; transition: background var(--zl-dur) var(--zl-ease), border-color var(--zl-dur) var(--zl-ease); }
.btn:hover { background: var(--zl-accent-mid); border-color: var(--zl-accent-soft); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.alt { background: transparent; border: 1px solid var(--zl-line-strong); color: var(--zl-text-soft); font-weight: var(--zl-weight-medium); }
.btn.alt:hover { background: rgba(255,255,255,.04); color: var(--zl-text); border-color: rgba(255,255,255,.2); }

.actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 20px; }

/* Result */
.res { margin-top: 20px; display: none; }
.res.show { display: block; }
.res img { max-width: 100%; border-radius: var(--zl-radius-md); border: 1px solid var(--zl-line); }
.stat { display: flex; gap: 18px; flex-wrap: wrap; color: var(--zl-text-muted); font-size: var(--zl-text-sm); margin: 12px 0; }
.stat b { color: var(--zl-text); }
.save { color: var(--zl-success); font-weight: var(--zl-weight-bold); }
.warn { color: var(--zl-warning); }
.err { color: var(--zl-danger); }
.hide { display: none; }

/* Feature grid */
h3.sec { font-size: var(--zl-text-2xl); font-weight: var(--zl-weight-bold); letter-spacing: var(--zl-tracking-tight); margin: 44px 0 4px; text-align: center; }
.sub { color: var(--zl-text-soft); text-align: center; margin: 0 auto 20px; max-width: 580px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feat { background: var(--zl-surface-1); border: 1px solid var(--zl-line); border-radius: var(--zl-radius-lg); padding: 20px; }
.feat h4 { font-size: var(--zl-text-base); margin-bottom: 6px; font-weight: var(--zl-weight-bold); }
.feat p { color: var(--zl-text-soft); font-size: var(--zl-text-sm); }
.feat .ic { font-size: 24px; }

/* FAQ */
details { background: var(--zl-surface-1); border: 1px solid var(--zl-line); border-radius: var(--zl-radius-lg); padding: 4px 20px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: var(--zl-weight-bold); padding: 15px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--zl-accent-soft); font-size: 22px; font-weight: 700; }
details[open] summary::after { content: '–'; }
details p { color: var(--zl-text-soft); padding: 0 0 16px; font-size: var(--zl-text-base); }

.seo { color: var(--zl-text-faint); font-size: var(--zl-text-sm); line-height: 1.7; margin: 32px 0; }
.seo b { color: var(--zl-text-muted); }
footer { padding: 44px 0; color: var(--zl-text-muted); font-size: var(--zl-text-sm); text-align: center; border-top: 1px solid var(--zl-line); margin-top: 40px; }
footer a { color: var(--zl-text-soft); }
