/* ==========================================================================
   Centre Services — shared brand system
   Mobile-first. Brand reference: the live centreservices.fr agency pages
   (cyan / navy / sand / orange, rounded display face, pill CTAs).
   City facts live in each page's inline CS_CONFIG block, never here.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --cyan: #29C4E8;
  --cyan-600: #16A9CF;
  --cyan-700: #0E88AE;
  --cyan-100: #D9F3FA;
  --cyan-50: #EFFAFE;

  --navy: #1F2B5B;
  --navy-700: #2E3C74;

  --sand: #FCE3B4;
  --sand-100: #FDF0D6;

  --orange: #F7AC2D;
  --orange-600: #EA8A0B;

  --white: #FFFFFF;

  /* Logo mark colours — the official asset's own blues, which sit slightly
     apart from the page palette above. */
  --logo-blue: #3DBBFB;
  --logo-navy: #2E3073;

  /* Neutrals, biased cool toward the navy so nothing reads as flat grey */
  --body: #4C5878;
  --body-soft: #6B7595;
  --line: rgba(31, 43, 91, 0.10);
  --line-strong: rgba(31, 43, 91, 0.18);

  /* Form */
  --field-bg: #F6F9FC;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-xl: 44px;
  --r-pill: 999px;

  --shadow-sm: 0 4px 14px -8px rgba(31, 43, 91, 0.28);
  --shadow-md: 0 14px 36px -22px rgba(31, 43, 91, 0.40);
  --shadow-lg: 0 26px 60px -34px rgba(31, 43, 91, 0.45);
  --shadow-cyan: 0 16px 34px -18px rgba(22, 169, 207, 0.65);

  --display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 20px;
  --container: 1180px;
  --dock-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* `clip` rather than `hidden`: hidden would make body a scroll container
     and break the sticky app bar. */
  overflow-x: clip;
  /* room for the mobile action dock */
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 64px;
}

/* Anchor jumps must clear the floating app bar. */
section[id],
main[id] {
  scroll-margin-top: 96px;
}

@media (min-width: 900px) {
  .section {
    padding-block: 104px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}

.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.004em;
  /* The brand's display face is slanted; Baloo 2 ships upright only, so the
     slant is synthesised to match the live site. */
  font-style: oblique 8deg;
}

h1.display {
  font-size: clamp(2.1rem, 8.2vw, 3.9rem);
}

h2.display {
  font-size: clamp(1.75rem, 6vw, 2.9rem);
}

h3 {
  font-family: var(--sans);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.35;
}

p {
  margin: 0;
}

.lede {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--body);
  max-width: 62ch;
}

@media (min-width: 900px) {
  .lede {
    font-size: 1.1rem;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-cyan {
  color: var(--cyan-700);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.section-head .lede {
  margin-inline: auto;
  margin-top: 14px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--cyan);
  color: var(--white);
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
  background: var(--cyan-600);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-navy:hover {
  background: var(--navy-700);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan-700);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-white .arrow,
.btn-outline .arrow {
  background: var(--cyan-100);
  color: var(--cyan-700);
}

/* ---------- Floating app bar ---------- */

.appbar {
  position: sticky;
  top: 10px;
  z-index: 60;
  padding-inline: var(--gutter);
  margin-top: 10px;
}

.appbar-inner {
  max-width: var(--container);
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

@media (min-width: 560px) {
  .brand {
    font-size: 1.02rem;
  }
}

/* The app bar CTA carries a short label on phones so it can sit beside
   the brand without pushing the bar past the viewport. */
.cta-long {
  display: none;
}

.cta-short {
  display: inline;
}

@media (min-width: 560px) {
  .cta-long {
    display: inline;
  }
  .cta-short {
    display: none;
  }
}

/* Centre Services logo mark — the real two-tone asset, not a tinted tile. */
.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

/* The wordmark is two-tone on the live site: "Centre" blue, "Services" navy. */
.brand-word {
  color: var(--navy);
}

.brand-centre {
  color: var(--logo-blue);
}

.brand-city {
  display: none;
  font-weight: 700;
  color: var(--cyan-700);
}

@media (min-width: 560px) {
  .brand-city {
    display: inline;
  }
}

.appbar-links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.appbar-links a {
  text-decoration: none;
}

.appbar-links a:hover {
  color: var(--cyan-700);
}

.tax-chip {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--cyan-100);
  color: var(--cyan-700);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--r-pill);
}

.appbar .btn {
  padding: 12px 20px;
  font-size: 0.9rem;
}

@media (min-width: 860px) {
  .appbar-links,
  .tax-chip {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: -74px;
  padding-top: 122px;
  padding-bottom: 56px;
  background: linear-gradient(168deg, #3ACFF0 0%, var(--cyan) 52%, #1FB3DB 100%);
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 150px;
    padding-bottom: 96px;
    border-bottom-left-radius: 72px;
    border-bottom-right-radius: 72px;
  }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  z-index: -1;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -130px;
  animation: drift 18s ease-in-out infinite;
}

.hero::after {
  width: 320px;
  height: 320px;
  bottom: -150px;
  left: -110px;
  animation: drift 22s ease-in-out infinite reverse;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero-copy {
  text-align: center;
}

@media (min-width: 940px) {
  .hero-copy {
    text-align: left;
  }
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 3px 18px rgba(12, 106, 135, 0.22);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.94);
  margin-inline: auto;
  margin-bottom: 26px;
  font-weight: 600;
}

@media (min-width: 940px) {
  .hero .lede {
    margin-inline: 0;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 26px;
}

@media (min-width: 940px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}

.rating .stars {
  color: #FFD466;
  letter-spacing: 1px;
}

/* Hero visual: layered cards standing in for the agency photography.
   Swap for real agency/manager photos when available. */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
}

.agency-card {
  width: min(100%, 380px);
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 14px;
  animation: floatY 7s ease-in-out infinite;
}

.agency-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--cyan-100), var(--sand));
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.agency-card h3 {
  font-size: 1rem;
}

.agency-card .role {
  font-size: 0.82rem;
  color: var(--body-soft);
  font-weight: 600;
}

.agency-meta {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--body);
}

.agency-meta div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.agency-meta .ico {
  color: var(--cyan-700);
  flex-shrink: 0;
}

.hero-badge {
  position: absolute;
  right: -2px;
  bottom: -14px;
  background: var(--sand);
  color: var(--navy);
  font-family: var(--display);
  font-style: oblique 8deg;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
  animation: floatY 9s ease-in-out infinite reverse;
}

/* ---------- Services ---------- */

.services {
  background: var(--sand-100);
}

.services .section-head .eyebrow {
  color: var(--orange-600);
}

/* Mobile: horizontal snap rail. Desktop: grid. */
.service-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}

.service-rail::-webkit-scrollbar {
  display: none;
}

@media (min-width: 700px) {
  .service-rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 18px;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

@media (min-width: 1040px) {
  .service-rail {
    grid-template-columns: repeat(6, 1fr);
  }
}

.service {
  scroll-snap-align: center;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (hover: hover) {
  .service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
  }
}

.service svg {
  width: 54px;
  height: 54px;
  margin-inline: auto;
  color: var(--cyan-700);
}

.service h3 {
  color: var(--navy);
}

.service p {
  font-size: 0.87rem;
  color: var(--body-soft);
}

.rail-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--body-soft);
  font-weight: 700;
  margin-top: 6px;
}

@media (min-width: 700px) {
  .rail-hint {
    display: none;
  }
}

.services-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Devis (centered wizard) ---------- */

.devis {
  background:
    radial-gradient(1100px 420px at 50% -8%, var(--cyan-50), transparent 70%),
    var(--white);
}

.quote-shell {
  max-width: 640px;
  margin-inline: auto;
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 20px 24px;
  scroll-margin-top: 110px;
}

@media (min-width: 640px) {
  .quote-form {
    padding: 34px 34px 30px;
  }
}

.wizard-progress {
  margin-bottom: 24px;
}

.wizard-progress-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-700);
  text-align: center;
  margin-bottom: 10px;
}

.wizard-progress-track {
  height: 6px;
  background: var(--cyan-50);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.wizard-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--cyan), var(--cyan-600));
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: stepIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.form-step > h3 {
  font-family: var(--display);
  font-style: oblique 8deg;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 6px;
}

.step-hint {
  text-align: center;
  font-size: 0.86rem;
  color: var(--body-soft);
  margin-bottom: 22px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.option-grid-3col {
  grid-template-columns: repeat(2, 1fr);
}

.option-grid-compact {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 560px) {
  .option-grid {
    gap: 12px;
  }
  .option-grid-3col {
    grid-template-columns: repeat(3, 1fr);
  }
  .option-grid-compact {
    grid-template-columns: repeat(5, 1fr);
  }
}

.option-card {
  position: relative;
  display: block;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 64px;
  padding: 16px 10px;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  background: var(--field-bg);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.2s ease;
}

.option-card-inner svg {
  width: 38px;
  height: 38px;
  color: var(--cyan-700);
}

@media (hover: hover) {
  .option-card-inner:hover {
    background: var(--white);
    border-color: var(--cyan-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
}

.option-card-inner:active {
  transform: scale(0.97);
}

.option-card input:checked + .option-card-inner {
  border-color: var(--cyan);
  background: var(--cyan-50);
  color: var(--cyan-700);
  box-shadow: var(--shadow-cyan);
}

.option-card input:focus-visible + .option-card-inner {
  outline: 3px solid var(--cyan-600);
  outline-offset: 3px;
}

.option-grid-compact .option-card-inner {
  min-height: 52px;
  padding: 12px 6px;
  font-size: 0.92rem;
}

/* Contact step fields */

.field {
  margin-bottom: 16px;
  text-align: left;
}

.field label,
.field-row label,
.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 7px;
}

.field-row {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 520px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  padding: 14px 16px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  background: var(--field-bg);
  transition: border-color 0.16s ease, background 0.16s ease;
}

select {
  appearance: none;
  cursor: pointer;
  /* chevron drawn inline so the control needs no image asset */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%231F2B5B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

input::placeholder,
textarea::placeholder {
  color: #9AA3BD;
  font-weight: 500;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--white);
}

textarea {
  resize: vertical;
  min-height: 92px;
}

.civility {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.civility .option-card-inner {
  min-height: 0;
  padding: 12px;
  flex-direction: row;
}

.required-note {
  font-size: 0.76rem;
  color: var(--body-soft);
  margin-top: 4px;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.wizard-back {
  background: none;
  border: none;
  padding: 10px 6px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--body-soft);
  cursor: pointer;
}

.wizard-back:hover {
  color: var(--cyan-700);
}

#wizard-submit {
  width: 100%;
  margin-top: 6px;
}

.wizard-error,
.form-status {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.wizard-error {
  display: none;
  background: #FDECEC;
  color: #C0392B;
}

.wizard-error.is-visible {
  display: block;
}

.form-status {
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: var(--cyan-50);
  color: var(--cyan-700);
}

.form-status.is-error {
  background: #FDECEC;
  color: #C0392B;
}

.reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 22px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--body-soft);
}

.reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------- Crédit d'impôt band ---------- */

.tax {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%);
  border-radius: var(--r-xl);
  color: var(--white);
  padding: 40px 24px;
  display: grid;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .tax {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 56px 52px;
    gap: 48px;
  }
}

.tax-figure {
  font-family: var(--display);
  font-style: oblique 8deg;
  font-weight: 800;
  font-size: clamp(3.2rem, 15vw, 6rem);
  line-height: 0.95;
  color: var(--white);
  text-align: center;
}

.tax-figure small {
  display: block;
  font-size: clamp(1.1rem, 4.4vw, 1.7rem);
  line-height: 1.15;
  margin-top: 6px;
}

.tax h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.tax p {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.tax-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.tax-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
}

.tax-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

/* ---------- Process steps ---------- */

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

@media (min-width: 620px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 20px;
  display: grid;
  gap: 8px;
  align-content: start;
  position: relative;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan-100);
  color: var(--cyan-700);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  color: var(--navy);
}

.step p {
  font-size: 0.88rem;
  color: var(--body-soft);
}

/* ---------- Agency / contact ---------- */

.agence {
  background: var(--cyan-50);
}

.agence-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 22px;
  display: grid;
  gap: 22px;
  text-align: center;
}

@media (min-width: 820px) {
  .agence-card {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
    padding: 34px 38px;
    gap: 32px;
  }
}

.agence-card .avatar {
  width: 76px;
  height: 76px;
  font-size: 1.3rem;
  margin-inline: auto;
}

.agence-card h2 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.agence-contact {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--body);
}

.agence-contact a {
  color: var(--cyan-700);
  text-decoration: none;
}

.agence-actions {
  display: grid;
  gap: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 40px;
  font-size: 0.85rem;
}

.site-footer .container {
  display: grid;
  gap: 14px;
  text-align: center;
}

@media (min-width: 760px) {
  .site-footer .container {
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: center;
  }
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}

@media (min-width: 760px) {
  .footer-links {
    justify-content: flex-end;
  }
}

/* The hero rating is a link to the Google listing. */
a.rating {
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

a.rating:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* ---------- Mobile action dock ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dock.is-visible {
  transform: translateY(0);
}

.dock .btn {
  padding: 14px 20px;
}

.dock-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cyan-50);
  color: var(--cyan-700);
  text-decoration: none;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .dock {
    display: none;
  }
}

/* ---------- Desktop side rail ---------- */

.rail {
  display: none;
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  gap: 10px;
}

@media (min-width: 1240px) {
  .rail {
    display: grid;
  }
}

.rail a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--cyan-700);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rail a:hover {
  background: var(--cyan);
  color: var(--white);
  transform: translateX(-3px);
}

/* ---------- PWA install prompt ---------- */

.install {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--dock-h) + 14px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
}

.install.is-visible {
  display: flex;
  animation: stepIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.install p {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
}

.install .btn {
  padding: 10px 16px;
  font-size: 0.84rem;
}

.install-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 900px) {
  .install {
    left: auto;
    right: 22px;
    bottom: 22px;
    max-width: 380px;
  }
}

/* ---------- Devis invite band (opens the modal) ---------- */

.invite {
  background: linear-gradient(160deg, #3ACFF0, var(--cyan) 55%, #1FB3DB);
  border-radius: var(--r-xl);
  padding: 40px 24px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .invite {
    padding: 64px 48px;
  }
}

.invite::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -160px;
  right: -120px;
}

.invite > * {
  position: relative;
}

.invite h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.invite p {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 26px;
}

.invite .btn {
  font-size: 1.02rem;
  padding: 17px 32px;
}

.invite-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 24px;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Social proof ---------- */

.proof {
  display: grid;
  gap: 16px;
}

@media (min-width: 780px) {
  .proof {
    grid-template-columns: 1fr 1fr;
  }
}

.proof-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .proof-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--cyan-100);
  }
}

.proof-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.2rem;
}

.proof-logo.google {
  background: var(--cyan-50);
  color: var(--cyan-700);
}

.proof-logo.insta {
  background: linear-gradient(45deg, #F9CE34, #EE2A7B 50%, #6228D7);
  color: var(--white);
}

.proof-body {
  min-width: 0;
}

.proof-card h3 {
  color: var(--navy);
  margin-bottom: 2px;
}

.proof-card p {
  font-size: 0.86rem;
  color: var(--body-soft);
  font-weight: 600;
}

.proof-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.proof-score strong {
  font-family: var(--display);
  font-style: oblique 8deg;
  font-size: 1.6rem;
  color: var(--navy);
  line-height: 1;
}

.proof-score .stars {
  color: #F5B400;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.proof-go {
  margin-left: auto;
  color: var(--cyan-700);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Devis modal ---------- */

.modal {
  display: none;
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
}

.modal[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal::backdrop {
  background: rgba(11, 37, 61, 0.55);
  backdrop-filter: blur(4px);
}

@media (min-width: 900px) {
  .modal[open] {
    align-items: center;
    padding: 24px;
  }
}

.modal-shell {
  position: relative;
  width: 100%;
  max-height: 94vh;
  background: var(--white);
  border-radius: 30px 30px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: sheetUp 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  .modal-shell {
    flex-direction: row;
    max-width: 940px;
    max-height: 88vh;
    border-radius: var(--r-lg);
    animation: popIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* Brand panel — desktop only, echoing the live widget's left column */
.modal-aside {
  display: none;
  background: linear-gradient(165deg, #3ACFF0, var(--cyan) 55%, #1AA7D4);
  color: var(--white);
  padding: 40px 32px;
  width: 320px;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

@media (min-width: 900px) {
  .modal-aside {
    display: flex;
  }
}

.modal-aside-kicker {
  font-family: var(--display);
  font-style: oblique 8deg;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.modal-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.modal-aside li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 700;
}

.modal-aside li span:first-child {
  flex-shrink: 0;
}

.modal-aside-agency {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-md);
  padding: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  gap: 4px;
}

.modal-aside-agency a {
  color: var(--white);
  text-decoration: none;
}

.modal-main {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  .modal-main {
    padding: 34px 36px;
  }
}

.modal-grip {
  width: 44px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  margin: 0 auto 14px;
}

@media (min-width: 900px) {
  .modal-grip {
    display: none;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--field-bg);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.16s ease;
}

.modal-close:hover {
  background: var(--cyan-50);
  color: var(--cyan-700);
}

/* Inside the modal the form is the whole surface — no second card. */
.modal .quote-form {
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* ---------- Success state ---------- */

.quote-success {
  text-align: center;
  padding: 12px 0 8px;
  animation: stepIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success-check {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--cyan-50);
  color: var(--cyan-700);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  animation: pop 0.45s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.quote-success h3 {
  font-family: var(--display);
  font-style: oblique 8deg;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.quote-success p {
  color: var(--body);
  margin-bottom: 20px;
}

.success-next {
  list-style: none;
  padding: 0;
  margin: 0 auto 24px;
  display: grid;
  gap: 10px;
  text-align: left;
  max-width: 380px;
}

.success-next li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--field-bg);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Motion ---------- */

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-26px, 24px) scale(1.08); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

/* Body scroll lock while the modal is open. */
body.modal-open {
  overflow: hidden;
}

/* Hero content animates on load, from and to a visible resting state. */
.hero-copy > * {
  animation: fadeUp 0.6s both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.19s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.33s; }

.hero-visual {
  animation: fadeUp 0.7s 0.2s both;
}

/* Scroll reveals: the page is fully visible at rest. Only when JS runs
   (html.js) do elements start hidden and animate in. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .reveal-delay-1 { transition-delay: 0.08s; }
.js .reveal-delay-2 { transition-delay: 0.16s; }
.js .reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
