/* ============================================================
   Formation Excel Formule Or CPF — Page publique programme
   Indicateur 1 Qualiopi
   Design sobre, institutionnel. Accent vert #1F6B3A.
   ============================================================ */

:root {
  --accent: #1F6B3A;
  --accent-dark: #164d2a;
  --text: #1a1a1a;
  --text-soft: #444;
  --border: #d9d9d9;
  --bg: #ffffff;
  --bg-soft: #f6f7f6;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------- En-tête ----------------------- */
.site-header {
  background: var(--bg-soft);
  border-bottom: 3px solid var(--accent);
  padding: 40px 0 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
}

.site-header h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--text);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin: 0 0 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.summary-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
}

.summary-item dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin: 0 0 4px;
}

.summary-item dd {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.last-update {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ----------------------- Sections ----------------------- */
main {
  padding: 8px 0 24px;
}

section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 1.4rem;
  color: var(--accent-dark);
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

p {
  margin: 0 0 12px;
  color: var(--text-soft);
}

ul, ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
  color: var(--text-soft);
}

li {
  margin-bottom: 6px;
}

.note {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 16px;
}

.modules-list li {
  margin-bottom: 8px;
}

/* ----------------------- Cartes infos certification ----------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.info-value {
  font-weight: 600;
  color: var(--text);
}

/* ----------------------- Tableau de correspondance ----------------------- */
.table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: var(--bg-soft);
}

td {
  color: var(--text-soft);
}

/* ----------------------- Boutons ----------------------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ----------------------- Checklist indicateur 1 ----------------------- */
.checklist {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px 20px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ----------------------- Liens ----------------------- */
a {
  color: var(--accent-dark);
}

/* ----------------------- Pied de page ----------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 8px;
}

.site-footer p {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ----------------------- Responsive ----------------------- */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .site-header h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .site-header {
    padding: 28px 0 24px;
  }
}

/* ----------------------- Impression PDF ----------------------- */
@media print {
  :root {
    --bg-soft: #fff;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  .site-header {
    border-bottom: 2px solid #000;
    padding: 0 0 12px;
  }
  section {
    padding: 14px 0;
    page-break-inside: avoid;
    border-bottom: 1px solid #999;
  }
  h2 {
    color: #000;
    border-bottom: 1px solid #000;
  }
  .note, .info-card, .summary-item {
    border-color: #999;
  }
  thead th {
    background: #eee !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .btn {
    border: 1px solid #000;
    background: #fff !important;
    color: #000 !important;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .table-wrapper {
    overflow: visible;
  }
}
