/* Charte Oliv-IT 2026 : marine (tronc, « -IT »), olive (feuillage, « Oliv »), or en accent rare.
   Memes jetons que oliv-it.fr. Polices de la charte hebergees par le site (aucun tiers). */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/roboto-condensed-500.woff2") format("woff2"); }
:root {
  --olive: #5c6446;
  --olive-strong: #13243c;
  --olive-soft: #eef0e8;
  --blue: #13243c;
  --blue-strong: #0a1526;
  --blue-soft: #e9edf2;
  --gold: #c59842;
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #13243c;
  --muted: #4a5452;
  --border: #e3e4e0;
  --success: #2a7030;
  --success-soft: #e8f3e8;
  --danger: #b3261e;
  --danger-soft: #fbeae9;
  --warning-soft: #fbf3df;
  --shadow: 0 1px 2px rgba(19, 36, 60, 0.06), 0 4px 16px rgba(19, 36, 60, 0.06);
  --radius: 12px;
  --serif: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --condensed: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --on-primary: #fff;
  color-scheme: light;
}

/* Theme : celui du systeme, sauf choix explicite (data-theme sur <html>,
   pose par /assets/site.js). Les jetons sombres (version « fond nuit » du logo) sont donc declares deux fois. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --olive: #aab48b;
    --olive-strong: #f1f2ee;
    --olive-soft: #1d3150;
    --blue: #c3cca4;
    --blue-strong: #dfe5c9;
    --blue-soft: #1a2f4d;
    --gold: #c1a158;
    --bg: #0f223b;
    --surface: #17304f;
    --text: #e8ebef;
    --muted: #b9c0c9;
    --border: #2a3d59;
    --success: #7cc47f;
    --success-soft: #17382f;
    --danger: #f39a92;
    --danger-soft: #3b2236;
    --warning-soft: #33321f;
    --shadow: none;
    --on-primary: #0f223b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --olive: #aab48b;
  --olive-strong: #f1f2ee;
  --olive-soft: #1d3150;
  --blue: #c3cca4;
  --blue-strong: #dfe5c9;
  --blue-soft: #1a2f4d;
  --gold: #c1a158;
  --bg: #0f223b;
  --surface: #17304f;
  --text: #e8ebef;
  --muted: #b9c0c9;
  --border: #2a3d59;
  --success: #7cc47f;
  --success-soft: #17382f;
  --danger: #f39a92;
  --danger-soft: #3b2236;
  --warning-soft: #33321f;
  --shadow: none;
  --on-primary: #0f223b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
[hidden] { display: none !important; }
a { color: var(--blue); }
a:hover { color: var(--blue-strong); }
h1, h2, h3 { font-family: var(--serif); color: var(--olive-strong); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

/* ---------- En-tete / pied ---------- */
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 10; background: var(--surface); color: var(--blue); padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); }
.skip-link:focus { top: 8px; }
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 72px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: flex; border-radius: 8px; }
.brand img { height: 52px; width: auto; }
/* Logo : version « fond nuit » en theme sombre (systeme ou choisi). */
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
.brand-name { text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--olive-strong); line-height: 1.15; }
.brand-name small { display: block; font-family: var(--condensed); font-weight: 500; font-size: 0.85rem; color: var(--muted); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-select {
  width: auto; padding: 4px 6px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--muted); background: transparent; border: 1px solid transparent;
  cursor: pointer;
}
.lang-select:hover { border-color: var(--border); color: var(--text); }
.theme-switch { display: flex; border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.theme-switch button {
  display: grid; place-items: center; width: 26px; height: 24px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--olive-soft); color: var(--olive-strong); }
.theme-switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.session-badge { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.session-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
@media (max-width: 480px) {
  .session-badge { display: none; }
  .brand img { height: 44px; }
}

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding: 32px 0 48px; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; padding: 20px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Composants ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1.2 var(--sans);
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--blue); color: var(--on-primary); }
.btn-primary:hover:not(:disabled) { background: var(--blue-strong); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--olive-strong); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--olive-soft); }
.btn-link { background: none; border: none; color: var(--blue); padding: 6px 8px; font-weight: 500; }
.btn-small { padding: 7px 12px; font-size: 0.875rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .dropzone:focus-within {
  outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent);
  outline-offset: 2px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.spacer { flex: 1; }

.notice { border-radius: 10px; padding: 14px 16px; margin: 16px 0; font-size: 0.95rem; }
.notice-info { background: var(--blue-soft); }
.notice-success { background: var(--success-soft); }
.notice-error { background: var(--danger-soft); color: var(--danger); }
.notice-warning { background: var(--warning-soft); }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* ---------- Accueil : grille d'outils ---------- */
.about { margin-top: 40px; max-width: 70ch; }
.about h2 { margin-bottom: 0.6em; }
.about ul { padding-left: 1.2em; }
.about li { margin-bottom: 0.4em; }
.tools { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 24px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.tool-card:hover { border-color: var(--blue); transform: translateY(-2px); color: inherit; }
.tool-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.tool-card h2 { margin: 4px 0 0; font-size: 1.2rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tool-card .go { margin-top: auto; padding-top: 8px; color: var(--blue); font-weight: 600; font-size: 0.9rem; }

/* ---------- Etapes ---------- */
.stepper { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; }
.stepper li {
  flex: 1; counter-increment: step;
  font-size: 0.8rem; color: var(--muted);
  border-top: 4px solid var(--border); padding-top: 8px;
}
.stepper li::before { content: counter(step) ". "; font-weight: 600; }
.stepper li.is-done { border-color: var(--olive); color: var(--olive-strong); }
.stepper li.is-current { border-color: var(--blue); color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .stepper li { font-size: 0; }
  .stepper li::before { font-size: 0.8rem; }
  .stepper li.is-current { font-size: 0.8rem; }
}

.pitch { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.pitch-lead { font-size: 0.95rem; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; } }
.benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.benefits strong { display: block; color: var(--text); }
.benefit-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }

.promises { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 20px 0; }
@media (max-width: 640px) { .promises { grid-template-columns: 1fr; } }
.promises > div { border-radius: 10px; padding: 14px 16px; }
.promises .yes { background: var(--olive-soft); }
.promises .no { background: var(--blue-soft); }
.promises h3, .promises h4 { font-family: var(--sans); font-size: 0.95rem; margin: 0 0 6px; color: var(--text); }
.promises ul { margin: 0; padding-left: 20px; font-size: 0.93rem; }
.promises li { margin: 4px 0; }

label.field { display: block; font-weight: 600; margin: 16px 0 6px; }
select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 140px; resize: vertical; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px 16px; cursor: pointer; background: var(--surface);
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--blue); background: var(--blue-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { color: var(--blue); }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.file-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: var(--olive-soft);
}
.file-chip span { flex: 1; overflow-wrap: anywhere; }
kbd { font: 600 0.8em var(--sans); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; }
.captcha:has(iframe) { margin-top: 12px; }

/* ---------- Liste d'elements a verifier (evenements, contacts) ---------- */
.list-tools { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 8px 0 12px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s;
}
.item:hover { border-color: var(--blue); }
.item input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
.item-body { min-width: 0; flex: 1; }
.item-title { font-weight: 600; overflow-wrap: anywhere; }
.item-when, .item-sub { color: var(--olive-strong); font-size: 0.93rem; font-weight: 500; }
.item-meta, .item-desc { font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }
.item-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.item-meta a { color: var(--blue); }
.item.is-excluded { opacity: 0.55; }
.item.is-excluded .item-body { text-decoration: line-through; }

/* ---------- Choix du mode d'enregistrement ---------- */
.methods { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 4px; }
@media (max-width: 520px) { .methods { grid-template-columns: 1fr; } }
.method {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; text-align: left;
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 14px; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.method:hover { border-color: var(--blue); }
.method:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; }
.method[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.method-icon { grid-row: span 2; color: var(--blue); }
.method strong { font-size: 0.98rem; }
.method span { grid-column: 2; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.method-panel { scroll-margin-top: 12px; margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--olive-soft); }
.method-panel > :first-child { margin-top: 0; }
.method-panel .actions { margin-top: 12px; }
.method-panel .promises > div { background: var(--surface); }
.howto { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0 0; font-size: 0.9rem; }
.howto dt { font-weight: 600; }
.howto dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .howto { grid-template-columns: 1fr; } .howto dd { margin-bottom: 6px; } }

.link-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.link-row {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
.link-row .item-body { flex: 1 1 220px; }
.link-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.link-row.is-done { border-color: var(--success); }
.link-status { color: var(--success); font-weight: 600; font-size: 0.85rem; }

/* QR codes (contacts) : toujours noir sur blanc, pour la lecture par l'appareil photo */
.qr-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.qr-card img { width: 180px; height: 180px; image-rendering: pixelated; background: #fff; border-radius: 6px; padding: 6px; }
.qr-card .item-title { font-size: 0.95rem; }

.progress { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; margin: 12px 0 16px; }
.progress > div { height: 100%; width: 0; background: var(--blue); transition: width 0.2s; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.93rem; }
.status-list li { display: flex; gap: 8px; align-items: baseline; }
.status-list .icon { width: 1.2em; flex-shrink: 0; text-align: center; font-weight: 600; }
.status-list .ok .icon { color: var(--success); }
.status-list .ko .icon { color: var(--danger); }
.status-list .ko .err { color: var(--danger); font-size: 0.85rem; }

.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; }
.checklist li::before { content: "✓"; color: var(--success); font-weight: 600; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }

/* ---------- Analyse en cours / installation ---------- */
.review-status { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; }
.review-status .spinner { width: 14px; height: 14px; color: var(--blue); }
.install {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 20px 0 0; padding: 16px; border-radius: 10px; background: var(--blue-soft);
}
.install h3 { font-family: var(--sans); font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.install p { margin: 0 0 8px; }
.install p:last-child { margin-bottom: 0; }
.install .benefit-icon { background: var(--surface); }
.install-done { color: var(--success); font-weight: 600; }
.inline-icon { vertical-align: -2px; }

/* Fil d'Ariane, sous-titre et liens vers les autres outils */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: -8px 0 12px; }
.breadcrumb a { color: var(--muted); }
.tool-lead { margin-top: -4px; margin-bottom: 24px; }
.related { margin-top: 16px; }
.related h2 { font-size: 1.1rem; }
.related p { margin: 0; color: var(--muted); }

/* Questions frequentes, sous l'outil : accordeon natif (details), lisible sans JavaScript et par
   les moteurs ; meme presentation que sur oliv-it.fr. */
.faq { margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--olive-strong); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.5rem/1 var(--sans); color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--blue); }
.faq summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; border-radius: 4px; }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 72ch; }

/* Ecrans tactiles : pas de Ctrl+V ; aide de la liste sur sa propre ligne en petit ecran */
@media (pointer: coarse) { .paste-hint { display: none; } }
@media (max-width: 480px) { .list-tools > .small.muted { flex-basis: 100%; } }
@media (max-width: 560px) { .stepper li.is-current { flex: 2.4; white-space: nowrap; } }

/* Promesse de confidentialite, au-dessus du bouton d'analyse */
.privacy-note { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--success-soft); font-size: 0.9rem; }
.privacy-note svg { flex-shrink: 0; color: var(--success); margin-top: 1px; }
.privacy-note strong { color: var(--text); }

/* Options d'enregistrement, sous la liste a verifier */
.save-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.save-block h3 { font-size: 1.2rem; margin-bottom: 4px; }
.method:disabled { opacity: 0.5; cursor: not-allowed; }
.method:disabled:hover { border-color: var(--border); }

/* ---------- Telephone ---------- */
@media (max-width: 560px) {
  /* L'action d'abord : le document avant l'accroche et les atouts, qui passent sous le bouton. */
  [data-panel="document"] { display: flex; flex-direction: column; }
  [data-panel="document"] > * { order: 1; }
  [data-panel="document"] > .pitch { order: 2; margin: 28px 0 0; padding: 24px 0 0; border-bottom: 0; border-top: 1px solid var(--border); }
  h1 { font-size: 1.5rem; }
  .tool-lead { font-size: 1rem; margin-bottom: 16px; }
  /* Apres l'analyse, la liste remonte : sous-titre et fil d'Ariane masques. */
  body[data-step]:not([data-step="document"]) .tool-lead, body[data-step]:not([data-step="document"]) .breadcrumb { display: none; }
  .card { padding: 20px 16px; }
  .link-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .link-buttons .btn { padding-inline: 6px; font-size: 0.8rem; }
}
/* Ecran tactile : cibles de 44 px, et 16 px dans les champs (sinon l'iPhone zoome). */
@media (pointer: coarse) {
  .btn-small, .btn-link { min-height: 44px; }
  .theme-switch button { width: 34px; height: 34px; }
  .lang-select { font-size: 16px; min-height: 40px; }
}
@media (max-width: 560px) {
  body[data-step]:not([data-step="document"]) h1 { font-size: 1.2rem; margin-bottom: 12px; }
}
@media (max-width: 380px) {
  h1 { font-size: 1.35rem; }
  .tool-lead { font-size: 0.95rem; }
  .brand-name small { display: none; }
}
/* Tres petits ecrans : l'en-tete tient sur une ligne ; le theme du telephone s'applique. */
@media (max-width: 360px) { .theme-switch { display: none; } }

/* Fichier telecharge : encadre bien visible, fleche vers la liste des telechargements
   (notification en haut sur Android, barre de Safari sur iPhone, en haut a droite sur ordinateur). */
.download-done { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); }
.download-done p { margin: 0; }
.download-done strong { color: var(--success); }
.download-arrow { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--success); color: var(--surface); transform: rotate(45deg); }
:root[data-platform="android"] .download-arrow { transform: none; }
:root[data-platform="ios"] .download-arrow { transform: rotate(180deg); }
.download-arrow svg { animation: nudge 1.2s ease-in-out 4; }
@keyframes nudge { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .download-arrow svg { animation: none; } }
.howto-more { margin-top: 12px; font-size: 0.9rem; }
.howto-more summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.howto-more .howto { margin-top: 8px; }

/* =====================================================================
   factorial.oliv-it.fr : ajouts propres aux outils Factorial
   ===================================================================== */
.wrap-wide { max-width: 1180px; }
.disclaimer { flex-basis: 100%; font-size: 0.8rem; }

/* Reglages de l'organigramme */
.options { display: grid; gap: 12px 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 8px 0 0; }
.options label.field { margin: 0 0 6px; }
.options input[type="text"] {
  width: 100%; font: inherit; color: inherit; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.options .full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.checks label { display: inline-flex; gap: 8px; align-items: center; font-size: 0.95rem; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--blue); }

/* Apercu : une feuille blanche aux dimensions de la zone imprimable */
.preview { margin-top: 20px; overflow-x: auto; padding: 16px; border-radius: var(--radius); background: var(--blue-soft); }
.sheet { box-sizing: content-box; padding: 10mm; background: #fff; color: #1f2d3a; margin: 0 auto; box-shadow: 0 2px 12px rgba(19, 36, 60, 0.18); overflow: hidden; }
.sheet.a4-landscape { width: 277mm; min-height: 190mm; }
.sheet.a4-portrait { width: 190mm; min-height: 277mm; }
.sheet.a3-landscape { width: 400mm; min-height: 277mm; }

/* Organigramme (ecran et impression) : couleurs fixes, independantes du theme */
.org { font-family: Calibri, "Segoe UI", Arial, sans-serif; color: #1f2d3a; transform-origin: top left; }
.org h2 { font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 15pt; color: #1f2d3a; margin: 0 0 1.5mm; }
.org .sub { font-size: 8.5pt; color: #5b6b7a; margin: 0 0 5mm; }
.org .top { display: flex; justify-content: center; flex-wrap: wrap; gap: 4mm; margin-bottom: 5mm; }
.org .cols { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 4mm 3mm; align-items: start; border-top: 1.5px solid #8aa0b4; padding-top: 4mm; }
.org .col { min-width: 0; break-inside: avoid; }
.org .team { border-left: 1.5px solid #8aa0b4; margin-left: 3mm; padding-left: 2.5mm; margin-top: 2mm; }
.org .box { border: 1px solid #b9c7d4; border-radius: 4px; padding: 1.4mm 2mm; margin-bottom: 1.6mm; background: #fff; break-inside: avoid; }
.org .box.root { background: #33474f; color: #fff; border-color: #33474f; min-width: 60mm; text-align: center; }
.org .box.manager { background: #e8eef4; border-color: #8aa0b4; }
.org .name { font-weight: 700; font-size: 9pt; overflow-wrap: anywhere; }
.org .job { font-size: 7.8pt; line-height: 1.2; overflow-wrap: anywhere; }
.org .meta { font-size: 7pt; line-height: 1.2; color: #5b6b7a; }
.org .box.root .meta { color: #d5dde5; }
.org .count { font-weight: 400; color: #5b6b7a; }
.org .box.root .count { color: #d5dde5; }

@media print {
  body { background: #fff; display: block; min-height: 0; }
  .site-header, .site-footer, .no-print, .breadcrumb, h1, .tool-lead, .faq, .related, .notice { display: none !important; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .card { border: 0; box-shadow: none; padding: 0; background: #fff; }
  .preview { padding: 0; background: #fff; overflow: visible; margin: 0; border-radius: 0; }
  .sheet { box-shadow: none; margin: 0; min-height: 0; padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.options .field { display: block; font-weight: 600; margin: 0 0 6px; }
