/* Paladius — surcouche des aperçus : noir · verre · blanc, repris du dashboard. Chargée en dernier ; le thème vient de <html data-pd-theme>. */
:root, :root[data-pd-theme="dark"] {
  color-scheme: dark;
  --pd-bg: #070708;
  --pd-fill-2: rgba(255, 255, 255, .085);
  --pd-hi: rgba(255, 255, 255, .12);
  --pd-line: rgba(255, 255, 255, .11);
  --pd-glass: linear-gradient(135deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .055) 100%);
  --pd-card: #111113;
  --pd-bloom: .09;
  --pd-primary: linear-gradient(160deg, #fff 0%, #ececef 60%, #dcdce0 100%);
  --pd-primary-glow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 22px -6px rgba(255, 255, 255, .25);
  --pd-shadow: 0 2px 6px rgba(0, 0, 0, .28), 0 24px 50px -24px rgba(0, 0, 0, .7);
  --pd-mascot-shadow: drop-shadow(0 30px 50px rgba(255, 255, 255, .09));
  --pd-logo-filter: brightness(0) invert(.92);
  --pd-cloud-opacity: .06;
  --pd-switch-bg: rgba(30, 30, 33, .72);
  --pd-switch-ink: #f5f5f7;
  --pd-switch-on-bg: #f5f5f7;
  --pd-switch-on-ink: #0a0a0b;
  --pd-ripple: rgba(255, 255, 255, .75);
  --pd-muted: rgba(255, 255, 255, .56);
  --pd-dot: rgba(255, 255, 255, .22);
  --pd-ink: #f5f5f7;
  --pd-ink-2: rgba(255, 255, 255, .64);
  --pd-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-pd-theme="light"] {
  color-scheme: light;
  --pd-bg: #f2f2f4;
  --pd-fill-2: rgba(0, 0, 0, .06);
  --pd-hi: rgba(255, 255, 255, .8);
  --pd-line: rgba(0, 0, 0, .1);
  --pd-glass: linear-gradient(135deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, .66) 100%);
  --pd-card: #ffffff;
  --pd-bloom: .8;
  --pd-primary: linear-gradient(160deg, #2c2c2e 0%, #111 70%);
  --pd-primary-glow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 22px -8px rgba(0, 0, 0, .45);
  --pd-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 20px 40px -24px rgba(0, 0, 0, .25);
  --pd-mascot-shadow: drop-shadow(0 22px 30px rgba(0, 0, 0, .16));
  --pd-logo-filter: none;
  --pd-cloud-opacity: .8;
  --pd-switch-bg: rgba(255, 255, 255, .78);
  --pd-switch-ink: #1d1d1f;
  --pd-switch-on-bg: #1d1d1f;
  --pd-switch-on-ink: #ffffff;
  --pd-ripple: rgba(0, 0, 0, .4);
  --pd-muted: rgba(0, 0, 0, .5);
  --pd-dot: rgba(0, 0, 0, .16);
  --pd-ink: #1d1d1f;
  --pd-ink-2: rgba(0, 0, 0, .62);
}
html, body { background-color: var(--pd-bg) !important; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: rgba(120, 140, 255, .35); }

/* Typographie : Inter / SF Pro, titres serrés comme dans le dashboard. */
body :is(p, span, a, li, h1, h2, h3, h4, h5, h6, label, input, textarea, button) {
  font-family: var(--pd-font) !important;
  font-feature-settings: "cv11", "ss01";
}
body :is(h1, h2, h3, .styles-preset-g7mdxu, .styles-preset-12nofqz) { font-weight: 600 !important; letter-spacing: -.03em !important; }

/* Lumière diffuse du dashboard, en haut du hero et derrière l'appel final. */
.hero-section-2, .footer .cta {
  background-image:
    radial-gradient(40% 36% at 30% -8%, rgba(255, 255, 255, var(--pd-bloom)), transparent 62%),
    radial-gradient(34% 30% at 84% 0%, rgba(255, 255, 255, calc(var(--pd-bloom) * .66)), transparent 62%),
    radial-gradient(50% 40% at 50% 110%, rgba(255, 255, 255, calc(var(--pd-bloom) * .5)), transparent 62%);
}

/* Boutons : principal plein (blanc en sombre, noir en clair), secondaire en verre. */
.motion-primary .button-fill { background: var(--pd-primary) !important; box-shadow: var(--pd-primary-glow); }
.motion-secondary { background: var(--pd-fill-2) !important; box-shadow: inset 0 1px 0 var(--pd-hi); }

/* Cartes en verre. */
.motion-benefit-card { background-image: var(--pd-glass) !important; box-shadow: inset 0 1px 0 var(--pd-hi), var(--pd-shadow); }
[data-part$="case card"] { background-color: var(--pd-card) !important; background-image: var(--pd-glass) !important; box-shadow: inset 0 1px 0 var(--pd-hi); }

/* Famille Pal et formes en verre. */
.pd-pal { object-fit: contain !important; filter: var(--pd-mascot-shadow); }
.pd-lottie { display: grid; place-items: center; }
.pd-lottie .pd-pal { width: 100%; height: 100%; }
.pd-glass, .pd-avatar { object-fit: contain !important; }
.pd-cloud { opacity: var(--pd-cloud-opacity); }

/* Pal, la mascotte retenue, dans le hero : carré sobre (dégradé + grain, sans reflet ni éclat). Il cligne seulement : pas de réaction au survol. */
:root, :root[data-pd-theme="dark"] { --pal-face-a: #ffffff; --pal-face-b: #d6d6db; --pal-eye: #0a0a0b; --pal-glint: #ffffff; }
:root[data-pd-theme="light"] { --pal-face-a: #3c3c40; --pal-face-b: #111113; --pal-eye: #f5f5f7; --pal-glint: #111113; }
.pd-pal-live svg { display: block; width: 100%; height: 100%; overflow: visible; filter: var(--pd-mascot-shadow); }
.pd-pal-live .pal-stop-a { stop-color: var(--pal-face-a); }
.pd-pal-live .pal-stop-b { stop-color: var(--pal-face-b); }
.pd-pal-live .pal-head { fill: url(#pal-live-face); }
.pd-pal-live .pal-eye { fill: var(--pal-eye); transform-box: fill-box; transform-origin: center; transition: transform .25s cubic-bezier(.2, .9, .3, 1.1); }
.pd-pal-live .pal-glint { fill: var(--pal-glint); }
.pd-pal-live .pal-lids { transform-origin: 24px 23px; animation: pd-pal-blink 4.8s infinite; }
.pd-pal-live .pal-smile { fill: none; stroke: var(--pal-eye); stroke-width: 2.4; stroke-linecap: round; opacity: 0; transform: scaleX(.6); transform-origin: 24px 32px; transition: opacity .2s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes pd-pal-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@media (prefers-reduced-motion: reduce) { .pd-pal-live * { animation: none !important; transition: none !important; } }

/* Mascottes du hero un peu plus petites ; les emplacements du modèle restent inchangés. */
.hero-section-2 .pd-pal, .hero-section-2 .pd-pal-live svg { transform: scale(.8); }

/* Logos clients en SVG noir : éclaircis sur le thème sombre. */
.pd-logo { filter: var(--pd-logo-filter); }
/* Tarifs : le défilement des avis reste invisible dans le modèle (opacité 0 jamais levée) ; les cartes sont affichées fixes. */
.reviews-3 ul { opacity: 1 !important; transform: none !important; }
/* Logos du modèle dessinés en CSS (masque ou fond) et remplacés par une image « Logo client » : le dessin d'origine est neutralisé. */
.pd-logo-css { -webkit-mask: none !important; mask: none !important; background: none !important; object-fit: contain; }

/* Logo : Pal + « Paladius ». */
.pd-brand { display: inline-flex !important; align-items: center; gap: .4em; }
.pd-brand-mark { width: 1.15em; height: 1.15em; flex: none; }

/* Badges du vendeur du modèle, sans objet pour Paladius. */
.get-sunbeam, a[href*="framer.com"] { display: none !important; }

/* Démo vivante du dashboard dans l'onglet Assistant : iframe à l'échelle + curseur scénarisé (ordinateur uniquement). */
.pd-demo {
  position: absolute; inset: 0; overflow: hidden; border-radius: 15px;
  opacity: 0; pointer-events: none; contain: layout paint;
  transition: opacity .6s cubic-bezier(.4, 0, .2, 1);
}
.pd-demo.is-live { opacity: 1; }
.pd-demo iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 846px; border: 0; transform-origin: 0 0; background: var(--pd-bg); }
.pd-demo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--pd-line); pointer-events: none; }
.pd-cursor { position: absolute; top: 0; left: 0; z-index: 2; width: 24px; height: 24px; will-change: transform; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.pd-cursor svg { display: block; width: 100%; height: 100%; transform-origin: 4px 3px; transition: transform .14s cubic-bezier(.4, 0, .2, 1); }
.pd-cursor.is-down svg { transform: scale(.84); }
.pd-ripple { position: absolute; left: -11px; top: -12px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--pd-ripple); opacity: 0; pointer-events: none; }
/* Légende de la démo : l'étape de l'histoire (Demandes · Avis · Résultats) et l'accès à la démo complète. */
.pd-caption {
  position: absolute; top: 18px; left: 50%; z-index: 3;
  display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: var(--pd-switch-bg); border: 1px solid var(--pd-line);
  box-shadow: inset 0 1px 0 var(--pd-hi), var(--pd-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  white-space: nowrap; opacity: 0; transform: translate(-50%, -8px); pointer-events: none;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1), transform .4s cubic-bezier(.4, 0, .2, 1);
}
.pd-caption.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pd-cap-bars { display: flex; gap: 4px; }
.pd-cap-bars i { display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--pd-dot); transition: width .3s cubic-bezier(.4, 0, .2, 1), background-color .3s cubic-bezier(.4, 0, .2, 1); }
.pd-cap-bars i.is-active { width: 20px; background: var(--pd-switch-ink); }
.pd-cap-text { display: flex; align-items: baseline; gap: 10px; margin: 0; min-width: 380px; font-size: 14px; line-height: 20px; color: var(--pd-switch-ink); }
.pd-cap-label { font-size: 12px; font-weight: 500; color: var(--pd-muted); }
.pd-cap-message { font-weight: 500; }
.pd-cap-try { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--pd-switch-on-bg); color: var(--pd-switch-on-ink); font-size: 13px; font-weight: 500; line-height: 1; text-decoration: none; transition: transform .14s cubic-bezier(.4, 0, .2, 1); }
.pd-cap-try svg { width: 12px; height: 12px; }
.pd-cap-try:hover { transform: translateY(-1px); }
.pd-cap-try:active { transform: scale(.97); }
@media (max-width: 1023px), (prefers-reduced-motion: reduce) { .pd-demo, .pd-caption { display: none; } }

/* Ancres #tarifs et #analyse : le titre ne passe pas sous la barre de navigation fixe. */
html { scroll-padding-top: 100px; }

/* Tarifs : deux formules, en cartes de verre comme les études de cas. */
.pd-pricing { padding: 80px 0; }
.pd-pricing-inner { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 40px; }
.pd-pricing-title { margin: 0; }
.pd-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pd-plan {
  display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 24px;
  background-color: var(--pd-card); background-image: var(--pd-glass);
  border: 1px solid var(--pd-line); box-shadow: inset 0 1px 0 var(--pd-hi), var(--pd-shadow);
}
.pd-plan-head { display: flex; flex-direction: column; gap: 6px; }
.pd-plan-name { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.02em !important; color: var(--pd-ink); }
.pd-plan-for, .pd-plan-terms { margin: 0; font-size: 16px; line-height: 1.4; color: var(--pd-ink-2); }
.pd-plan-price { margin: 0; display: flex; align-items: baseline; gap: 8px; color: var(--pd-ink); }
.pd-plan-amount { font-size: 54px; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.pd-plan-unit { font-size: 16px; color: var(--pd-ink-2); }
.pd-plan-list { flex: 1; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--pd-line); }
.pd-plan-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.4; color: var(--pd-ink); }
.pd-plan-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pd-pricing-note { margin: 0; font-size: 14px; line-height: 1.4; color: var(--pd-ink-2); }
@media (max-width: 809px) {
  .pd-pricing { padding: 60px 0; }
  .pd-plans { grid-template-columns: 1fr; }
  .pd-plan { padding: 24px; }
  .pd-plan-amount { font-size: 44px; }
}

/* Demande d'analyse : formulaire court à la place du bouton de l'appel final (#analyse). */
/* Le conteneur du modèle avait la hauteur de l'ancien bouton (40 px) : sans ceci, le formulaire déborde sous le pied de page. */
.layout-64.pd-form-slot { width: 100% !important; height: auto !important; display: flex; justify-content: center; }
#analyse .main-title-2 p, #analyse .subtitle-2 p { text-align: center !important; }
.pd-form { box-sizing: border-box; position: relative; z-index: 2; width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pd-form-fields { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.pd-field-label { font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--pd-ink-2); }
.pd-field input {
  box-sizing: border-box; width: 100%; height: 48px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--pd-line); background: var(--pd-fill-2); box-shadow: inset 0 1px 0 var(--pd-hi);
  color: var(--pd-ink); font-size: 16px; font-weight: 500; outline: none;
  transition: border-color .2s cubic-bezier(.4, 0, .2, 1);
}
.pd-field input::placeholder { color: var(--pd-muted); }
.pd-field input:focus-visible { border-color: var(--pd-ink-2); }
.pd-form-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
button.motion-primary { appearance: none; border: 0; font: inherit; cursor: pointer; }
.pd-form-alt, .pd-form .contact-form-status { margin: 0; font-size: 14px; line-height: 1.4; color: var(--pd-ink-2); }
.pd-form-alt a { color: var(--pd-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 809px) { .pd-form-fields { grid-template-columns: 1fr; } }

/* Bascule d'aperçu entre les thèmes. */
.pd-switch {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--pd-switch-bg); border: 1px solid var(--pd-line);
  box-shadow: inset 0 1px 0 var(--pd-hi), var(--pd-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
}
.pd-switch a { padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1; color: var(--pd-switch-ink); text-decoration: none; transition: background-color .22s cubic-bezier(.4, 0, .2, 1); }
.pd-switch a:not([aria-current]):hover { background: var(--pd-fill-2); }
.pd-switch a[aria-current] { background: var(--pd-switch-on-bg); color: var(--pd-switch-on-ink); }

/* Pages légales (conditions générales, confidentialité, mentions légales) : contenu posé par build-pages.cjs dans la section texte du modèle. */
.pd-legal { display: flex; flex-direction: column; gap: 56px; width: 100%; font-family: var(--pd-font); font-size: 17px; line-height: 1.65; color: var(--pd-ink-2); }
.pd-legal-section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 110px; }
.pd-legal h2 { margin: 0; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--pd-ink); text-wrap: balance; }
.pd-legal h3 { margin: 16px 0 0; font-size: 1.125rem; line-height: 1.35; font-weight: 600; color: var(--pd-ink); }
.pd-legal p, .pd-legal ul, .pd-legal ol, .pd-legal dl { margin: 0; }
.pd-legal ul { display: flex; flex-direction: column; gap: 8px; padding-inline-start: 1.25em; }
.pd-legal li::marker { color: var(--pd-muted); }
.pd-legal strong { font-weight: 600; color: var(--pd-ink); }
.pd-legal a { color: var(--pd-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pd-legal a:hover, .pd-legal a:focus-visible { text-decoration-thickness: 2px; }
.pd-legal-sommaire, .pd-legal-encadre { padding: 20px 24px; border-radius: 20px; border: 1px solid var(--pd-line); box-shadow: inset 0 1px 0 var(--pd-hi); }
.pd-legal-sommaire { background: var(--pd-card); }
.pd-legal-sommaire p { margin-block-end: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pd-muted); }
.pd-legal-sommaire ol { columns: 2 16rem; column-gap: 32px; padding-inline-start: 1.4em; font-size: 15px; line-height: 1.5; }
.pd-legal-sommaire li { break-inside: avoid; padding-block: 3px; }
.pd-legal-sommaire li::marker { color: var(--pd-muted); font-variant-numeric: tabular-nums; }
.pd-legal-sommaire a { text-decoration: none; }
.pd-legal-sommaire a:hover, .pd-legal-sommaire a:focus-visible { text-decoration: underline; }
.pd-legal-encadre { display: flex; flex-direction: column; gap: 12px; background: var(--pd-glass); color: var(--pd-ink); }
.pd-legal-fiche { display: grid; border-top: 1px solid var(--pd-line); }
.pd-legal-fiche > div { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 4px 24px; padding-block: 12px; border-bottom: 1px solid var(--pd-line); }
.pd-legal-fiche dt { font-size: 15px; color: var(--pd-muted); }
.pd-legal-fiche dd { margin: 0; color: var(--pd-ink); }
.pd-legal-tableau { overflow-x: auto; border: 1px solid var(--pd-line); border-radius: 16px; background: var(--pd-card); }
.pd-legal-tableau:focus-visible { outline: 2px solid var(--pd-ink); outline-offset: 2px; }
.pd-legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.pd-legal th, .pd-legal td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--pd-line); }
.pd-legal thead th { font-size: 13px; font-weight: 600; color: var(--pd-muted); white-space: nowrap; }
.pd-legal tbody th { font-weight: 600; color: var(--pd-ink); }
.pd-legal tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 809px) {
  .pd-legal { gap: 44px; font-size: 16px; }
  .pd-legal-fiche > div { grid-template-columns: 1fr; }
}
