/* Base volontairement minimale — la direction artistique sera travaillée
   avec Claude Code (voir skill frontend si ajoutée). */
:root {
  --encre: #1c2431;
  --papier: #fbfaf7;
  --accent: #0f6b4f;
  --alerte: #b3261e;
  --muted: #666;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--encre);
  background: var(--papier);
  line-height: 1.6;
}
main { max-width: 46rem; margin: 0 auto; padding: 2rem 1rem; }

a { color: var(--accent); }
a:visited { color: var(--accent); }
a:hover { text-decoration: none; }

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1rem;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}
.site-header .logo { color: var(--encre); text-decoration: none; font-weight: 600; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.site-header nav a { margin-left: 0; }
.site-footer { font-size: .8rem; color: var(--muted); padding: 2rem 1rem; border-top: 1px solid #ddd; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
.cta:visited { color: #fff; }
.cta:hover { background: #0c5a41; }

.err li { color: var(--alerte); }
.affiliate-box { border: 1px solid #ddd; border-radius: 8px; padding: 1rem; margin-top: 2rem; }
.disclosure { font-size: .8rem; color: var(--muted); }
.article-maj { font-size: .85rem; color: var(--muted); margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #ddd; }

table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
table th, table td {
  border: 1px solid #ddd;
  padding: .5rem .75rem;
  text-align: left;
  vertical-align: top;
}
table th { background: #f1efe9; }

@media (max-width: 480px) {
  table { font-size: .9rem; }
  table th, table td { padding: .4rem .5rem; }
}

.countdown-deadlines {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}
.countdown-item {
  flex: 1 1 14rem;
  border: 1px solid #ddd;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}
.countdown-item.passed { border-left-color: #2f9e63; background: #f3faf6; }
.countdown-label { margin: 0 0 .25rem; font-size: .85rem; color: var(--muted); }
.countdown-icon { margin-right: .35rem; }
.countdown-date { margin: 0 0 .6rem; font-weight: 600; }
.countdown-timer { display: flex; gap: .9rem; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; min-width: 2.6rem; }
.countdown-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown-unit-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.countdown-done { margin: 0; font-weight: 600; color: #1c7a4d; }

.faq details {
  border-bottom: 1px solid #ddd;
  padding: .75rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq summary::marker { color: var(--accent); }
.faq p { margin: .5rem 0 0; }

.diagnostic-progress {
  display: flex;
  list-style: none;
  padding: 0;
  gap: .5rem;
  margin: 1.5rem 0;
  font-size: .85rem;
  color: var(--muted);
}
.diagnostic-progress li { flex: 1; text-align: center; padding-bottom: .5rem; border-bottom: 3px solid #ddd; }
.diagnostic-progress li.active { color: var(--encre); font-weight: 600; border-bottom-color: var(--accent); }

.choice-group { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1.5rem; }
.choice-group button {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  padding: .6rem 1rem;
  cursor: pointer;
  font: inherit;
}
.choice-group button:hover { border-color: var(--accent); }
.choice-group button.selected { border-color: var(--accent); background: var(--accent); color: #fff; }

#to-step-2, #to-step-3, #restart { margin-top: .5rem; }
button:disabled { opacity: .5; cursor: not-allowed; }

.diagnostic-actions li, .diagnostic-timeline li { margin-bottom: .5rem; }

.siret-lookup { margin-bottom: 1rem; }
.siret-lookup label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.siret-lookup-row { display: flex; gap: .5rem; max-width: 24rem; }
.siret-lookup-row input {
  flex: 1;
  padding: .6rem .75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}
.siret-lookup-row button {
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  border-radius: 6px;
  padding: .6rem 1rem;
  cursor: pointer;
  font: inherit;
}
.siret-feedback { font-size: .85rem; margin-top: .5rem; }

.dropzone {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  margin: 1rem 0;
  transition: border-color .15s, background-color .15s;
}
.dropzone.dragover { border-color: var(--accent); background: #f1f8f5; }
.dropzone.has-file { border-style: solid; border-color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dropzone-label { display: block; cursor: pointer; }
.dropzone-icon { display: block; font-size: 2rem; margin-bottom: .5rem; }
.dropzone-text { color: var(--muted); }
.dropzone-hint { display: block; font-size: .8rem; color: var(--muted); margin-top: .35rem; }

.guides-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.guides-list li { padding: 1rem 0; border-bottom: 1px solid #ddd; }
.guides-list li:first-child { padding-top: 0; }
.guides-list .guide-date { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.guides-list .guide-title { font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.guides-list .guide-title:hover { text-decoration: underline; }
.guides-list p { margin: .35rem 0 0; color: var(--muted); }
