/* AZUR RENOV — palette inspirée des façades du Vieux-Nice */
:root {
  --ink: #0E2A47;          /* encre marine : texte */
  --ink-soft: #3B5570;     /* texte secondaire */
  --azur: #1C5FA8;         /* action principale */
  --azur-deep: #134A86;
  --azur-sky: #E1EDF8;
  --ocre: #E9AE48;         /* ocre niçois */
  --volet: #2E6B55;        /* vert volet */
  --paper: #FFFFFF;
  --tint: #F3F6F9;         /* blanc de chaux froid */
  --line: #D6DFE8;
  --error: #B3261E;
  --night: #0A2038;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-h: 4.5rem;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; color: inherit; }

p { margin: 0; }

a { color: var(--azur); text-underline-offset: .18em; }

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

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container { width: min(100% - 3rem, 72rem); }
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.muted { color: var(--ink-soft); }

.icon-16 {
  width: 1.1rem; height: 1.1rem;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.125rem;
  padding: .8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--azur); color: #fff; }
.btn-primary:hover { background: var(--azur-deep); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-sm { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.55rem;
  letter-spacing: .015em;
  line-height: 1;
}
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block;
  padding: .4rem 0;
  color: var(--ink);
  font-weight: 500;
  font-size: .975rem;
  text-decoration: none;
  background: linear-gradient(var(--ocre), var(--ocre)) 0 100% / 0 3px no-repeat;
  transition: background-size .2s ease;
}
.nav a:hover { background-size: 100% 3px; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--azur); }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem; height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .header-phone { display: none; }
}

@media (max-width: 879px) {
  .header-actions { margin-left: auto; gap: .6rem; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(14, 42, 71, .35);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; }
  .nav a { display: block; padding: .85rem .25rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); background: none; }
  .nav li:last-child a { border-bottom: 0; }
}

@media (max-width: 459px) {
  .header-cta { display: none; }
  .brand { font-size: 1.4rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--tint);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
}

.hero h1 {
  font-size: clamp(2.9rem, 1.5rem + 5.6vw, 5.6rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: .94;
  letter-spacing: -.012em;
  text-wrap: balance;
  max-width: 11ch;
}

.lede {
  margin-top: 1.5rem;
  max-width: 34em;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1.25rem 1.5rem;
  margin: 2.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-facts dt { font-weight: 700; font-size: .95rem; }
.hero-facts dd { margin: .15rem 0 0; font-size: .95rem; color: var(--ink-soft); }

/* Façade avant / après */
.facade {
  margin: 0;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
}

.facade-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 30px 60px -34px rgba(14, 42, 71, .55);
}
.facade-stage svg { width: 100%; height: auto; aspect-ratio: 560 / 600; }

.facade:has(input:focus-visible) .facade-stage {
  outline: 3px solid var(--azur);
  outline-offset: 4px;
}

.facade-tag {
  position: absolute;
  top: .9rem;
  padding: .3rem .7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}
.facade-tag--after { left: .9rem; }
.facade-tag--before { right: .9rem; }

.facade-control {
  display: grid;
  gap: .5rem;
  margin-top: 1.1rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.facade-control input {
  width: 100%;
  margin: 0;
  accent-color: var(--azur);
  cursor: pointer;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tint { background: var(--tint); }

.section h2 {
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.4rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: .98;
  letter-spacing: -.006em;
  text-wrap: balance;
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { max-width: 36em; color: var(--ink-soft); font-size: 1.1rem; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
}

.section h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }

/* Prestations */
.services {
  display: grid;
  gap: 0 3.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
@media (min-width: 760px) {
  .services { grid-template-columns: 1fr 1fr; }
}
.service {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding-block: 1.9rem;
  border-top: 1px solid var(--line);
}
.service p { margin-top: .45rem; color: var(--ink-soft); max-width: 34em; }
.service-icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius-md);
  background: var(--azur-sky);
  color: var(--azur);
}
.service-icon svg {
  width: 1.5rem; height: 1.5rem;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Pour qui */
.band-ocre { background: var(--ocre); }
.band-ocre .section-head p { color: var(--ink); }
.clients {
  display: grid;
  gap: 2rem 2.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
@media (min-width: 600px) { .clients { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .clients { grid-template-columns: repeat(4, 1fr); } }
.client { padding-top: 1.1rem; border-top: 3px solid var(--ink); }
.client p { margin-top: .5rem; }

/* Méthode */
.steps {
  display: grid;
  gap: 2.25rem;
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 4.25rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -.35rem;
  width: 3rem;
  font-size: 3.4rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  color: var(--azur);
}
.step p { margin-top: .45rem; color: var(--ink-soft); }

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.75rem; }
  .step { padding-left: 0; padding-top: 5rem; }
  .step::before { top: 0; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: 3.25rem;
    right: -.75rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  }
}

/* Zone */
.zone-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .zone-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}
.zone-copy p { margin-top: 1.1rem; max-width: 32em; font-size: 1.1rem; }
.zone-copy p.muted { font-size: 1rem; }

.communes {
  list-style: none;
  margin: 0; padding: 0;
  columns: 2;
  column-gap: 2rem;
  font-size: 1.1rem;
}
.communes li {
  break-inside: avoid;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
}
.communes .is-hq { font-weight: 700; }
.communes .is-hq span {
  margin-left: .4rem;
  padding: .1rem .45rem;
  border-radius: 4px;
  background: var(--volet);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  vertical-align: .12em;
}
@media (max-width: 380px) { .communes { columns: 1; } }

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; align-items: start; }
}
.contact-copy > p { margin-top: 1.1rem; max-width: 28em; font-size: 1.15rem; color: #C9D8E8; }

.contact-lines { display: grid; gap: 1.4rem; margin: 2.5rem 0 0; }
.contact-lines dt { font-size: .9rem; color: #A9BED3; }
.contact-lines dd {
  margin: .1rem 0 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.contact-lines a { color: #fff; text-decoration-color: var(--ocre); text-decoration-thickness: 2px; }
.contact-lines a:hover { color: var(--ocre); }
.contact :focus-visible { outline-color: var(--ocre); }

.form-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
}
.form-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem; }
.form-card :focus-visible { outline-color: var(--azur); }

.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .85rem;
  border: 1.5px solid #B5C4D3;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8EA3B8; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--azur);
  box-shadow: 0 0 0 3px rgba(28, 95, 168, .25);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(179, 38, 30, .2); }

.field-hint { font-size: .875rem; color: var(--ink-soft); }
.field-error { font-size: .875rem; font-weight: 600; color: var(--error); }

.form-note { margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); }

.form-status {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--azur-sky);
  border-left: 4px solid var(--azur);
  font-size: .95rem;
}
.form-status.is-error { background: #FBEAEA; border-left-color: var(--error); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: #B9C9DA;
  padding-block: 3rem 2rem;
  font-size: .95rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1.2fr auto; align-items: start; }
}
.brand--light { color: #fff; }
.footer-brand p { margin-top: .5rem; }
.footer-legal p + p { margin-top: .2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: #fff; }
.footer-links a:hover { color: var(--ocre); }
.site-footer :focus-visible { outline-color: var(--ocre); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
}

/* ---------- Page mentions légales ---------- */
.legal-page { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal-page h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1;
}
.legal-page .legal-intro { margin-top: 1rem; color: var(--ink-soft); }
.legal-body { max-width: 46rem; }
.legal-body section { padding-top: 2.25rem; margin-top: 2.25rem; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: 1.45rem; font-weight: 700; line-height: 1.25; }
.legal-body p, .legal-body ul { margin-top: .75rem; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li + li { margin-top: .3rem; }
.legal-body dl { display: grid; gap: .1rem 1.5rem; margin: 1rem 0 0; }
.legal-body dt { font-weight: 600; }
.legal-body dd { margin: 0 0 .75rem; color: var(--ink-soft); }
@media (min-width: 640px) {
  .legal-body dl { grid-template-columns: 13rem 1fr; gap: .5rem 1.5rem; }
  .legal-body dd { margin-bottom: 0; }
}
.back-link { font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
