:root {
  color-scheme: light;
  --violet: #5530f5;
  --violet-deep: #3a1ccf;
  --night: #17102b;
  --night-soft: #241a40;
  --paper: #f8f6ff;
  --muted: #5f577a;
  --lavender: #cfc4ff;
  --pink: #ffc2ea;
  --gold: #ffd66b;
  --hero-gradient: radial-gradient(ellipse at 50% 38%, #6844f2, #4d2bd5 48%, #321893);
  --line: #e2dcf5;
  --content-width: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-gap: clamp(44px, 7vw, 88px);
  --radius-large: clamp(30px, 4.5vw, 56px);
  --display: "Bricolage Grotesque", Arial, sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--night);
  font: 400 17px/1.6 var(--text);
}

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}

h2 { font-size: clamp(30px, 4.3vw, 54px); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}

.wrap {
  width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  transform: translateY(-180%);
  background: #fff;
}

.skip-link:focus { transform: none; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.button:hover { background: var(--violet-deep); }
.button-light { background: #fff; color: var(--violet-deep); }
.button-lavender { background: var(--lavender); color: var(--night); }

.button-light:hover, .button-lavender:hover {
  background: var(--gold);
  color: var(--night);
}

.inline-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Menu */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  padding-block: 12px;
  background: var(--violet);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 10px 8px 26px;
  border-radius: 999px;
  background: #f4f0ff;
  box-shadow: 0 10px 40px #1c0f6a26;
}

.logo {
  display: inline-flex;
  flex: none;
  color: var(--violet);
  font: 800 26px/1 var(--display);
  letter-spacing: -.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 28px);
  font-size: 15px;
  font-weight: 650;
}

.main-nav a:not(.button):hover { color: var(--violet-deep); }

.menu-toggle {
  display: none;
  min-height: 44px;
  padding-inline: 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--night);
  font-weight: 650;
  cursor: pointer;
}

/* Premier écran */
.intro {
  overflow: hidden;
  padding: clamp(38px, 5.2vw, 78px) 0 clamp(82px, 8vw, 108px);
  background: var(--violet);
  color: #fff;
}

.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.intro h1 {
  max-width: 19ch;
  font-size: clamp(40px, 5.2vw, 72px);
  text-wrap: balance;
}

.intro-copy {
  max-width: 56ch;
  margin-top: 18px;
  color: #f4efff;
}

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
}

.intro-location {
  margin-top: 18px;
  color: #f4efff;
  font-size: 16px;
}





/* Prestations */
.services {
  position: relative;
  z-index: 1;
  margin-top: -44px;
  padding-block: 14px;
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  background: var(--night);
  color: #fff;
}

.service + .service { border-top: 1px solid #ffffff26; }

.service-summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

.service-summary::-webkit-details-marker,
.step summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.service-summary:focus-visible { outline-offset: -5px; }

.service-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: 16px;
  padding-block: clamp(16px, 2.5vw, 26px);
}

.service-title {
  font: 700 clamp(22px, 3vw, 38px)/1.14 var(--display);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.disclosure-icon {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--violet-deep);
}

.disclosure-icon::before,
.disclosure-icon::after {
  position: absolute;
  inset: 0;
  width: 13px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.disclosure-icon::after { transform: rotate(90deg); }
details[open] > summary .disclosure-icon::after { transform: none; }

.service .disclosure-icon {
  justify-self: end;
  align-self: center;
  border-color: #ffffff40;
  color: var(--lavender);
}

.service-summary:hover .disclosure-icon,
.service[open] .disclosure-icon {
  background: #ffffff12;
}

.service-body {
  padding-bottom: clamp(24px, 4vw, 38px);
  color: #e3dcf2;
}

.service-body > p { max-width: 66ch; }

.service-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 17px 0 19px;
  padding: 0;
  list-style: none;
}

.service-points li {
  padding: 8px 14px;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  background: var(--night-soft);
  color: #f1ebff;
  font-size: 15px;
  line-height: 1.4;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

/* Diagnostic et agence */
.diagnostic {
  padding: 22px 0 var(--section-gap);
  background: var(--night);
}

.diagnostic-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 5vw, 56px);
  padding: clamp(22px, 5vw, 54px);
  border-radius: var(--radius-large);
  background: linear-gradient(120deg, var(--lavender), var(--pink) 55%, var(--gold));
}

.diagnostic p { margin-top: 16px; color: #2c2150; }

.diagnostic-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diagnostic-list li {
  padding: 13px 17px;
  border-radius: 16px;
  background: #ffffffbb;
}

.method, .faq {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(20px, 5vw, 64px);
}

.method, .steps, .faq, .contact { margin-top: var(--section-gap); }
.method p, .step p, .faq-list p { color: var(--muted); }
.method p + p { margin-top: 14px; }

/* Étapes et FAQ */
.steps h2 { margin-bottom: 22px; }

.step, .faq-list details { border-bottom: 1px solid var(--line); }

.step:first-child,
.faq-list details:first-child { border-top: 1px solid var(--line); }

.step summary,
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding-block: 11px;
  list-style: none;
  font: 650 clamp(17px, 2vw, 22px)/1.25 var(--display);
  cursor: pointer;
}

.step .disclosure-icon,
.faq-list .disclosure-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  background: #eae3ff;
}

.step-number {
  flex: 0 0 2ch;
  color: var(--violet-deep);
  font-variant-numeric: tabular-nums;
}

.step p, .faq-list details p {
  max-width: 64ch;
  padding-bottom: 18px;
}

/* Devis */
.contact { margin-bottom: var(--section-gap); }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(24px, 4.5vw, 58px);
  padding: clamp(20px, 4.5vw, 56px);
  border-radius: var(--radius-large);
  background: var(--night);
  color: #fff;
}

.contact-copy { align-self: center; }
.contact-copy p { margin-top: 15px; color: #e3dcf2; }

.quote-includes {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 22px;
  color: #e3dcf2;
}

.quote-includes li::marker { color: var(--lavender); }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 260px);
  margin-top: 22px;
}

.whatsapp-action { background: #5530f5; }

.whatsapp-action img,
.mobile-contact-bar img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.quote-form {
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  border-radius: 24px;
  background: #fff;
  color: var(--night);
}

.quote-form h3 {
  margin-bottom: 17px;
  font-size: clamp(24px, 3vw, 34px);
}

.quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quote-full { grid-column: 1 / -1; }

.quote-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 650;
}

.quote-form input:not([type="hidden"]):not([type="checkbox"]),
.quote-form select,
.quote-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #857aa6;
  border-radius: 12px;
  background: #faf8ff;
  color: var(--night);
  font-size: 16px;
}

.quote-form select { text-overflow: ellipsis; }
.quote-form textarea { resize: vertical; }
.quote-extra { margin-top: 9px; }

.quote-extra summary {
  padding-block: 9px;
  color: var(--violet-deep);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.quote-extra[open] .quote-fields { padding-block: 5px 10px; }

.quote-submit {
  width: 100%;
  margin-top: 12px;
}

.quote-submit:disabled {
  opacity: .72;
  cursor: wait;
}

.quote-note, .quote-status {
  color: var(--muted);
  font-size: 14px;
}

.quote-note { margin-top: 12px; }

.quote-note a {
  color: var(--violet-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quote-status:not(:empty) {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4efff;
}

.quote-status[data-state="success"] {
  background: #e7f6ee;
  color: #175337;
}

.quote-status[data-state="error"] {
  background: #fff0f0;
  color: #862638;
}

/* Pied de page et contacts mobiles */
.site-footer {
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner, .footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-inner { justify-content: space-between; }
.footer-links a:hover { color: var(--violet-deep); }
.mobile-contact-bar { display: none; }

.intro :focus-visible,
.services :focus-visible,
.contact-copy :focus-visible,
.mobile-contact-bar :focus-visible {
  outline-color: var(--gold);
}

/* Grille commune pour l’agence, les étapes et la FAQ */
.method,
.steps,
.faq {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
}

.method > h2,
.steps > h2,
.faq > h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(30px, 3.6vw, 48px);
  text-wrap: balance;
}

.steps-list,
.faq-list {
  min-width: 0;
}

/* Alignement des titres et des icônes */
.step > summary,
.faq-list summary {
  display: grid;
  align-items: center;
  gap: 12px;
}

.step > summary {
  grid-template-columns: 2ch minmax(0, 1fr) 34px;
}

.faq-list summary {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.step .disclosure-icon,
.faq-list .disclosure-icon {
  justify-self: end;
  margin-left: 0;
}

.step > p {
  padding-inline-start: calc(2ch + 12px);
}

/* Tablette et mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav.is-enhanced {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 75dvh;
    overflow-y: auto;
    padding: 10px 16px 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 36px #1c0f6a30;
  }

  .main-nav.is-enhanced.is-open {
    display: flex;
  }

  .main-nav.is-enhanced > a:not(.button) {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-enhanced .header-action {
    margin-top: 12px;
  }

  .diagnostic-inner,
  .contact-inner,
  .method,
  .steps,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .method,
  .steps,
  .faq {
    gap: 18px;
  }

  .method > h2,
  .steps > h2,
  .faq > h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 92px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }

  .header-inner {
    padding-left: 19px;
  }

  .intro-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-actions {
    margin-top: 18px;
  }

  .service-title {
    font-size: clamp(21px, 5.6vw, 30px);
  }

  .contact-actions {
    width: 100%;
  }

  .site-footer {
    padding-right: 52px;
    padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-contact-bar {
    position: fixed;
    z-index: 25;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-contact-bar a {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    background: #5530f5;
    box-shadow: 0 4px 12px #24183f40;
  }
}

@media (max-width: 580px) {
  .quote-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
.site-header { background: transparent; }
.intro {
  --header-overlap: 110px;
  margin-top: calc(-1 * var(--header-overlap));
  padding: calc(var(--header-overlap) + clamp(50px, 7vw, 100px)) 0 clamp(90px, 10vw, 140px);
  background: var(--hero-gradient);
  text-align: center;
}
.intro-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
.intro h1 { max-width: 24ch; margin-inline: auto; text-wrap: balance; }
.intro-copy { max-width: 58ch; margin: 22px auto 0; }
.intro-actions { justify-content: center; }
.intro-location { margin-inline: auto; text-wrap: balance; }
.brush-circle, .brush-underline { position: relative; display: inline-block; white-space: nowrap; }
.brush-circle svg {
  position: absolute;
  inset: -.13em auto auto -.18em;
  width: calc(100% + .36em);
  height: calc(100% + .26em);
  overflow: visible;
  pointer-events: none;
  transform: rotate(-5deg);
}
.brush-underline::after { position: absolute; pointer-events: none; content: ""; }
.brush-circle path {
  fill: none;
  stroke: #ffd66b;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
@media (max-width: 720px) {
  .intro { --header-overlap: calc(100px + env(safe-area-inset-top, 0px)); }
  .intro h1 { font-size: clamp(33px, 8.5vw, 48px); }
  .intro-actions .button { width: min(100%, 320px); }
}

/* Palette commune */
:root {
  --brand-yellow: var(--gold);
  --brand-yellow-hover: #ffe391;
  --brand-yellow-pressed: #f4c451;
  --brand-ink: #21143d;
  --brand-white: #fff;
  --brand-white-hover: #f3efff;
}

/* Devis : même couleur dans le menu, le hero, les offres et le formulaire */
.site-header .header-action,
.intro .brush-cta,
.services .service-actions .button-lavender,
.quote-form .quote-submit {
  background-color: var(--brand-yellow);
  color: var(--brand-ink);
}

.site-header .header-action:hover,
.intro .brush-cta:hover,
.services .service-actions .button-lavender:hover,
.quote-form .quote-submit:hover:not(:disabled) {
  background-color: var(--brand-yellow-hover);
  color: var(--brand-ink);
}

.site-header .header-action:active,
.intro .brush-cta:active,
.services .service-actions .button-lavender:active,
.quote-form .quote-submit:active:not(:disabled) {
  background-color: var(--brand-yellow-pressed);
}

/* Boutons secondaires */
.intro .services-cta,
.contact-actions .button-light {
  background-color: var(--brand-white);
  color: #111;
}

.intro .services-cta:hover,
.contact-actions .button-light:hover {
  background-color: var(--brand-white-hover);
  color: #111;
}

/* Le même jaune pour les deux marques à main levée */
.intro .brush-circle path {
  stroke: var(--brand-yellow);
}

.intro .brush-underline {
  isolation: isolate;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  padding-inline: .09em;
  color: var(--brand-ink);
}

.intro .brush-underline::after {
  inset: 12% -.04em 5%;
  height: auto;
  z-index: -1;
  border-radius: .08em .06em .09em .04em;
  background: var(--brand-yellow);
  transform: rotate(-2deg);
}

.intro .brush-cta::after {
  display: none;
}

/* Focus visible sur les boutons jaunes et blancs, même sur fond sombre */
.site-header .header-action:focus-visible,
.intro .intro-actions .button:focus-visible,
.services .service-actions .button:focus-visible,
.contact-actions .button-light:focus-visible,
.quote-form .quote-submit:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--brand-white);
}

/* Pages légales */
.legal-site .legal-container {
  width: min(860px, calc(100% - 2 * var(--gutter)));
  margin: clamp(30px, 7vw, 82px) auto;
  overflow-wrap: anywhere;
}

.legal-site .legal-heading { margin-bottom: 26px; }

.legal-site .legal-heading h1 {
  font-size: clamp(34px, 7vw, 60px);
  margin-block: 8px 14px;
}

.legal-site .section-kicker,
.legal-site .legal-updated {
  color: var(--muted);
  font-size: 15px;
}

.legal-site .legal-block {
  padding: clamp(18px, 4vw, 32px);
  background: var(--brand-white);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.legal-site .legal-block + .legal-block { margin-top: 12px; }
.legal-site .legal-block h2 { font-size: clamp(23px, 4vw, 32px); margin-bottom: 12px; }
.legal-site .legal-copy p + p { margin-top: 10px; }
.legal-site .legal-copy ul { padding-inline-start: 1.3em; }

.legal-site .legal-copy a {
  color: var(--violet-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-site .legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-site .legal-actions { margin-top: 24px; }


.legal-site .button-primary { background: var(--brand-yellow); color: var(--brand-ink); }
.legal-site .button-primary:hover { background: var(--brand-yellow-hover); }
.legal-site .button-ghost { background: var(--brand-white); color: var(--violet-deep); border: 1px solid var(--line); }
.legal-site .button-ghost:hover { background: var(--brand-white-hover); }


/* En-tête des pages légales sur le même dégradé que l’accueil. */
.legal-site .legal-intro {
  padding-bottom: clamp(32px, 5vw, 60px);
}

.legal-site .legal-heading { margin-bottom: 0; }
.legal-site .legal-heading h1 { max-width: 100%; }
.legal-site .legal-intro .section-kicker,
.legal-site .legal-intro .legal-updated { color: #f4efff; }
.legal-site .legal-back { margin-top: 12px; }

.footer-links [aria-current="page"] {
  color: var(--violet-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Fil d’Ariane */
main > .intro {
  padding-block-start: calc(var(--header-overlap) + clamp(18px, 3vw, 34px));
}

.breadcrumbs {
  margin-block: 0 clamp(22px, 4vw, 48px);
  color: #f4efff;
  font: 500 14px/1.45 var(--text);
  text-align: start;
}

.breadcrumbs ol {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.breadcrumbs li { flex: none; }

.breadcrumbs li + li::before {
  content: "›" / "";
  margin-inline-end: 8px;
}

.breadcrumbs [aria-current="page"] {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}


/* Compléments structurels conservés pour OLDHUP */
.logo img {
  display: block;
  height: 48px;
  width: auto;
}
.footer-brand .logo img { height: 58px; }
.intro h1 { font-weight: 800; }
.name-story {
  display: grid;
  grid-template-columns: minmax(100px, 160px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
  margin-block: 2rem;
  padding: clamp(18px, 3vw, 32px);
  border-radius: 24px;
  background: #f0eaff;
}
.name-story img { width: 100%; height: auto; }
.oldhup-story .name-story h2 { margin-top: 0; }
.name-story p + p { margin-top: .8em; }
@media (max-width: 680px) {
  .logo img { height: 40px; }
  .name-story { grid-template-columns: minmax(0, 1fr); }
  .name-story img { width: 110px; }
}

.site-header .logo img { height: clamp(50px, 6vw, 68px); width: auto; }
@media (min-width: 901px) {
  .header-inner { padding-inline: 16px; }
  .header-inner .main-nav { flex: 1; justify-content: center; gap: clamp(10px, 1.4vw, 24px); }
  .main-nav .header-action { margin-left: auto; }
  .main-nav > a:first-child { margin-left: auto; }
}
@media (min-width: 1150px) {
  .header-inner { justify-content: center; }
  .header-inner .logo { position: absolute; left: 20px; }
  .header-inner .main-nav { min-height: 68px; padding-inline: 216px; }
  .main-nav .header-action { position: absolute; right: 16px; }
  .main-nav > a:first-child { margin-left: 0; }
}



/* OLDHUP — grilles complètes sur ordinateur, glissement + points sur mobile */
[data-carousel] { min-width: 0; }
.oldhup-carousel-dots { display: none; }
/* Outils : fond et cartes blancs, textes lisibles. */
#outils { background: #fff; border-radius: 24px; padding-inline: clamp(18px, 3vw, 32px); }
#cartes-outils > .oldhup-tool {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line, #e2dcf5);
  border-radius: 24px; background: #fff; color: var(--night, #17102b);
  box-shadow: 0 8px 22px #17102b0d;
}
#cartes-outils .oldhup-tool h3 { color: var(--night, #17102b); }
#cartes-outils .oldhup-tool p { color: var(--muted, #5f577a); }
#cartes-outils .oldhup-tool img {
  display: block; width: auto; height: auto; max-width: 200px; max-height: 72px;
  object-fit: contain; padding: 7px 10px; border-radius: 10px; background: #fff;
}
/* Cartes de prestations sur 3 colonnes sans masquage en desktop */
#cartes-prestations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) and (min-width: 721px) {
  #cartes-prestations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  [data-carousel].oldhup-carousel-mobile {
    display: flex !important; flex-wrap: nowrap !important; align-items: stretch;
    gap: 14px !important; width: 100%; max-width: 100%;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    scroll-padding-inline: 1px; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 4px 1px 12px; margin-inline: 0;
  }
  [data-carousel].oldhup-carousel-mobile::-webkit-scrollbar { display: none; }
  [data-carousel].oldhup-carousel-mobile > * {
    flex: 0 0 calc(100% - 2px) !important; min-width: 0 !important;
    max-width: none !important; scroll-snap-align: start;
  }
  .oldhup-carousel-dots {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 11px; padding: 7px 0 18px; margin: 0 0 18px;
  }
  .oldhup-carousel-dot {
    width: 12px; height: 12px; min-width: 12px; padding: 0;
    border: 1.5px solid var(--violet); border-radius: 999px;
    background: transparent; cursor: pointer;
  }
  .oldhup-carousel-dot[aria-current="true"] {
    background: var(--violet); box-shadow: 0 0 0 2px #5530f526;
  }
  .oldhup-carousel-dot:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 4px; }
}
/* Bloc Conseils sur la page d’accueil : carte violette, texte blanc, bouton jaune */
.home-guides {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 22px;
  margin-top: var(--section-gap); padding: clamp(24px, 4vw, 46px);
  border-radius: clamp(22px, 3vw, 36px);
  background: #5530f5;
  color: #fff;
}
.home-guides > div { flex: 1 1 340px; min-width: 0; }
.home-guides h2 { color: #fff; font-size: clamp(26px, 4vw, 46px); }
.home-guides p { margin-top: 12px; color: #f4efff; }
.home-guides .button { flex: none; background: var(--brand-yellow); color: var(--brand-ink); }
.home-guides .button:hover { background: var(--brand-yellow-hover); color: var(--brand-ink); }
@media (max-width: 600px) {
  .home-guides { flex-direction: column; align-items: stretch; }
  .home-guides > div { flex-basis: auto; }
  .home-guides .button { align-self: flex-start; }
}

/* Logo officiel OLDHUP : format horizontal, toujours proportionnel. */
.site-header .logo img { width: auto; max-width: min(36vw, 210px); height: auto; max-height: 68px; object-fit: contain; }
.footer-brand .logo img { width: auto; max-width: 210px; height: auto; max-height: 58px; object-fit: contain; }
@media (max-width: 720px) { .site-header .logo img { max-width: min(42vw, 172px); max-height: 48px; } }


/* OLDHUP — en-tête : logo 45px minimum, navigation alignée à droite, sans CTA */
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);
  min-height: 68px;
  padding: 8px clamp(16px, 2.5vw, 28px);
}
.site-header .header-inner > .logo {
  position: static;
  flex: 0 0 auto;
  margin: 0;
}
.site-header .logo img {
  display: block;
  width: auto;
  height: 54px;
  min-height: 45px;
  max-height: none;
  max-width: none;
  object-fit: contain;
}
.site-header .header-inner > .main-nav {
  flex: 0 1 auto;
  min-height: 0;
  width: auto;
  margin-left: auto;
  padding: 0;
  justify-content: flex-end;
  gap: clamp(12px, 1.7vw, 26px);
}
.site-header .main-nav > a:first-child { margin-left: 0; }
@media (max-width: 900px) {
  .site-header .header-inner { gap: 12px; min-height: 62px; }
  .site-header .logo img { height: 45px; min-height: 45px; max-width: none; }
  .site-header .menu-toggle { margin-left: auto; flex: 0 0 auto; }
  .site-header .header-inner > .main-nav.is-enhanced {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    width: auto;
    margin: 0;
    padding: 10px 16px 16px;
    align-items: stretch;
    justify-content: flex-start;
  }
}

/* OLDHUP — en-tête (v26) : navigation transparente sur le violet, bouton devis jaune.
   Ce bloc remplace les trois définitions précédentes du header. */
.site-header { padding-block: 20px; transition: background-color .2s ease, box-shadow .2s ease, padding .2s ease; }
.site-header.is-scrolled { padding-block: 10px; background: var(--violet); box-shadow: 0 8px 24px #1c0f6a40; }
.site-header .header-inner {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-header .logo img { height: 44px; min-height: 0; filter: brightness(0) invert(1); }
.site-header .header-inner > .main-nav { gap: clamp(16px, 2.2vw, 30px); font-size: 15px; }
.site-header .main-nav > a:not(.button) { color: #fff; }
.site-header .main-nav > a:not(.button):hover { color: var(--brand-yellow); }
.site-header .main-nav .header-action {
  position: static;
  margin-left: 6px;
  min-height: 44px;
  padding: 8px 20px;
}

@media (max-width: 900px) {
  .site-header .logo img { height: 38px; }
  .site-header .main-nav.is-enhanced > a:not(.button) { color: var(--night); }
  .site-header .main-nav.is-enhanced > a:not(.button):hover { color: var(--violet-deep); }
  .site-header .main-nav.is-enhanced .header-action { margin-left: 0; }
}
.site-header .logo { margin-left: -9px; }

/* OLDHUP — hero avec illustration (accueil) */
.hero-art { margin-top: 36px; }
.hero-art img { display: block; width: min(100%, 460px); height: auto; margin-inline: auto; }
@media (min-width: 1000px) {
  .intro-inner.hero-split {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    text-align: left;
  }
  .hero-split .hero-text h1 { max-width: none; margin-inline: 0; font-size: clamp(42px, 4.7vw, 68px); text-wrap: balance; }
  .hero-split .intro-copy { margin-inline: 0; }
  .hero-split .intro-actions { justify-content: flex-start; }
  .hero-art { margin-top: 0; }
  .hero-art img { width: 100%; max-width: 560px; margin-inline: 0 auto; }
}

/* Sommaire et liste des guides */
.guides-library {
  display: grid;
  grid-template-columns: minmax(215px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  margin-block: clamp(30px, 5vw, 68px) var(--section-gap);
}

.guides-nav {
  padding: clamp(16px, 2vw, 24px);
  border-radius: 24px;
  background: #5530f5;
  color: #fff;
}

.guides-nav h2 {
  margin: 0 8px 12px;
  font-size: 25px;
}

.guides-nav ul,
.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guides-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}

.guides-nav a:hover,
.guides-nav a:focus-visible,
.guides-library:has(#sites-internet:target) a[href="#sites-internet"],
.guides-library:has(#visibilite-locale:target) a[href="#visibilite-locale"],
.guides-library:has(#publicite-google:target) a[href="#publicite-google"],
.guides-library:has(#mesure-resultats:target) a[href="#mesure-resultats"] {
  background: var(--gold);
  color: var(--night);
}

.guides-nav a:focus-visible {
  outline-color: #fff;
  outline-offset: 2px;
}

.guides-nav a span {
  flex: none;
}

.guide-topic + .guide-topic {
  margin-top: clamp(32px, 5vw, 56px);
}

.guide-topic h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 3vw, 38px);
}

.guide-list {
  padding-inline: clamp(14px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.guide-list li + li {
  border-top: 1px solid var(--line);
}

.guide-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-block: 18px;
  border-radius: 4px;
}

.guide-entry:hover h3,
.guide-entry:focus-visible h3 {
  color: var(--violet-deep);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.guide-entry h3 {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.2;
}

.guide-entry p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.guide-entry small {
  display: block;
  margin-top: 8px;
  color: var(--violet-deep);
  font-size: 13px;
  font-weight: 650;
}

.guide-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--violet-deep);
}

@media (min-width: 761px) and (min-height: 550px) {
  .guides-nav {
    position: sticky;
    top: 104px;
  }
}

@media (max-width: 760px) {
  .guides-library {
    grid-template-columns: minmax(0, 1fr);
  }
}



/* Conseils : conserver les cartes blanches et le sommaire violet sur toutes les pages. */
.guides-library > div { min-width: 0; }
.guide-topic { min-width: 0; scroll-margin-top: 115px; }
.guide-entry { color: var(--night); }
@media (max-width: 1024px) {
  .guides-library { grid-template-columns: minmax(0, 1fr); }
  .guides-nav { position: static; }
}
@media (max-width: 720px) {
  .guide-list.oldhup-carousel-mobile { border: 0; padding: 4px 1px 12px; background: transparent; }
  .guide-list.oldhup-carousel-mobile > li {
    display: flex; align-items: stretch; padding: 0 17px;
    border: 1px solid var(--line); border-radius: 20px;
    background: #fff;
  }
  .guide-list.oldhup-carousel-mobile > li + li { border-top: 1px solid var(--line); }
  .guide-list.oldhup-carousel-mobile .guide-entry { width: 100%; }
}

/* OLDHUP 2026-11-22 — footer uniforme avec le header */
.site-footer {
  background: #5530f5;
  color: #fff;
  border-top: 0;
}
.site-footer .footer-brand p,
.site-footer .footer-links a { color: #fff; }
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible,
.site-footer .footer-links a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer .logo:focus-visible,
.site-footer .footer-links a:focus-visible { outline-color: #ffd66b; }


/* Logo officiel OLDHUP — appliqué à toutes les pages sans filtre colorimétrique */
.site-header .logo img, .site-footer .logo img {
  display: block;
  width: auto;
  height: 54px;
  max-width: min(56vw, 230px);
  max-height: none;
  object-fit: contain;
  filter: none;
}
.site-footer .logo img { height: 58px; }
@media (max-width: 900px) {
  .site-header .logo img { height: 45px; min-height: 45px; max-width: min(52vw, 200px); filter: none; }
}


/* OLDHUP 2026-11-22 — logo universel blanc pur, header et footer */
.site-header a.logo img,
.site-footer a.logo img,
.site-header .logo img,
.site-footer .logo img {
  filter: brightness(0) invert(1) !important;
  -webkit-filter: brightness(0) invert(1) !important;
  opacity: 1;
  visibility: visible;
  object-fit: contain;
}
.site-footer { background-color: #5530f5; }
