/* Charte alignée sur la Plateforme publique (smart-reuse.fr).
   Poppins auto-hébergée : la CSP mobilier n'autorise pas fonts.googleapis.com
   (style-src 'self' 'unsafe-inline', font-src hérité de default-src 'self'). */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-latinext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-latinext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-latinext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-latinext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-primary: #5936f6;
  --color-primary-dark: #0e0e52;
  --color-secondary: #0e0e52;
  --color-accent: #f1c40f;
  --color-surface: #f6f5fb;
  --color-ink: #0e0e52;
  --color-muted: #454567;
  --color-soft: #f7f8fa;
  --color-violet-border: #dfe5ff;
  --color-violet-soft: #f3efff;
  --page-margin: clamp(1rem, 4vw + 0.5rem, 4rem);
  --container-x: var(--page-margin);
  --sr-font: "Poppins", Helvetica, Arial, sans-serif;
}

@media (max-width: 767px) {
  :root {
    --page-margin: clamp(0.75rem, 2.5vw + 0.25rem, 1rem);
    --container-x: var(--page-margin);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sr-font) !important;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-surface) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px !important;
}

button,
input,
select,
textarea,
.pf-input,
.btn,
.pf-btn-primary {
  font-family: inherit;
}

h1, h2, h3, .pf-h1, .pf-section-title, .section-title, .faq-hero h1 {
  color: var(--color-secondary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.muted,
.pf-intro,
.pf-lead,
.pf-text,
.tool-intro,
.faq-answer-text,
.cart-line {
  color: var(--color-muted);
}

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

/* Header — barre blanche, ombre légère, CTA violet arrondi */
.sr-header {
  height: auto !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 1px 2px rgba(14, 14, 82, 0.06);
}

.sr-util { display: none; }

.sr-header-inner {
  height: 64px !important;
  max-width: 1600px;
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--page-margin) !important;
  padding-right: var(--page-margin) !important;
}

.sr-header .sr-logo-wrap {
  line-height: 0;
}

.sr-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(46vw, 168px);
  object-fit: contain;
}

.sr-header .sr-wordmark {
  display: block;
  max-width: 9.2rem;
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: normal;
  text-decoration: none;
}

.sr-header-center a:not(.sr-tool-link) {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.375rem;
}

.sr-header-center a:not(.sr-tool-link):hover {
  background: #f3f4f6;
  color: var(--color-primary);
}

.sr-header .sr-header-center .sr-tool-link {
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
}

.sr-header .sr-header-center .sr-tool-link:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.sr-header .cart-link {
  width: 44px;
  height: 44px;
  min-width: 44px !important;
  border-radius: 999px;
  color: var(--color-secondary);
}

.sr-header .cart-link:hover {
  background: #f3f4f6;
  color: var(--color-primary);
}

.sr-header .cart-link svg {
  width: 24px;
  height: 24px;
}

.sr-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 0.25rem;
}

.sr-phone svg { flex: 0 0 auto; }

.sr-phone:hover { opacity: 0.8; color: var(--color-secondary); }

@media (min-width: 768px) {
  body { padding-top: 104px !important; }

  .sr-util {
    display: block;
    background: #fff;
    padding-top: 8px;
  }

  .sr-util-nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--page-margin);
    height: 24px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-sizing: border-box;
  }

  .sr-util-nav a {
    color: #6e6e8a;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .sr-util-nav a:hover { opacity: 0.7; color: #6e6e8a; background: transparent; }

  .sr-util-sep {
    width: 1px;
    height: 12px;
    background: #cbd0d6;
    display: inline-block;
  }

  .sr-header-inner { height: 72px !important; }

  .sr-header .sr-logo {
    height: 52px;
    max-width: 190px;
  }

  .sr-header .sr-wordmark {
    max-width: none;
    white-space: nowrap;
    font-size: 1.05rem;
  }
}

@media (min-width: 1280px) {
  .sr-phone { display: inline-flex; }
}

@media (max-width: 900px) {
  .sr-header-center a:not([href="/contact.html"]) {
    display: none !important;
  }

  .sr-header-center {
    justify-content: center;
    gap: 0;
  }

  body:not(.tool-only) .sr-header-center a[href="/contact.html"],
  body.tool-only .sr-header-center a[href="/contact.html"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 1rem;
    border-radius: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
  }

  body:not(.tool-only) .sr-header-center a[href="/contact.html"]:hover,
  body.tool-only .sr-header-center a[href="/contact.html"]:hover {
    background: var(--color-primary-dark);
    color: #fff;
  }
}

/* Boutons — rayon xl, violet, survol bleu nuit */
.hero-cta,
.hero-cta-secondary,
.collectivites-cta,
.compliance-cta,
.pf-btn-primary,
.pf-btn-outline,
.btn:not(.product-choice) {
  border-radius: 0.75rem;
  font-weight: 600;
}

.hero-cta {
  background: var(--color-accent);
  color: var(--color-secondary);
  min-height: 48px;
  box-shadow: none;
}

.hero-cta:hover {
  background: var(--color-accent);
  filter: brightness(0.96);
  transform: translateY(-2px);
  box-shadow: none;
}

.hero-cta-secondary {
  font-weight: 600;
  border-radius: 0.75rem;
}

.hero-main-title { font-weight: 700; }

a.btn.btn-primary,
button.btn:not(.btn-outline):not(.product-choice):not(.office-choice):not(.dim-preset):not(.qty-btn),
.step-next-btn,
.collectivites-cta,
.compliance-cta,
.pf-btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 600;
}

a.btn.btn-primary:hover,
button.btn:not(.btn-outline):not(.product-choice):not(.office-choice):not(.dim-preset):not(.qty-btn):hover,
.step-next-btn:hover,
.collectivites-cta:hover,
.compliance-cta:hover,
.pf-btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}

.btn.btn-outline,
a.btn-outline,
.pf-btn-outline {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-violet-border);
  font-weight: 600;
}

.btn.btn-outline:hover,
a.btn-outline:hover,
.pf-btn-outline:hover {
  background: var(--color-violet-soft);
  color: var(--color-primary);
}

.office-choice.selected,
.office-choice.selected:hover,
.lot-toggle button.selected,
.lot-toggle button.selected:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

/* Cartes — fond blanc, rayon 16px, ombre douce, sans soulèvement */
.card,
.pf-card-block,
.pf-card,
.pf-legal-card,
.process-item,
.collectivites-item,
.compliance-card,
.cart-card,
.faq-answer-card,
.summary-item {
  border-radius: 1rem;
}

.card,
.pf-card-block,
.pf-legal-card {
  box-shadow: 0 10px 24px rgba(14, 14, 82, 0.08);
}

.card:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(14, 14, 82, 0.08);
  border-color: transparent;
}

body:not(.tool-only) .wizard-card,
body:not(.tool-only) .wizard-card:hover,
.trust-bar-section,
.trust-bar-section:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  border-color: transparent;
}

.process-item,
.collectivites-item,
.compliance-card {
  border: 1px solid var(--color-violet-border);
  box-shadow: 0 8px 18px rgba(89, 54, 246, 0.08);
  background: #fff;
}

.collectivites-highlight {
  background: var(--color-surface);
  border: 1px solid var(--color-violet-border);
  border-radius: 1.25rem;
}

.pf-page {
  background: var(--color-surface);
  padding-top: 1.25rem;
}

.pf-page-qui { padding-top: 1.25rem; }

@media (min-width: 768px) {
  .pf-page,
  .pf-page-qui { padding-top: 1.75rem; }
}

.wrap > .card { margin-bottom: 1.5rem; }

input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea,
.pf-input,
.field {
  border-radius: 0.75rem;
  border-color: #d1d5db;
}

input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus,
.pf-input:focus,
.field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(89, 54, 246, 0.2);
}

/* Footer bleu nuit */
.sr-footer {
  margin-top: 2.5rem;
  background: #0e0e52;
  color: #fff;
}

.sr-footer-inner {
  max-width: 1600px;
  padding: 2rem var(--page-margin) 1.5rem !important;
  box-sizing: border-box;
}

.sr-footer-grid { gap: 1.5rem 2rem; margin-bottom: 1.25rem; }

.sr-footer-title {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.sr-footer-col a {
  color: #fff;
  opacity: 1;
  font-size: 0.875rem;
  text-decoration: none;
}

.sr-footer-col a:hover {
  color: #5936f6;
  opacity: 1;
  text-decoration: none;
}

.sr-footer-supply {
  margin: 0.5rem 0 1.25rem;
  text-align: center;
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.sr-footer-supply a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-footer-supply a:hover { color: var(--color-accent); }

.sr-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1.5rem;
}

.sr-footer-copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  line-height: 1.45;
  opacity: 1;
}

.sr-footer-brand .sr-logo-footer {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  line-height: 0;
  text-decoration: none;
}

.sr-footer-brand .sr-logo {
  height: 36px;
  max-width: 148px;
}

.sr-footer-brand .sr-wordmark-footer {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.sr-footer-brand .sr-wordmark-footer:hover {
  color: #fff;
  opacity: 0.85;
}

.sr-footer-badges img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.sr-footer-social {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #fff;
}

.sr-footer-social:hover { opacity: 0.8; border-color: transparent; }

@media (min-width: 768px) {
  .sr-footer-inner { padding: 3rem var(--page-margin) 2.5rem !important; }
  .sr-footer-badges img { width: 56px; height: 56px; }
  .sr-footer-brand .sr-logo { height: 44px; max-width: 176px; }
}
