/* Instrument Sans (SIL OFL 1.1, cf. polices/OFL.txt) hébergée sur le site : la CSP n'autorise que font-src 'self'. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/accueil/polices/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/accueil/polices/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/accueil/polices/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/accueil/polices/instrument-sans-latin-700-normal.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --background: #faf7f4;
  --paper: #fff;
  --ink: #211b22;
  --muted: #605761;
  --accent: #bb184d;
  --accent-dark: #981139;
  --pink: #fce9ee;
  --line: #e8dedf;
  --max: 1220px;
  --button: #bb184d;
  --button-hover: #981139;
  --surface-alt: #f5f1f4;
  --tint: #fff4f7;
  --tint-line: #f2ccd7;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; }
h2 { font-size: clamp(2rem, 4.3vw, 3.45rem); letter-spacing: -.057em; line-height: 1.04; text-wrap: balance; }
h3 { font-size: 1.45rem; letter-spacing: -.04em; line-height: 1.18; }
abbr[title] { text-decoration: none; }
[id] { scroll-margin-top: 5.5rem; }
.wrap { width: min(calc(100% - 96px), var(--max)); margin-inline: auto; }
.section-pad { padding-block: clamp(3.75rem, 7.5vw, 6.75rem); }
.skip {
  position: absolute; left: 1rem; top: 1rem; z-index: 3; transform: translateY(-200%);
  padding: .6rem .9rem; background: var(--ink); color: white;
}
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 77px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-size: 1.65rem; font-weight: 700; letter-spacing: -.085em; white-space: nowrap; line-height: 1; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3.4vw, 2.6rem); }
nav a { font-size: .91rem; font-weight: 600; text-decoration: none; }
nav a:hover, .text-link:hover { color: var(--accent); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .85rem; padding: .86rem 1.18rem; border: 1px solid transparent; border-radius: 8px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.button-small { padding: .62rem .85rem; font-size: .89rem; white-space: nowrap; }
.button-outline { border-color: var(--line); background: var(--paper); }
.button-outline:hover { border-color: var(--accent); }
.button-primary { background: var(--button); color: #fff; }
.button-primary:hover { background: var(--button-hover); }
.text-link { font-weight: 700; font-size: .93rem; }
.text-link span { margin-left: .25rem; }
.hero { display: grid; grid-template-columns: 1fr .98fr; align-items: center; gap: clamp(2rem, 5.3vw, 5rem); padding-block: clamp(3rem, 6.5vw, 6rem); }
.eyebrow { color: var(--accent-dark); font-size: .81rem; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; margin-bottom: 1.05rem; }
h1 { font-size: clamp(2.45rem, 4.75vw, 4.62rem); line-height: .99; letter-spacing: -.057em; }
h1 span { color: var(--accent); }
.hero-intro { max-width: 36rem; margin-top: 1.2rem; font-size: clamp(1.04rem, 1.65vw, 1.28rem); color: var(--muted); }
.hero-offer { margin-top: 1.45rem; padding-top: .95rem; border-top: 1px solid var(--line); }
.hero-price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 1rem; color: var(--accent); }
.hero-price strong { font-size: clamp(3.4rem, 6.65vw, 5.65rem); line-height: 1; letter-spacing: -.087em; }
.hero-price > span { font-size: 1rem; line-height: 1.2; font-weight: 700; }
.hero-price a { margin-left: .15em; text-decoration: none; }
#condition-tarif { font-size: .88rem; margin-top: .65rem; max-width: 28rem; color: var(--muted); }
#condition-tarif strong { color: var(--ink); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.2rem; margin-top: 1.35rem; }
.trial-line { color: var(--muted); font-size: .85rem; margin-top: .8rem; }
.hero-image { border-radius: 23px; overflow: hidden; background: #e5d8d7; box-shadow: 0 18px 50px #2b19221a; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1.03; object-fit: cover; object-position: center; }
.process { background: #241c24; color: #fff; }
.section-heading { max-width: 49rem; margin-bottom: 2rem; }
.section-heading > p { margin-top: .9rem; font-size: 1.075rem; color: var(--muted); max-width: 41rem; }
.process .section-heading > p { color: #dfd2de; }
.pricing { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.75rem, 6vw, 6rem); }
.pricing-intro p { margin-top: 1rem; color: var(--muted); max-width: 33rem; }
.pricing-intro .note { font-size: .9rem; }
.price-card { padding: clamp(1.1rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.price-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: .9rem 0; }
.price-card dl > div + div { border-top: 1px solid var(--line); }
.price-card dt { font-weight: 700; }
.price-card dt small { font-size: .84rem; color: var(--muted); font-weight: 500; }
.price-card dd { color: var(--accent); font-size: clamp(1.3rem, 2.6vw, 1.85rem); letter-spacing: -.045em; font-weight: 700; text-align: right; }
.price-card dd small { font-size: .75rem; letter-spacing: 0; white-space: nowrap; }
.pricing-example { margin-top: .8rem; background: var(--pink); border-radius: 8px; padding: .75rem .9rem; font-size: .91rem; }
.compare { background: var(--paper); border-block: 1px solid var(--line); }
.comparison-heading { max-width: 55rem; }
.comparison-heading h2 { text-wrap: initial; }
.compare-focus { display: grid; grid-template-columns: minmax(12rem, .5fr) 1fr; gap: 1rem; background: var(--pink); border-radius: 12px; padding: 1.3rem 1.5rem; margin-bottom: 1rem; align-items: center; }
.compare-focus a { font-weight: 700; color: var(--accent-dark); display: block; margin-top: .25rem; }
.compare-kicker { display: block; margin-bottom: .45rem; color: var(--accent-dark); font-size: .8rem; font-weight: 700; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.comparison-grid article { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; }
.comparison-grid p { margin: .65rem 0 1.05rem; color: var(--muted); }
.source { align-self: flex-start; margin-top: auto; font-size: .86rem; font-weight: 700; }
.source:hover { color: var(--accent); }
.comparison-note { margin-top: 1rem; color: var(--muted); font-size: .83rem; }
.faq { display: grid; grid-template-columns: .65fr 1fr; gap: 2rem 4rem; align-items: start; }
.questions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; list-style: none; padding: 1rem 0; cursor: pointer; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { color: var(--accent); font-size: 1.25rem; line-height: 1; content: "+" / ""; }
details[open] summary::after { content: "−" / ""; }
details p { margin-bottom: 1rem; color: var(--muted); max-width: 42rem; }
.trial { margin-bottom: clamp(3.75rem, 7.5vw, 6.75rem); }
.trial-panel { background: #a71443; color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; border-radius: 16px; padding: clamp(1.5rem, 4.5vw, 3.2rem); }
.trial-panel h2 { font-size: clamp(2rem, 4vw, 3rem); text-wrap: initial; }
.trial-panel p { margin-top: .65rem; }
.trial-aside { padding: .8rem 1.1rem; border: 1px solid #ffb5c9; border-radius: 8px; display: grid; }
.trial-aside span { font-size: .88rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { font-size: .87rem; color: var(--muted); }
@media (max-width: 980px) {
  .wrap { width: min(calc(100% - 56px), var(--max)); }
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .nav-inner { flex-wrap: wrap; gap: .85rem; padding-block: .9rem; }
  nav { width: 100%; order: 3; gap: 1.25rem; }
  .hero, .pricing, .faq { grid-template-columns: 1fr; }
  .hero { gap: 1.8rem; padding-block: 2.55rem; }
  .hero-copy { max-width: 38rem; }
  .hero-image img { aspect-ratio: 1.26; }
}
@media (max-width: 460px) {
  .comparison-grid, .compare-focus { grid-template-columns: 1fr; }
  .nav-inner .brand { font-size: 1.43rem; gap: .5rem; }
  .nav-inner .button-small { font-size: .8rem; padding-inline: .6rem; gap: .4rem; }
  nav { justify-content: space-between; gap: .7rem; }
  .hero-price { flex-wrap: nowrap; align-items: center; column-gap: .65rem; }
  .hero-price > span { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.guide .section-heading { max-width: 60rem; }
.guide .section-heading h2 { text-wrap: initial; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-grid article { display: flex; flex-direction: column; gap: .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.15rem, 2.8vw, 2rem); }
.guide-grid article p { color: var(--muted); }
.guide-grid .source { margin-top: auto; color: var(--accent-dark); }
.cost-panel { margin: 2.25rem 0; padding: clamp(1rem, 2.8vw, 2rem); background: var(--background); border: 1px solid var(--line); border-radius: 12px; }
.cost-panel > h3 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); }
.cost-panel > p { margin-top: .7rem; color: var(--muted); }
.table-scroll { margin-top: 1.1rem; overflow-x: auto; }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cost-table { width: 100%; border-collapse: collapse; min-width: 28rem; text-align: left; font-variant-numeric: tabular-nums; }
.cost-table caption { text-align: left; font-size: .85rem; padding-bottom: .55rem; color: var(--muted); }
.cost-table th, .cost-table td { padding: .8rem .85rem; border-bottom: 1px solid var(--line); }
.cost-table thead th { background: var(--pink); line-height: 1.25; }
.cost-table thead small { font-weight: 500; }
.cost-table td { background: var(--paper); }
.comparison-grid cite.source { color: var(--muted); font-style: normal; font-weight: 500; }
@media (max-width: 730px) {
  .guide-grid { grid-template-columns: 1fr; }
}
.cost-table td small { display: block; color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.cost-table td small.saving { color: var(--accent-dark); font-weight: 700; }

@media (max-width: 460px) {
  nav { flex-wrap: wrap; gap: .5rem; }
  nav a { font-size: .83rem; }
}

.workflow {
  --workflow-gap: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem var(--workflow-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.workflow > li { position: relative; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.workflow > li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(1.125rem - 1px);
  left: 2.25rem;
  right: calc(-1 * var(--workflow-gap));
  border-top: 1px solid #976d88;
}
.workflow-number {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fce9ee;
  color: #981139;
  font-weight: 700;
  line-height: 1;
}
.workflow-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 1px solid #594556;
  border-radius: 14px;
  overflow: hidden;
  background: #312631;
}
.workflow-card img { width: 100%; height: auto; aspect-ratio: 14 / 9; object-fit: cover; }
.workflow-copy { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: 1.1rem; }
.workflow-copy > p { color: #dfd2de; font-size: .94rem; }
.workflow-copy .workflow-provider {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .5rem;
  align-items: baseline;
  margin-top: auto;
  padding-top: .8rem;
  font-size: .8rem;
}
.workflow-provider strong { color: #ffbad0; font-size: .93rem; }
.workflow-dashboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.6rem;
  padding: 1.3rem 1.5rem;
  background: var(--pink);
  color: var(--ink);
  border-radius: 12px;
}
.workflow-dashboard p { max-width: 41rem; margin-top: .35rem; color: var(--muted); }
@media (max-width: 980px) {
  .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow > li:nth-child(2)::before { display: none; }
}
@media (max-width: 560px) {
  .workflow { grid-template-columns: 1fr; gap: 1rem; }
  .workflow > li { display: grid; grid-template-columns: 1.85rem minmax(0, 1fr); align-items: start; gap: .65rem; }
  .workflow-number { width: 1.85rem; height: 1.85rem; }
  .workflow > li:not(:last-child)::before, .workflow > li:nth-child(2)::before {
    display: block;
    top: 1.85rem;
    right: auto;
    bottom: -1rem;
    left: calc(.925rem - 1px);
    border-top: 0;
    border-left: 1px solid #976d88;
  }
  .workflow-dashboard { padding: 1rem; }
}

.reseau-offer { margin-top: .7rem; }

.comparison-grid .comparison-difference {
  padding: .8rem .9rem;
  border-radius: 8px;
  background: var(--pink);
}
.comparison-difference strong { display: block; color: var(--accent-dark); margin-bottom: .25rem; }
.referral { margin-bottom: clamp(3.75rem, 7.5vw, 6.75rem); }
.referral-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  padding: clamp(1.15rem, 4vw, 3rem);
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: 16px;
}
.referral-panel h2 { text-wrap: initial; }
.referral-panel h2 span { color: var(--accent); }
.referral-panel h2 + p { margin-top: 1rem; }
.referral-panel p:not(.eyebrow):not(.referral-zero), .referral-panel ol { color: var(--muted); }
.referral-panel .referral-bonus {
  margin-top: .85rem;
  padding: .65rem .85rem;
  border-left: 3px solid var(--accent);
  background: var(--pink);
}
.referral-panel ol { padding-left: 1.4rem; margin: 1.15rem 0; }
.referral-panel li + li { margin-top: .4rem; }
.referral-panel li::marker { color: var(--accent-dark); font-weight: 700; }
.referral-price { padding: clamp(1rem, 3vw, 2rem); text-align: center; border: 1px solid var(--tint-line); border-radius: 12px; background: var(--paper); }
.referral-zero { display: grid; gap: .3rem; margin-bottom: .8rem; font-weight: 700; }
.referral-zero strong { color: var(--accent); font-size: clamp(4.25rem, 8vw, 6.5rem); line-height: 1; letter-spacing: -.07em; }
.referral-terms { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; font-size: .87rem; }
@media (max-width: 730px) {
  .referral-panel { grid-template-columns: 1fr; }
}

.sidexa-feature { margin-block: clamp(1.75rem, 4vw, 3.25rem) 0; padding: clamp(1.25rem, 3.5vw, 2.6rem); }
.sidexa-feature h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); text-wrap: initial; }
.sidexa-feature a { margin-top: .6rem; }

.dashboard-section { background: var(--surface-alt); }
.dashboard-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 3rem; align-items: center; }
.dashboard-heading h2 { text-wrap: initial; }
.dashboard-heading h2 span { color: var(--accent); display: block; }
.dashboard-heading p, .dashboard-benefits p { color: var(--muted); }
.dashboard-preview { margin: 2rem 0; }
.dashboard-preview figcaption { margin-top: .65rem; }
.dashboard-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; margin-bottom: 1.65rem; }
.dashboard-benefits > div { border-top: 2px solid var(--accent); padding-top: .85rem; }
.dashboard-benefits p { margin-top: .45rem; }
@media (max-width: 730px) {
  .dashboard-heading, .dashboard-benefits { grid-template-columns: 1fr; }
}

/* Intégration au site : connexion, bouton de l'encart d'essai, liens légaux du pied de page */
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-login { font-size: .91rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-login:hover { color: var(--accent); }
.trial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.button-light { background: #fff; color: #981139; }
.button-light:hover { background: var(--pink); }
.legal-links { flex-wrap: wrap; gap: .4rem 1.1rem; }
.legal-links a { font-size: .84rem; font-weight: 500; color: var(--muted); }
@media (max-width: 460px) {
  .header-actions { gap: .7rem; }
  .header-login { font-size: .8rem; }
}

/* Bouton clair / sombre (theme-toggle.js) */
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
:root[data-color-scheme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-color-scheme="light"] .theme-toggle .icon-moon { display: block; }

/* 3 relances automatiques */
.workflow-followup { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin-top: 1.6rem; padding: 1.1rem 1.5rem; border: 1px solid #594556; border-radius: 12px; }
.workflow-followup strong { font-size: 1.15rem; }
.workflow-followup strong span { color: #ffbad0; }
.workflow-followup p { color: #dfd2de; }

/* Vraie capture du tableau de bord */
.real-dashboard img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 38px #251c2414; }

/* Autonome, avec les bons outils */
.confidence .section-heading h2 span { color: var(--accent); }
.confidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.confidence-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.15rem, 2.5vw, 1.6rem); }
.confidence-grid p { margin-top: .6rem; color: var(--muted); }

/* Contenu du dossier, factures, SuperPDP */
.offer-details { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; padding: clamp(1.15rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.offer-details h3 { grid-column: 1 / -1; }
.offer-details ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.offer-details li { padding-left: 1.6rem; position: relative; }
.offer-details li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.offer-extras { display: grid; gap: 1rem; align-content: start; }
.offer-extras p { color: var(--muted); }
.offer-extras strong { color: var(--ink); }
.offer-details .button { grid-column: 1 / -1; justify-self: start; }
.pricing-intro p strong { color: var(--ink); }

/* Gestion déléguée RéseauGlass */
.delegated { background: var(--surface-alt); border-block: 1px solid var(--line); }
.delegated-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 4.5rem); align-items: center; }
.delegated-panel h2 { text-wrap: initial; }
.delegated-panel h2 span { color: var(--accent); display: block; }
.delegated-panel h2 + p { margin: 1.1rem 0 1.5rem; color: var(--muted); max-width: 38rem; }
.delegated-card { padding: clamp(1.15rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 16px; }
.delegated-card ul { margin: 1rem 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.delegated-card li { padding-left: 1.6rem; position: relative; font-weight: 600; }
.delegated-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.delegated-card p { color: var(--muted); font-size: .94rem; }

.trial-help { font-size: .9rem; opacity: .9; }
.trial-help a { color: #fff; }

.site-header nav { gap: clamp(1rem, 1.9vw, 1.9rem); }
.site-header nav a { white-space: nowrap; }
.dashboard-preview figcaption { font-size: .85rem; color: var(--muted); }
/* Moins de place : Guide et Comparatif restent accessibles par la page, le menu tient sur une ligne */
@media (max-width: 1300px) {
  .site-header nav .nav-secondary { display: none; }
}
@media (max-width: 980px) {
  .confidence-grid { grid-template-columns: 1fr; }
}
@media (max-width: 730px) {
  .offer-details, .delegated-panel { grid-template-columns: 1fr; }
}

/* Mobile allégé : l'en-tête garde la marque, le thème, la connexion et l'essai ; les cartes se resserrent */
@media (max-width: 1100px) {
  .site-header nav { display: none; }
  .nav-inner { flex-wrap: nowrap; min-height: 64px; padding-block: .6rem; }
}
@media (max-width: 560px) {
  .section-pad { padding-block: 2.75rem; }
  .hero { padding-block: 1.75rem 2.25rem; }
  .hero-image img { aspect-ratio: 1.6; }
  .workflow-card img { aspect-ratio: 16 / 7; }
  .workflow-copy { padding: .9rem; }
  .comparison-grid > article > p:not(.comparison-difference) { display: none; }
  .comparison-grid article { padding: 1rem; }
  .guide-grid article { padding: 1rem; }
  .dashboard-benefits { gap: .8rem; }
  .confidence-grid article, .offer-details, .delegated-card { padding: 1rem; }
}
@media (max-width: 400px) {
  .nav-inner .brand { font-size: 1.25rem; }
  .header-actions { gap: .45rem; }
  .theme-toggle { width: 34px; height: 34px; }
}

/* Thème sombre (data-color-scheme posé par /theme-init.js, même réglage que l'application) */
:root[data-color-scheme="dark"] {
  color-scheme: dark;
  --background: #141115;
  --paper: #1d191e;
  --ink: #f4eff3;
  --muted: #b9aeb7;
  --accent: #f0588a;
  --accent-dark: #ff9ab9;
  --pink: #35202a;
  --line: #3a3139;
  --surface-alt: #19151a;
  --tint: #1f171c;
  --tint-line: #4a2c39;
}
:root[data-color-scheme="dark"] .process { background: #0e0b0f; }
:root[data-color-scheme="dark"] .hero-image, :root[data-color-scheme="dark"] .real-dashboard img { box-shadow: 0 18px 50px #0008; }

/* Logo officiel (PNG 480 × 80) : version foncée sur fond clair, blanche en thème sombre */
.brand img { display: block; width: 190px; height: auto; }
.brand .logo-on-dark { display: none; }
:root[data-color-scheme="dark"] .brand .logo-on-light { display: none; }
:root[data-color-scheme="dark"] .brand .logo-on-dark { display: block; }
.site-footer .brand img { width: 150px; }
@media (max-width: 560px) { .nav-inner .brand img { width: 150px; } }
@media (max-width: 400px) { .nav-inner .brand img { width: 128px; } }

/* En-tête qui reste visible au défilement : « Essai gratuit » toujours à portée */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--background) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Outils intégrés (texte seul, sans logos tiers) */
.tools-band { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; padding: 1.1rem 0 clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.tools-band p { color: var(--muted); font-size: .88rem; font-weight: 600; }
.tools-band ul { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 0; padding: 0; list-style: none; }
.tools-band li { color: var(--muted); font-size: .88rem; }
.tools-band strong { color: var(--ink); font-size: 1rem; margin-right: .35rem; }

/* Guide juridique replié (le texte reste dans la page) */
.guide-grid details.guide-item { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 clamp(1.15rem, 2.8vw, 2rem); align-self: start; }
.guide-item summary { padding: 1.1rem 0; }
.guide-item summary h3 { font-size: 1.2rem; }
.guide-item[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.guide-item p { color: var(--muted); margin-bottom: .75rem; }
.guide-item .source { display: inline-block; margin-bottom: 1.1rem; color: var(--accent-dark); }

/* Comparatif : fiches éditeurs repliées */
details.compare-more { border: 1px solid var(--line); border-radius: 12px; padding: 0 1.3rem; margin-top: 1rem; }
.compare-more > summary { color: var(--accent-dark); }
.compare-more[open] > summary { margin-bottom: .4rem; }
.compare-more[open] { padding-bottom: 1.3rem; }
.compare-more .comparison-grid p { max-width: none; margin-bottom: 1.05rem; }

/* Mobile : bandeau d'outils plus compact */
@media (max-width: 560px) {
  .tools-band { gap: .5rem; padding-top: .9rem; }
  .tools-band ul { gap: .35rem 1.1rem; }
  .tools-band li { font-size: .8rem; }
  .tools-band strong { font-size: .92rem; }
}

/* Pages du guide (public/guide/*.html) : lecture confortable, même charte que l'accueil */
.guide-page { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.breadcrumb a { color: var(--muted); }
.guide-article { max-width: 46rem; }
.guide-article h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.04; }
.guide-lead { margin-top: 1.2rem; font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--muted); }
.guide-meta { margin-top: .9rem; font-size: .84rem; color: var(--muted); }
.guide-article > h2, .guide-article section > h2, .guide-article nav > h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); letter-spacing: -.045em; margin-top: 2.6rem; margin-bottom: .8rem; text-wrap: initial; }
.guide-article > p, .guide-article > ul, .guide-article > ol { margin: 0 0 1rem; font-size: 1.04rem; line-height: 1.65; }
.guide-article > ul, .guide-article > ol { padding-left: 1.3rem; }
.guide-article li + li { margin-top: .4rem; }
.guide-article li::marker { color: var(--accent); font-weight: 700; }
.guide-article > p a, .guide-article li a { color: var(--accent-dark); font-weight: 600; }
.guide-cta { margin-top: 2.8rem; padding: clamp(1.15rem, 3vw, 2rem); background: var(--tint); border: 1px solid var(--tint-line); border-radius: 16px; }
.guide-cta h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); letter-spacing: -.045em; }
.guide-cta p { margin: .7rem 0 1.1rem; color: var(--muted); }
.guide-cta .guide-cta-note { margin: .9rem 0 0; font-size: .85rem; }
.guide-faq { border-top: 0; }
.guide-faq details p { max-width: none; }
.guide-sources ul, .guide-related ul { padding-left: 1.2rem; }
.guide-sources a, .guide-related a { color: var(--accent-dark); font-weight: 600; }
.guide-related li + li, .guide-sources li + li { margin-top: .45rem; }

/* Accueil : renvois vers les pages du guide */
.guide-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: -.6rem 0 1.4rem; padding: 0; list-style: none; }
.guide-links a, .guide-more { color: var(--accent-dark); font-weight: 700; font-size: .93rem; }
.guide-more { display: inline-block; margin: 0 0 1.1rem 1.2rem; }
/* Le fil d'Ariane et « À lire aussi » sont des <nav> : pas la mise en page du menu principal */
.guide-page nav.breadcrumb { display: block; }
.guide-page nav.breadcrumb a { font-size: .85rem; font-weight: 500; }
.guide-page nav.guide-related { display: block; }
.guide-page nav.guide-related a { font-size: 1rem; }
.guide-article .guide-lead { margin: 1.3rem 0 0; }
.guide-article .guide-meta { margin: .9rem 0 0; }

/* Pages comparatives (public/comparatif) */
.compare-article .table-scroll { margin: .4rem 0 1.4rem; }
.compare-table { min-width: 34rem; }
.compare-table tbody th { width: 26%; font-weight: 700; }
.compare-table td { vertical-align: top; font-size: .94rem; }
.compare-links { margin: 1.2rem 0 0; }

/* Demander une démo : trois champs, l'équipe rappelle. */
.demo { margin-bottom: clamp(2rem, 4vw, 3rem); }
.demo-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; background: var(--tint); border: 1px solid var(--tint-line); border-radius: 16px; padding: clamp(1.5rem, 4.5vw, 3.2rem); }
.demo-intro h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.demo-intro p:not(.eyebrow) { color: var(--muted); margin-top: .8rem; max-width: 34rem; }
.demo-form { display: grid; gap: .4rem; }
.demo-form label { font-weight: 700; font-size: .92rem; margin-top: .45rem; }
.demo-form { min-width: 0; }
/* -webkit-appearance : sans lui, Safari iOS garde son ombre interne et ses coins natifs.
   font-size ≥ 16px : en dessous, iOS zoome la page au toucher du champ. */
.demo-form input { -webkit-appearance: none; appearance: none; font: inherit; font-size: max(16px, 1rem); line-height: 1.3; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .78rem .9rem; width: 100%; min-width: 0; min-height: 3rem; margin: 0; box-shadow: none; }
/* Remplissage automatique : fond jaune/bleu imposé par le navigateur, illisible en thème sombre. */
.demo-form input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--paper) inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.demo-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.demo-form .button { -webkit-appearance: none; appearance: none; width: 100%; margin-top: .9rem; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.demo-form .button:disabled { opacity: .6; cursor: progress; }
.demo-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-legal { color: var(--muted); font-size: .82rem; margin-top: .5rem; }
.demo-legal a { color: inherit; }
.demo-status { grid-column: 2; font-weight: 700; }
.demo-status:empty { display: none; }
.demo-status-success { color: var(--ink); background: var(--paper); border: 1px solid var(--tint-line); border-radius: 8px; padding: 1rem 1.1rem; }
.demo-status-error { color: var(--accent-dark); }
.demo-status-pending { color: var(--muted); font-weight: 400; }
@media (max-width: 860px) {
  .demo-panel { grid-template-columns: minmax(0, 1fr); }
  .demo-status { grid-column: 1; }
}
@media (max-width: 560px) {
  .demo-panel { padding: 1.25rem 1.1rem; gap: 1.25rem; }
  .demo-intro h2 { font-size: 1.6rem; }
  .demo-intro .eyebrow { margin-bottom: .6rem; }
  .demo-form label { margin-top: .6rem; }
}
