:root {
  --blue: #287cb8;
  --blue-dark: #103e60;
  --blue-deep: #092b43;
  --cyan: #18b7d4;
  --red: #e3192d;
  --lime: #8fbd22;
  --magenta: #dc007b;
  --orange: #f05a28;
  --grey: #d7d9dc;
  --grey-dark: #596772;
  --ink: #102433;
  --muted: #5f7180;
  --surface: #ffffff;
  --surface-soft: #f3f8fb;
  --line: #dce8ef;
  --shadow: 0 22px 55px rgba(12, 58, 89, .14);
  --radius: 26px;
  --container: 1160px;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

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

.hidden {
  position: absolute;
  left: -9999px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  color: #fff;
  background: var(--blue-deep);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(20, 86, 127, .1);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  color: var(--blue);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.brand-dot,
.footer-brand span {
  margin-inline: .05em;
  color: var(--cyan);
}

.brand-tagline {
  margin-top: 7px;
  color: var(--blue-dark);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--blue-dark);
  font-size: .94rem;
  font-weight: 700;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
}

.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.main-nav > a:hover::after,
.main-nav > a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 11px 17px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(40, 124, 184, .22);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--blue-dark);
  border-radius: 99px;
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0 88px;
  background:
    linear-gradient(135deg, rgba(241, 249, 253, .98), rgba(255, 255, 255, .98)),
    radial-gradient(circle at top right, rgba(24, 183, 212, .2), transparent 34%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  right: -160px;
  bottom: -250px;
  width: 650px;
  height: 650px;
  background: rgba(40, 124, 184, .07);
  border-radius: 50%;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-one {
  top: 80px;
  right: 42%;
  width: 18px;
  height: 18px;
  background: var(--lime);
}

.hero-orb-two {
  bottom: 90px;
  left: 4%;
  width: 12px;
  height: 12px;
  background: var(--magenta);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(42px, 7vw, 84px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.final-cta h2 {
  margin: 0;
  color: var(--blue-deep);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(2.55rem, 5vw, 5rem);
}

.hero h1 span {
  color: var(--blue);
}

.hero-lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 52px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(240, 90, 40, .24);
}

.button-primary:hover {
  box-shadow: 0 18px 34px rgba(240, 90, 40, .32);
}

.button-secondary {
  color: var(--blue-dark);
  background: #fff;
  border-color: #cfe0ea;
}

.button-light {
  color: var(--blue-deep);
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .11);
}

.button-full {
  width: 100%;
}

.hero-points {
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  color: var(--blue-dark);
  font-size: .92rem;
  font-weight: 700;
}

.hero-points li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--lime);
  font-weight: 900;
}

.hero-visual {
  position: relative;
}

.expertise-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(240, 248, 252, .98)),
    radial-gradient(circle at top right, rgba(24, 183, 212, .18), transparent 36%);
  border: 1px solid rgba(40, 124, 184, .16);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.expertise-card::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  background: rgba(40, 124, 184, .08);
  border-radius: 50%;
}

.expertise-logo {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  border-radius: 16px;
}

.expertise-card > p {
  position: relative;
  margin: 24px 0 22px;
  color: var(--blue-dark);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.expertise-services {
  position: relative;
  display: grid;
  gap: 12px;
}

.expertise-services span {
  padding: 15px 18px;
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(12, 58, 89, .07);
  font-weight: 900;
}

.expertise-security { --accent: var(--red); }
.expertise-it { --accent: var(--cyan); }
.expertise-electricity { --accent: var(--lime); }

.expertise-contact {
  position: relative;
  margin-top: 22px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.expertise-contact small {
  color: var(--muted);
  font-weight: 700;
}

.expertise-contact a {
  color: var(--orange);
  font-size: 1.18rem;
  font-weight: 900;
  white-space: nowrap;
}

.experience-badge {
  position: absolute;
  right: -20px;
  bottom: -24px;
  min-width: 146px;
  padding: 18px 20px;
  color: #fff;
  background: var(--blue);
  border: 6px solid #fff;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(15, 62, 96, .22);
  text-align: center;
  transform: rotate(-3deg);
}

.experience-badge strong,
.experience-badge span {
  display: block;
}

.experience-badge strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.experience-badge span {
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 700;
  opacity: .9;
}

.quick-contact {
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(10, 50, 75, .12);
}

.quick-contact-grid > * {
  min-width: 0;
  padding: 23px 28px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.quick-contact-grid > * + * {
  border-left: 1px solid var(--line);
}

.quick-contact-grid a:hover strong {
  color: var(--blue);
}

.quick-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--surface-soft);
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 900;
}

.quick-contact-grid span span {
  min-width: 0;
}

.quick-contact-grid small,
.quick-contact-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-contact-grid small {
  color: var(--muted);
  font-size: .75rem;
}

.quick-contact-grid strong {
  color: var(--blue-deep);
  font-size: .97rem;
  white-space: nowrap;
  transition: color .2s ease;
}

.section {
  padding: 112px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 38px;
}

.section h2,
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading > p:last-child,
.advantages-copy > p,
.zone-card p,
.contact-copy > p {
  color: var(--muted);
}

.services-section {
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 370px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(12, 58, 89, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--accent);
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 44px rgba(12, 58, 89, .13);
}

.service-electricity { --accent: var(--lime); }
.service-security { --accent: var(--red); }
.service-it { --accent: var(--cyan); }

.service-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-radius: 19px;
  font-size: 1.8rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 1.28rem;
  line-height: 1.2;
}

.service-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.service-card strong {
  margin-top: auto;
  color: var(--accent);
}

.service-card > span {
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: .9rem;
}

.advantages-section {
  background: var(--surface-soft);
}

.advantages-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: clamp(50px, 8vw, 100px);
}

.advantages-copy h2 {
  max-width: 500px;
}

.advantages-copy > p {
  margin: 24px 0;
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 900;
}

.text-link span {
  transition: transform .2s ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.advantages-list {
  display: grid;
  gap: 14px;
}

.advantages-list article {
  padding: 21px 24px;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.advantages-list article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 13px;
  font-size: .82rem;
  font-weight: 900;
}

.advantages-list h3,
.advantages-list p {
  margin: 0;
}

.advantages-list h3 {
  color: var(--blue-deep);
  font-size: 1.08rem;
}

.advantages-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .92rem;
}

.process-section {
  padding-block: 96px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.process-grid article {
  position: relative;
  padding: 34px 30px;
  background: linear-gradient(145deg, #fff, #f7fbfd);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.process-grid article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 50%;
  font-weight: 900;
}

.process-grid h3 {
  margin: 22px 0 8px;
  color: var(--blue-deep);
  font-size: 1.18rem;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
}

.zone-section {
  padding-top: 0;
}

.zone-card {
  padding: clamp(34px, 6vw, 66px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(10, 49, 75, .98), rgba(40, 124, 184, .96)),
    radial-gradient(circle at right, rgba(24, 183, 212, .45), transparent 35%);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.zone-card .eyebrow,
.zone-card h2,
.zone-card p,
.zone-card a {
  color: #fff;
}

.zone-card p {
  max-width: 720px;
  margin-bottom: 0;
  opacity: .88;
}

.zone-card a {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zone-marker {
  min-width: 180px;
  padding: 25px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.zone-marker span,
.zone-marker strong {
  display: block;
}

.zone-marker span {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.zone-marker strong {
  margin-top: 8px;
  font-size: .86rem;
  letter-spacing: .16em;
}

.contact-section {
  background: var(--surface-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: start;
  gap: clamp(46px, 7vw, 92px);
}

.contact-copy {
  position: sticky;
  top: 120px;
}

.contact-direct {
  margin-top: 30px;
  display: grid;
  gap: 13px;
}

.contact-direct a {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.contact-direct a > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 12px;
  font-weight: 900;
}

.contact-direct small,
.contact-direct strong {
  display: block;
}

.contact-direct small {
  color: var(--muted);
  font-size: .76rem;
}

.contact-direct strong {
  color: var(--blue-deep);
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  gap: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(12, 58, 89, .1);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label:not(.consent) {
  display: grid;
  gap: 8px;
  color: var(--blue-deep);
  font-size: .88rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfe;
  border: 1px solid #cddce5;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(40, 124, 184, .12);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--blue);
}

.form-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}

.final-cta {
  padding: 60px 0;
  color: #fff;
  background: var(--orange);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.final-cta p {
  margin: 0 0 7px;
  font-weight: 700;
  opacity: .9;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.site-footer {
  padding: 72px 0 28px;
  color: rgba(255, 255, 255, .72);
  background: var(--blue-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 42px;
}

.footer-brand {
  color: #fff;
  font-size: 1.75rem;
  letter-spacing: -.06em;
}

.footer-grid p {
  max-width: 340px;
}

.footer-grid h2 {
  margin: 5px 0 18px;
  color: #fff;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid span:not(.footer-brand span) {
  display: block;
  margin: 8px 0;
  font-size: .88rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .78rem;
}

.footer-bottom p {
  margin: 0;
}

.floating-call {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  padding: 13px 17px;
  display: none;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(240, 90, 40, .35);
  font-size: .86rem;
}

.legal-page {
  min-height: 70vh;
  padding: 80px 0;
  background: var(--surface-soft);
}

.legal-card {
  max-width: 880px;
  padding: clamp(28px, 5vw, 58px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-top: 0;
  color: var(--blue-deep);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.legal-card h2 {
  margin-top: 34px;
  color: var(--blue-dark);
  font-size: 1.25rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.notice {
  padding: 18px 20px;
  color: #7d4d00;
  background: #fff6df;
  border: 1px solid #f1d188;
  border-radius: 14px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 800;
}

.thank-you {
  min-height: 100vh;
  padding: 40px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
}

.thank-you-card {
  max-width: 650px;
  padding: clamp(34px, 7vw, 66px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.thank-you-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--lime);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 900;
}

.thank-you-card h1 {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.thank-you-card p {
  margin-bottom: 28px;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 18px;
    font-size: .86rem;
  }

  .brand-tagline {
    display: none;
  }

  .hero-grid,
  .advantages-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    max-width: 760px;
    margin-inline: auto;
  }

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

  .contact-copy {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 82px 0 auto;
    height: calc(100vh - 82px);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: var(--blue-deep);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .main-nav .nav-cta {
    margin-top: 18px;
    padding: 15px 18px;
    border-bottom: 0;
    text-align: center;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .quick-contact-grid {
    grid-template-columns: 1fr;
  }

  .quick-contact-grid > * + * {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 74px;
  }

  .main-nav {
    inset: 74px 0 auto;
    height: calc(100vh - 74px);
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .hero {
    padding: 58px 0 72px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-points {
    display: grid;
  }
  .expertise-card {
    padding: 24px;
    border-radius: 22px;
  }

  .expertise-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .experience-badge {
    right: -4px;
    bottom: -30px;
    min-width: 126px;
    padding: 14px;
  }

  .quick-contact {
    margin-top: -8px;
    padding-top: 36px;
  }

  .quick-contact-grid > * {
    padding: 18px;
  }

  .section {
    padding: 82px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .zone-card {
    grid-template-columns: 1fr;
  }

  .zone-marker {
    min-width: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .final-cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .final-cta .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-call {
    display: flex;
  }

  .site-footer {
    padding-bottom: 90px;
  }
}

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

.form-alert {
  margin-bottom: 18px;
  padding: 15px 17px;
  color: #7b2618;
  background: #fff1ed;
  border: 1px solid #efb3a7;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 700;
}


.legal-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legal-intro {
  margin: -4px 0 34px;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  padding-top: 8px;
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 16px;
}

.legal-section p {
  margin: 0;
}

.legal-section a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-details {
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.legal-details > div {
  padding: 15px 18px;
  display: grid;
  grid-template-columns: minmax(180px, .55fr) 1fr;
  gap: 22px;
  background: #fff;
}

.legal-details > div + div {
  border-top: 1px solid var(--line);
}

.legal-details dt {
  color: var(--blue-deep);
  font-weight: 850;
}

.legal-details dd {
  margin: 0;
  color: var(--muted);
}

.legal-links {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-footer {
  padding-top: 24px;
}

.legal-footer .footer-bottom {
  margin-top: 0;
}

@media (max-width: 640px) {
  .legal-home-link {
    padding: 10px 13px;
    font-size: .78rem;
  }

  .legal-details > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .legal-links {
    display: grid;
  }
}


.hero-illustration-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(240, 248, 252, .98)),
    radial-gradient(circle at top right, rgba(24, 183, 212, .18), transparent 36%);
  border: 1px solid rgba(40, 124, 184, .16);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hero-illustration-card::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  background: rgba(40, 124, 184, .08);
  border-radius: 50%;
}

.hero-illustration-card img {
  position: relative;
  width: 100%;
  border-radius: 22px;
}

@media (max-width: 640px) {
  .hero-illustration-card {
    padding: 10px;
    border-radius: 22px;
  }

  .hero-illustration-card img {
    border-radius: 16px;
  }
}


.brands-section {
  background:
    linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}

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

.brand-card {
  --brand-accent: var(--blue);
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(12, 58, 89, .08);
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--brand-accent);
}

.brand-card-alarm {
  --brand-accent: var(--red);
}

.brand-card-electric {
  --brand-accent: var(--lime);
}

.brand-card-automation {
  --brand-accent: var(--orange);
}

.brand-card-video {
  --brand-accent: var(--cyan);
}

.brand-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-card-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-accent);
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 900;
}

.brand-card h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 1.22rem;
}

.brand-names {
  margin: 22px 0 12px;
  color: var(--brand-accent);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
}

.brand-card > p:not(.brand-names) {
  margin: 0;
  color: var(--muted);
}

.brand-note {
  margin-top: 18px;
  display: block;
  color: var(--blue-dark);
  font-size: .83rem;
  font-weight: 800;
}

.brands-disclaimer {
  max-width: 840px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 760px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    padding: 25px;
  }
}


.anqaia-credit {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.anqaia-credit:hover,
.anqaia-credit:focus-visible {
  color: #ffffff;
}


.brand-logos {
  margin: 22px 0 18px;
  display: grid;
  gap: 12px;
}

.brand-logos-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-logos-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-logos-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-logo-link {
  min-height: 92px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(12, 58, 89, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.brand-logo-link:hover,
.brand-logo-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--brand-accent);
  box-shadow: 0 12px 26px rgba(12, 58, 89, .12);
}

.brand-logo-link img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
}

.brand-logo-fallback {
  color: var(--blue-deep);
  font-size: .9rem;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 520px) {
  .brand-logos-three,
  .brand-logos-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo-link {
    min-height: 82px;
    padding: 13px;
  }

  .brand-logo-link img {
    height: 42px;
  }
}


/* Présentation simplifiée des marques */
.brands-section {
  background: #f4f8fb;
}

.brands-heading {
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr);
  align-items: end;
  gap: 48px;
}

.brands-heading h2 {
  max-width: 720px;
}

.brands-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

.brand-showcase {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(12, 58, 89, .09);
}

.brand-showcase-row {
  --row-accent: var(--blue);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: minmax(245px, .72fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 34px;
  background: #fff;
}

.brand-showcase-row + .brand-showcase-row {
  border-top: 1px solid var(--line);
}

.brand-showcase-alarm {
  --row-accent: var(--red);
}

.brand-showcase-electric {
  --row-accent: var(--lime);
}

.brand-showcase-automation {
  --row-accent: var(--orange);
}

.brand-showcase-video {
  --row-accent: var(--cyan);
}

.brand-category {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 15px;
}

.brand-category-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--row-accent);
  border-radius: 13px;
  font-size: .78rem;
  font-weight: 900;
}

.brand-category h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 1.13rem;
  line-height: 1.2;
}

.brand-category p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

.brand-logo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.brand-logo-tile {
  min-width: 0;
  height: 78px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  background: #fbfdfe;
  border: 1px solid #e2ebf0;
  border-radius: 14px;
  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.brand-logo-tile:hover,
.brand-logo-tile:focus-visible {
  background: #fff;
  border-color: var(--row-accent);
  box-shadow: 0 10px 24px rgba(12, 58, 89, .10);
  transform: translateY(-2px);
}

.brand-logo-tile img {
  display: block;
  width: auto;
  max-width: 145px;
  max-height: 40px;
  object-fit: contain;
}

.brand-logo-fallback {
  color: var(--blue-deep);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.brands-disclaimer {
  max-width: 900px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 980px) {
  .brands-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .brand-showcase-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .brand-logo-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .brand-showcase-row {
    padding: 24px 20px;
  }

  .brand-logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo-tile {
    height: 72px;
    padding: 12px;
  }

  .brand-logo-tile img {
    max-width: 125px;
    max-height: 36px;
  }
}

@media (max-width: 420px) {
  .brand-category {
    grid-template-columns: 40px 1fr;
  }

  .brand-category-number {
    width: 40px;
    height: 40px;
  }

  .brand-logo-tile {
    height: 68px;
  }
}


/* Refonte de la section services en bannières horizontales */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1180px;
  margin-inline: auto;
}

.service-card {
  --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
  min-height: 0;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1.35fr) minmax(260px, .9fr);
  grid-template-areas:
    "icon title benefit-title"
    "icon desc benefit-text";
  align-items: center;
  gap: 10px 24px;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(12, 58, 89, .08);
}

.service-card::before {
  width: 7px;
}

.service-icon {
  grid-area: icon;
  width: 72px;
  height: 72px;
  margin: 0;
  place-self: center;
  border-radius: 18px;
  font-size: 2rem;
  font-weight: 900;
  background: var(--accent-soft);
}

.service-card h3 {
  grid-area: title;
  margin: 0;
  color: var(--blue-deep);
  font-size: 1.34rem;
  line-height: 1.2;
}

.service-card p {
  grid-area: desc;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.service-card strong {
  grid-area: benefit-title;
  margin: 0;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1.3;
  text-align: left;
}

.service-card > span {
  grid-area: benefit-text;
  margin: 0;
  color: var(--blue-dark);
  font-size: .96rem;
  line-height: 1.55;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-4px);
}

@media (max-width: 980px) {
  .service-card {
    grid-template-columns: 82px 1fr;
    grid-template-areas:
      "icon title"
      "icon desc"
      "benefit-title benefit-title"
      "benefit-text benefit-text";
    gap: 10px 18px;
  }

  .service-card strong,
  .service-card > span {
    padding-left: 100px;
  }
}

@media (max-width: 640px) {
  .service-card {
    padding: 22px 18px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "title"
      "desc"
      "benefit-title"
      "benefit-text";
    gap: 12px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
    place-self: start;
  }

  .service-card h3 {
    font-size: 1.22rem;
  }

  .service-card p,
  .service-card > span {
    font-size: .95rem;
  }

  .service-card strong,
  .service-card > span {
    padding-left: 0;
  }
}


/* Refonte de la section Marques en cartes texte inspirées du design des services */
.brands-section {
  background: #ffffff;
}

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

.brand-display-card {
  --brand-accent: var(--blue);
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(12, 58, 89, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.brand-display-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--brand-accent);
}

.brand-display-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(12, 58, 89, .12);
}

.brand-card-alarm { --brand-accent: var(--red); }
.brand-card-electric { --brand-accent: var(--lime); }
.brand-card-automation { --brand-accent: var(--orange); }
.brand-card-video { --brand-accent: var(--cyan); }

.brand-display-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 10%, white);
  border-radius: 20px;
  font-size: 2rem;
  font-weight: 900;
}

.brand-display-card h3 {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 1.32rem;
  line-height: 1.2;
}

.brand-display-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.brand-link-list {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.9;
}

.brand-text-link {
  display: inline-block;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, opacity .2s ease;
}

.brand-text-link:hover,
.brand-text-link:focus-visible {
  border-bottom-color: currentColor;
  opacity: .88;
}

.brand-link-red { color: var(--red); }
.brand-link-green { color: var(--lime); }
.brand-link-orange { color: var(--orange); }
.brand-link-cyan { color: var(--cyan); }

.brand-separator {
  color: #97a9b5;
  font-weight: 700;
}

.brand-display-card strong {
  margin-top: auto;
  color: var(--brand-accent);
  font-size: 1.08rem;
}

.brand-display-card > span {
  margin-top: 6px;
  color: var(--blue-dark);
  font-size: .95rem;
  line-height: 1.55;
}

.brands-disclaimer {
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 900px) {
  .brand-display-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-display-card {
    padding: 28px 20px 24px;
  }

  .brand-display-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    font-size: 1.8rem;
  }

  .brand-display-card h3 {
    font-size: 1.22rem;
  }

  .brand-display-card p,
  .brand-link-list,
  .brand-display-card > span {
    font-size: .95rem;
  }
}


/* Marques : même style visuel que les cartes "Besoins techniques" */
.brands-section {
  background: #ffffff;
}

.brand-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.brand-service-card {
  --brand-accent: var(--blue);
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(12, 58, 89, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.brand-service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--brand-accent);
}

.brand-service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 44px rgba(12, 58, 89, .13);
}

.brand-card-alarm {
  --brand-accent: var(--red);
}

.brand-card-electric {
  --brand-accent: var(--lime);
}

.brand-card-automation {
  --brand-accent: var(--orange);
}

.brand-card-video {
  --brand-accent: var(--cyan);
}

.brand-service-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 10%, white);
  border-radius: 19px;
  font-size: 1.8rem;
  font-weight: 900;
}

.brand-service-card h3 {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 1.28rem;
  line-height: 1.2;
}

.brand-service-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.brand-service-links {
  margin-top: auto;
  color: var(--brand-accent);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.8;
}

.brand-service-links a {
  color: var(--brand-accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, opacity .2s ease;
}

.brand-service-links a:hover,
.brand-service-links a:focus-visible {
  border-bottom-color: currentColor;
  opacity: .86;
}

.brand-service-links span {
  margin-inline: 3px;
  color: #9babb5;
}

.brand-service-note {
  margin-top: 7px;
  color: var(--blue-dark);
  font-size: .9rem;
  line-height: 1.55;
}

.brands-disclaimer {
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .brand-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand-service-grid {
    grid-template-columns: 1fr;
  }

  .brand-service-card {
    min-height: auto;
    padding: 26px 22px;
  }
}


/* ===== CORRECTION FINALE SECTION MARQUES ===== */
#marques.brands-section {
  background: #ffffff;
}

#marques .brand-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

#marques .brand-card-item {
  --brand-accent: var(--blue);
  position: relative !important;
  overflow: hidden !important;
  min-height: 390px !important;
  padding: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 35px rgba(12, 58, 89, .07) !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}

#marques .brand-card-item:hover {
  transform: translateY(-7px) !important;
  box-shadow: 0 20px 44px rgba(12, 58, 89, .13) !important;
}

#marques .brand-card-alarm { --brand-accent: var(--red); }
#marques .brand-card-electric { --brand-accent: var(--lime); }
#marques .brand-card-automation { --brand-accent: var(--orange); }
#marques .brand-card-video { --brand-accent: var(--cyan); }

#marques .brand-card-topline {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--brand-accent);
}

#marques .brand-card-icon {
  width: 62px !important;
  height: 62px !important;
  margin: 0 0 25px 0 !important;
  display: grid !important;
  place-items: center !important;
  color: var(--brand-accent) !important;
  background: color-mix(in srgb, var(--brand-accent) 10%, white) !important;
  border-radius: 19px !important;
  font-size: 1.8rem !important;
  font-weight: 900 !important;
}

#marques .brand-card-item h3 {
  margin: 0 0 12px !important;
  color: var(--blue-deep) !important;
  font-size: 1.28rem !important;
  line-height: 1.2 !important;
}

#marques .brand-card-item p {
  margin: 0 0 22px !important;
  color: var(--muted) !important;
  line-height: 1.65 !important;
}

#marques .brand-card-links {
  margin-top: auto !important;
  color: var(--brand-accent) !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1.8 !important;
}

#marques .brand-card-links a {
  color: var(--brand-accent) !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  transition: border-color .2s ease, opacity .2s ease !important;
}

#marques .brand-card-links a:hover,
#marques .brand-card-links a:focus-visible {
  border-bottom-color: currentColor !important;
  opacity: .86 !important;
}

#marques .brand-card-links span {
  margin-inline: 3px !important;
  color: #9babb5 !important;
}

#marques .brand-card-note {
  margin-top: 7px !important;
  color: var(--blue-dark) !important;
  font-size: .9rem !important;
  line-height: 1.55 !important;
}

#marques .brands-disclaimer {
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 1100px) {
  #marques .brand-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #marques .brand-cards-grid {
    grid-template-columns: 1fr !important;
  }

  #marques .brand-card-item {
    min-height: auto !important;
    padding: 26px 22px !important;
  }
}


/* ===== ANIMATION TECH / FUTURISTE ===== */
.tech-illustration{isolation:isolate;overflow:hidden;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(235,247,252,.98)),radial-gradient(circle at 70% 44%,rgba(17,181,220,.19),transparent 34%);animation:tech-card-boot 1.15s cubic-bezier(.2,.78,.24,1) both}
.tech-illustration::after{content:"";position:absolute;z-index:0;inset:9%;pointer-events:none;background:radial-gradient(circle at 72% 43%,rgba(38,191,239,.20),transparent 27%),radial-gradient(circle at 26% 25%,rgba(235,28,50,.11),transparent 16%),radial-gradient(circle at 25% 74%,rgba(148,201,24,.12),transparent 17%),radial-gradient(circle at 75% 74%,rgba(1,187,222,.13),transparent 18%);filter:blur(13px);animation:tech-ambient-glow 5.8s ease-in-out 1.15s infinite}
.tech-image-stage{position:relative;z-index:1;overflow:hidden;border-radius:22px}.tech-image-stage>img{position:relative;z-index:2;width:100%;transform-origin:50% 58%;animation:tech-image-entry 1.25s cubic-bezier(.19,.88,.25,1) both,tech-image-float 5.8s ease-in-out 1.25s infinite;filter:saturate(1.03) contrast(1.02)}
.tech-hud-screen{position:absolute;z-index:5;left:63.1%;top:36.2%;width:29.2%;height:22.3%;overflow:hidden;pointer-events:none;border:1px solid rgba(96,227,255,.42);border-radius:7%/13%;background:linear-gradient(110deg,rgba(22,130,206,.06),rgba(91,225,255,.10)),repeating-linear-gradient(0deg,rgba(103,226,255,.05) 0,rgba(103,226,255,.05) 1px,transparent 1px,transparent 9px);box-shadow:inset 0 0 22px rgba(93,222,255,.11),0 0 19px rgba(43,194,235,.13);mix-blend-mode:screen;opacity:0;animation:tech-hud-boot .72s ease-out .9s forwards}
.tech-grid{position:absolute;inset:0;background:linear-gradient(rgba(96,225,255,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(96,225,255,.07) 1px,transparent 1px);background-size:24px 18px;opacity:.55;animation:tech-grid-drift 6s linear 1.4s infinite}.tech-scan-line{position:absolute;top:-28%;right:-6%;left:-6%;height:25%;background:linear-gradient(180deg,transparent,rgba(128,239,255,.10),rgba(145,243,255,.48),rgba(128,239,255,.08),transparent);animation:tech-screen-scan 4.4s cubic-bezier(.43,0,.57,1) 1.35s infinite}
.tech-data-dot{position:absolute;width:6px;aspect-ratio:1;background:#9cf3ff;border-radius:50%;box-shadow:0 0 0 4px rgba(114,232,255,.12),0 0 13px rgba(110,235,255,.85);opacity:0;animation:tech-data-pulse 2.8s ease-in-out infinite}.tech-data-dot-a{left:22%;top:35%;animation-delay:1.25s}.tech-data-dot-b{left:51%;top:55%;animation-delay:1.85s}.tech-data-dot-c{left:77%;top:29%;animation-delay:2.35s}
.tech-activation{--tech-color:39,189,230;position:absolute;z-index:4;width:13.5%;aspect-ratio:1;pointer-events:none;border:2px solid rgba(var(--tech-color),.74);border-radius:50%;box-shadow:0 0 0 0 rgba(var(--tech-color),.30),inset 0 0 17px rgba(var(--tech-color),.10);opacity:0;transform:translate(-50%,-50%) scale(.70);animation:tech-zone-activate 6.4s cubic-bezier(.33,0,.67,1) infinite}.tech-activation::after{content:"";position:absolute;inset:16%;border:1px solid rgba(var(--tech-color),.52);border-radius:inherit;opacity:.6}
.tech-activation-alarm{--tech-color:239,28,51;left:25.1%;top:24.4%;animation-delay:1.15s}.tech-activation-it{--tech-color:14,178,224;left:75.2%;top:24.3%;animation-delay:2.05s}.tech-activation-power{--tech-color:147,199,27;left:25.1%;top:73.5%;animation-delay:2.95s}.tech-activation-camera{--tech-color:0,190,224;left:75.1%;top:73.6%;animation-delay:3.85s}
.tech-radar{position:absolute;z-index:6;left:75.1%;top:79.6%;width:7%;height:4%;pointer-events:none;border:2px solid rgba(236,24,49,.72);border-top:0;border-right-color:transparent;border-left-color:transparent;border-radius:0 0 50% 50%;opacity:0;transform:translate(-50%,-50%) scale(.45);animation:tech-camera-radar 2.7s ease-out infinite}.tech-radar-two{animation-delay:.7s}.tech-radar-three{animation-delay:1.4s}
.tech-energy-orbit{position:absolute;z-index:6;left:25.3%;top:72.8%;width:11%;aspect-ratio:1;pointer-events:none;border:2px solid rgba(153,209,22,.64);border-left-color:transparent;border-bottom-color:transparent;border-radius:50%;opacity:0;transform:translate(-50%,-50%);animation:tech-energy-spin 3.8s linear infinite}.tech-energy-orbit-two{width:8.3%;border-color:rgba(255,188,23,.62);border-right-color:transparent;border-top-color:transparent;animation-direction:reverse;animation-duration:3.1s}
.tech-connection{position:absolute;z-index:3;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(87,224,255,.74),transparent);box-shadow:0 0 8px rgba(87,224,255,.55);opacity:0;transform-origin:left center;animation:tech-connection-flow 6.4s ease-in-out infinite}.tech-connection-left{left:34%;top:46%;width:18%;transform:rotate(12deg);animation-delay:1.6s}.tech-connection-right{left:54%;top:48%;width:13%;transform:rotate(-7deg);animation-delay:2.25s}
.tech-illustration.is-animation-paused *,.tech-illustration.is-animation-paused::after{animation-play-state:paused!important}
@keyframes tech-card-boot{0%{opacity:0;transform:rotate(1.2deg) translateY(13px) scale(.982);box-shadow:0 4px 18px rgba(12,58,89,.05)}100%{opacity:1;transform:rotate(1.2deg) translateY(0) scale(1);box-shadow:var(--shadow)}}
@keyframes tech-image-entry{0%{opacity:0;transform:translateY(14px) scale(.985);filter:saturate(.75) brightness(.88)}100%{opacity:1;transform:translateY(0) scale(1);filter:saturate(1.03) brightness(1)}}@keyframes tech-image-float{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-4px) scale(1.003)}}
@keyframes tech-ambient-glow{0%,100%{opacity:.54;transform:scale(.99)}50%{opacity:.88;transform:scale(1.025)}}@keyframes tech-hud-boot{0%{opacity:0;filter:brightness(.75)}55%{opacity:.78;filter:brightness(1.28)}100%{opacity:.50;filter:brightness(1)}}@keyframes tech-grid-drift{from{background-position:0 0,0 0}to{background-position:0 36px,48px 0}}
@keyframes tech-screen-scan{0%,12%{transform:translateY(-30%);opacity:0}25%{opacity:.72}65%{opacity:.46}82%,100%{transform:translateY(520%);opacity:0}}@keyframes tech-data-pulse{0%,20%,100%{opacity:0;transform:scale(.55)}34%{opacity:.92;transform:scale(1)}52%{opacity:.30;transform:scale(1.35)}68%{opacity:.78;transform:scale(.86)}}
@keyframes tech-zone-activate{0%,8%,100%{opacity:0;transform:translate(-50%,-50%) scale(.70);box-shadow:0 0 0 0 rgba(var(--tech-color),.24)}14%{opacity:.90;transform:translate(-50%,-50%) scale(.93)}24%{opacity:.34;transform:translate(-50%,-50%) scale(1.22);box-shadow:0 0 0 15px rgba(var(--tech-color),0)}31%{opacity:.64;transform:translate(-50%,-50%) scale(.98)}40%{opacity:0;transform:translate(-50%,-50%) scale(1.30)}}
@keyframes tech-camera-radar{0%{opacity:0;transform:translate(-50%,-50%) scale(.42)}18%{opacity:.82}75%{opacity:.16}100%{opacity:0;transform:translate(-50%,-50%) scale(1.65)}}@keyframes tech-energy-spin{0%{opacity:0;transform:translate(-50%,-50%) rotate(0deg) scale(.78)}18%{opacity:.78}72%{opacity:.46}100%{opacity:0;transform:translate(-50%,-50%) rotate(360deg) scale(1.12)}}@keyframes tech-connection-flow{0%,15%,100%{opacity:0}22%{opacity:.52}38%{opacity:.12}48%{opacity:0}}
@media(max-width:640px){.tech-image-stage{border-radius:16px}.tech-data-dot{width:4px}.tech-activation{border-width:1px}.tech-radar,.tech-energy-orbit{border-width:1px}}
@media(prefers-reduced-motion:reduce){.tech-illustration,.tech-illustration::after,.tech-image-stage>img,.tech-hud-screen,.tech-grid,.tech-scan-line,.tech-data-dot,.tech-activation,.tech-radar,.tech-energy-orbit,.tech-connection{animation:none!important}.tech-illustration{opacity:1;transform:rotate(1.2deg)}.tech-hud-screen{opacity:.26}}


/* ===== REFLET LUMINEUX PREMIUM SUR LE NOM DU SITE ===== */
.brand-name-scan {
  position: relative;
  isolation: isolate;
  display: inline-block;
  overflow: visible;
}

.brand-name-scan::after {
  content: attr(data-text);
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background:
    linear-gradient(
      108deg,
      transparent 34%,
      rgba(255, 255, 255, .08) 40%,
      rgba(255, 255, 255, .72) 46%,
      rgba(224, 252, 255, .98) 49%,
      rgba(111, 227, 247, .78) 52%,
      rgba(255, 255, 255, .30) 57%,
      transparent 64%
    );
  background-size: 260% 100%;
  background-position: 175% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(90, 220, 245, .30));
  animation: brand-premium-scan 7s cubic-bezier(.42, 0, .58, 1) .8s infinite;
}

.brand-name-scan.is-scan-paused::after {
  animation-play-state: paused;
}

@keyframes brand-premium-scan {
  0%, 8% {
    background-position: 175% 0;
    opacity: 0;
  }

  10% {
    opacity: .95;
  }

  29% {
    background-position: -75% 0;
    opacity: .95;
  }

  32%, 100% {
    background-position: -75% 0;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-name-scan::after {
    animation: none !important;
    opacity: 0 !important;
  }
}



/* ===== PROPOSITION C : PERSONNAGE VIVANT + UNIVERS ACTIVÉS ===== */
.tech-image-stage > img {
  transform-origin: 50% 58%;
  animation:
    tech-image-entry 1.25s cubic-bezier(.19, .88, .25, 1) both,
    proposition-c-float 6.2s ease-in-out 1.25s infinite !important;
}

.tech-illustration::after {
  animation: tech-ambient-glow 6.2s ease-in-out 1.15s infinite;
}

.tech-activation-alarm {
  animation-delay: 1.05s;
}

.tech-activation-it {
  animation-delay: 2.00s;
}

.tech-activation-power {
  animation-delay: 2.95s;
}

.tech-activation-camera {
  animation-delay: 3.90s;
}

.tech-radar-one { animation-delay: 3.95s; }
.tech-radar-two { animation-delay: 4.55s; }
.tech-radar-three { animation-delay: 5.15s; }

.tech-energy-orbit-one { animation-delay: 3.00s; }
.tech-energy-orbit-two { animation-delay: 3.35s; }

@keyframes proposition-c-float {
  0%, 100% {
    transform: translateY(0) scale(1, 1);
  }
  25% {
    transform: translateY(-2px) scale(1.003, 1.008);
  }
  50% {
    transform: translateY(-4px) scale(1.006, 1.012);
  }
  75% {
    transform: translateY(-2px) scale(1.003, 1.007);
  }
}


/* 4e activité : Automatisme */
.service-automation {
  --accent: var(--orange);
}


/* Mise à jour du bloc de proximité : Départements */
.zone-marker-departements {
  min-width: clamp(260px, 28vw, 340px);
  min-height: 180px;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  text-align: center;
  backdrop-filter: blur(8px);
}

.zone-marker-departements .zone-marker-label,
.zone-marker-departements .zone-marker-value {
  display: block;
  color: #fff;
}

.zone-marker-departements .zone-marker-label {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .98;
}

.zone-marker-departements .zone-marker-value {
  margin: 0;
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .03em;
}

@media (max-width: 900px) {
  .zone-marker-departements {
    width: 100%;
    min-width: 0;
    min-height: auto;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .zone-marker-departements .zone-marker-label {
    font-size: .95rem;
  }

  .zone-marker-departements .zone-marker-value {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }
}


/* Ajustement de la section "Votre professionnel de proximité" pour correspondre à la maquette */
.zone-section {
  padding-top: 10px;
}

.zone-card {
  padding: clamp(42px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, #163f60 0%, #2e7ab5 100%);
  border-radius: 48px;
  box-shadow: none;
  overflow: hidden;
}

.zone-card > div:first-child {
  max-width: 980px;
}

.zone-card .eyebrow {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.zone-card h2 {
  margin: 0 0 24px;
  max-width: 980px;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: .96;
  letter-spacing: -0.04em;
}

.zone-card p {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.zone-card p a {
  color: #fff;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.zone-marker-departements {
  width: clamp(300px, 25vw, 380px);
  min-width: clamp(300px, 25vw, 380px);
  min-height: 184px;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  text-align: center;
  backdrop-filter: blur(2px);
}

.zone-marker-departements .zone-marker-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.zone-marker-departements .zone-marker-value {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .03em;
}

@media (max-width: 1100px) {
  .zone-card {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .zone-marker-departements {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .zone-card {
    padding: 30px 22px;
    border-radius: 28px;
    gap: 22px;
  }

  .zone-card h2 {
    margin-bottom: 16px;
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .zone-card p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .zone-marker-departements {
    width: 100%;
    min-width: 0;
    min-height: auto;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .zone-marker-departements .zone-marker-label {
    font-size: .92rem;
  }

  .zone-marker-departements .zone-marker-value {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }
}


/* =========================================================
   VERSION FINALE - SECTION "VOTRE PROFESSIONNEL DE PROXIMITÉ"
   ========================================================= */

.zone-section {
  padding-top: 10px;
}

.zone-card {
  padding: clamp(42px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(90deg, #163f60 0%, #2f80ba 100%);
  border-radius: 48px;
  box-shadow: 0 18px 42px rgba(12, 58, 89, .12);
  overflow: hidden;
}

.zone-card > div:first-child {
  max-width: 980px;
}

.zone-card .eyebrow {
  margin-bottom: 14px;
  color: rgba(255,255,255,.88);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.zone-card h2 {
  margin: 0 0 24px;
  max-width: 980px;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.zone-card p {
  max-width: 900px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.zone-card a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Encart Départements */
.zone-marker.zone-marker-departements {
  width: clamp(300px, 25vw, 380px);
  min-width: clamp(300px, 25vw, 380px);
  min-height: 184px;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 34px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  text-align: center;
  backdrop-filter: blur(4px);
}

/* "Départements" = petit */
.zone-marker.zone-marker-departements .zone-marker-label {
  display: block;
  margin: 0 0 12px;
  color: #fff;
  font-size: .95rem !important;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* "64-65-40" = gros */
.zone-marker.zone-marker-departements .zone-marker-value {
  display: block;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 4.5vw, 4.1rem) !important;
  line-height: .95;
  font-weight: 900;
  letter-spacing: .02em;
}

@media (max-width: 1100px) {
  .zone-card {
    grid-template-columns: 1fr;
  }

  .zone-marker.zone-marker-departements {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .zone-card {
    padding: 30px 22px;
    gap: 22px;
    border-radius: 28px;
  }

  .zone-card h2 {
    margin-bottom: 16px;
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .zone-card p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .zone-marker.zone-marker-departements {
    width: 100%;
    min-width: 0;
    min-height: auto;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .zone-marker.zone-marker-departements .zone-marker-label {
    font-size: .88rem !important;
  }

  .zone-marker.zone-marker-departements .zone-marker-value {
    font-size: clamp(2.6rem, 11vw, 3.4rem) !important;
  }
}


/* =========================================================
   AJUSTEMENT TAILLE RECTANGLE "DÉPARTEMENTS"
   ========================================================= */
.zone-marker.zone-marker-departements {
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  min-height: 182px !important;
  padding: 24px 28px !important;
  border-radius: 32px !important;
}

.zone-marker.zone-marker-departements .zone-marker-label {
  margin-bottom: 12px !important;
  font-size: .98rem !important;
}

.zone-marker.zone-marker-departements .zone-marker-value {
  font-size: 3.85rem !important;
  line-height: .95 !important;
}

@media (max-width: 768px) {
  .zone-marker.zone-marker-departements {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: auto !important;
    padding: 22px 18px !important;
    border-radius: 24px !important;
  }

  .zone-marker.zone-marker-departements .zone-marker-value {
    font-size: clamp(2.5rem, 10vw, 3.3rem) !important;
  }
}


/* =========================================================
   DOMAINES D’INTERVENTION - 5 DOMAINES EXACTS
   ========================================================= */

.services-grid.services-grid-five {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.service-alarm-video { --accent: #ef3340; }
.service-access { --accent: #6c63ff; }
.service-intercom { --accent: #00a3a3; }
.service-automation { --accent: var(--orange); }

/* Assure un bon rendu pour les titres plus longs */
.service-card h3 {
  max-width: 100%;
}

@media (max-width: 768px) {
  .services-grid.services-grid-five {
    gap: 18px;
  }
}


/* =========================================================
   DOMAINES D'INTERVENTION AVEC ILLUSTRATIONS
   ========================================================= */

.services-grid.services-grid-illustrated {
  gap: 24px;
}

.services-grid-illustrated .service-card {
  min-height: 0;
  padding: 24px 26px 26px;
}

.service-media {
  margin: 4px 0 20px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #ffffff);
  background: color-mix(in srgb, var(--accent) 6%, #ffffff);
}

.service-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.services-grid-illustrated .service-icon {
  display: none !important;
}

.services-grid-illustrated .service-card h3 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .services-grid.services-grid-illustrated {
    gap: 18px;
  }

  .services-grid-illustrated .service-card {
    padding: 18px 18px 22px;
  }

  .service-media {
    margin-bottom: 18px;
    border-radius: 20px;
  }
}


/* =========================================================
   MARQUES ET ÉQUIPEMENTS AVEC ILLUSTRATIONS
   ========================================================= */

.brand-cards-grid.brand-cards-grid-illustrated {
  gap: 22px;
}

.brand-cards-grid-illustrated .brand-card-item {
  padding: 0 24px 24px;
}

.brand-cards-grid-illustrated .brand-card-topline {
  margin-inline: -24px;
  margin-bottom: 18px;
}

.brand-card-media {
  margin: 0 0 18px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #ffffff);
  background: color-mix(in srgb, var(--accent) 6%, #ffffff);
}

.brand-card-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.brand-cards-grid-illustrated .brand-card-icon {
  display: none !important;
}

@media (max-width: 768px) {
  .brand-cards-grid-illustrated .brand-card-item {
    padding: 0 18px 18px;
  }

  .brand-cards-grid-illustrated .brand-card-topline {
    margin-inline: -18px;
  }

  .brand-card-media {
    border-radius: 18px;
  }
}


/* =========================================================
   PHOTOS RÉELLES POUR DOMAINES ET MARQUES
   ========================================================= */

.service-illustration.real-photo,
.brand-card-illustration.real-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.service-media,
.brand-card-media {
  background: #f8fafc;
}

.services-grid-illustrated .service-card,
.brand-cards-grid-illustrated .brand-card-item {
  overflow: hidden;
}

@media (max-width: 768px) {
  .service-illustration.real-photo,
  .brand-card-illustration.real-photo {
    aspect-ratio: 16 / 10;
  }
}


/* =========================================================
   RGPD / VISUELS - VERSION 2026-08-12
   ========================================================= */

.form-privacy-note {
  margin: 4px 0 18px;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(40, 124, 184, .06);
  border: 1px solid rgba(40, 124, 184, .12);
  border-radius: 14px;
  font-size: .84rem;
  line-height: 1.55;
}

.form-privacy-note a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visuals-disclaimer {
  max-width: 940px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.5;
  text-align: center;
}

.service-visuals-disclaimer {
  margin-top: 22px;
}


/* =========================================================
   DOMAINES D'INTERVENTION — PHOTOS À 200 %
   ========================================================= */

/* Hauteur visible doublée par rapport au ratio 16:9 initial,
   sans déformation grâce à object-fit: cover. */
#services .service-illustration.real-photo {
  width: 100% !important;
  aspect-ratio: 8 / 9 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* La section Marques conserve ses proportions actuelles. */
#marques .brand-card-illustration.real-photo {
  aspect-ratio: 16 / 9 !important;
}

@media (max-width: 768px) {
  #services .service-illustration.real-photo {
    aspect-ratio: 8 / 9 !important;
  }

  #marques .brand-card-illustration.real-photo {
    aspect-ratio: 16 / 10 !important;
  }
}


/* =========================================================
   DOMAINES D'INTERVENTION — PHOTOS À 400 %
   ========================================================= */

/* Hauteur visible x4 par rapport au ratio 16:9 initial,
   sans déformation grâce à object-fit: cover. */
#services .service-illustration.real-photo {
  width: 100% !important;
  aspect-ratio: 4 / 9 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* La section Marques conserve ses proportions actuelles. */
#marques .brand-card-illustration.real-photo {
  aspect-ratio: 16 / 9 !important;
}

@media (max-width: 768px) {
  #services .service-illustration.real-photo {
    aspect-ratio: 4 / 9 !important;
  }

  #marques .brand-card-illustration.real-photo {
    aspect-ratio: 16 / 10 !important;
  }
}


/* =========================================================
   BESOINS TECHNIQUES — 3 COLONNES + ALIGNEMENTS
   ========================================================= */

/* Grille en 3 colonnes sur desktop */
#services .services-grid.services-grid-five.services-grid-illustrated {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

/* Cartes homogènes et bien structurées */
#services .services-grid-illustrated .service-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 100% !important;
}

/* Image en haut, bien centrée dans le cadre */
#services .service-media {
  margin-bottom: 18px !important;
  overflow: hidden !important;
}

#services .service-illustration.real-photo {
  width: 100% !important;
  aspect-ratio: 4 / 9 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Titres et textes alignés proprement */
#services .service-card h3 {
  min-height: 2.8em !important;
  display: flex !important;
  align-items: flex-start !important;
  margin-bottom: 10px !important;
}

#services .service-card p {
  min-height: 4.8em !important;
  margin-bottom: 14px !important;
}

#services .service-card strong {
  display: block !important;
  min-height: 1.5em !important;
  margin-top: auto !important;
  margin-bottom: 6px !important;
}

#services .service-card span {
  display: block !important;
  min-height: 2.8em !important;
}

/* Section Marques inchangée */
#marques .brand-card-illustration.real-photo {
  aspect-ratio: 16 / 9 !important;
  object-position: center center !important;
}

/* Tablette */
@media (max-width: 1100px) {
  #services .services-grid.services-grid-five.services-grid-illustrated {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #services .services-grid.services-grid-five.services-grid-illustrated {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #services .service-illustration.real-photo {
    aspect-ratio: 4 / 7 !important;
  }

  #services .service-card h3,
  #services .service-card p,
  #services .service-card strong,
  #services .service-card span {
    min-height: 0 !important;
  }

  #marques .brand-card-illustration.real-photo {
    aspect-ratio: 16 / 10 !important;
  }
}


/* =========================================================
   BESOINS TECHNIQUES — IMAGES HORIZONTALES SUR ORDINATEUR
   ========================================================= */

/* Desktop : format horizontal */
@media (min-width: 1101px) {
  #services .service-illustration.real-photo {
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* Tablette : reste assez équilibré */
@media (min-width: 769px) and (max-width: 1100px) {
  #services .service-illustration.real-photo {
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* Mobile : conserve un cadrage plus confortable */
@media (max-width: 768px) {
  #services .service-illustration.real-photo {
    aspect-ratio: 4 / 7 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}


/* =========================================================
   BESOINS TECHNIQUES — 5 BLOCS HORIZONTAUX
   ========================================================= */

/* On annule la logique en colonnes pour la section services */
#services .services-grid.services-grid-five.services-grid-illustrated {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 22px !important;
  align-items: stretch !important;
}

/* Chaque carte devient un bloc horizontal pleine largeur */
#services .services-grid-illustrated .service-card {
  display: grid !important;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr) !important;
  grid-template-areas:
    "media title"
    "media text"
    "media strong"
    "media note" !important;
  column-gap: 26px !important;
  row-gap: 8px !important;
  align-items: start !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Placement des éléments */
#services .services-grid-illustrated .service-media {
  grid-area: media !important;
  margin: 0 !important;
  align-self: stretch !important;
  height: 100% !important;
  overflow: hidden !important;
}

#services .services-grid-illustrated .service-card h3 {
  grid-area: title !important;
  min-height: 0 !important;
  margin: 2px 0 0 !important;
  display: block !important;
}

#services .services-grid-illustrated .service-card p {
  grid-area: text !important;
  min-height: 0 !important;
  margin: 0 !important;
}

#services .services-grid-illustrated .service-card strong {
  grid-area: strong !important;
  min-height: 0 !important;
  margin: 4px 0 0 !important;
  display: block !important;
}

#services .services-grid-illustrated .service-card span {
  grid-area: note !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: block !important;
}

/* Image horizontale bien cadrée */
#services .service-illustration.real-photo {
  width: 100% !important;
  height: 100% !important;
  min-height: 240px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Marque inchangée */
#marques .brand-card-illustration.real-photo {
  object-position: center center !important;
}

/* Tablette */
@media (max-width: 980px) {
  #services .services-grid-illustrated .service-card {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "media"
      "title"
      "text"
      "strong"
      "note" !important;
    row-gap: 10px !important;
  }

  #services .service-illustration.real-photo {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #services .services-grid.services-grid-five.services-grid-illustrated {
    gap: 18px !important;
  }

  #services .services-grid-illustrated .service-card {
    grid-template-columns: 1fr !important;
    padding: 18px 18px 22px !important;
  }

  #services .service-media {
    margin-bottom: 0 !important;
  }

  #services .service-illustration.real-photo {
    aspect-ratio: 16 / 10 !important;
  }
}


/* =========================================================
   BESOINS TECHNIQUES — VERSION ÉQUILIBRÉE HORIZONTALE
   ========================================================= */

/* 5 blocs horizontaux bien équilibrés */
#services .services-grid.services-grid-five.services-grid-illustrated {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}

/* Carte structurée en 3 zones : image / texte / accroche */
#services .services-grid-illustrated .service-card {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1.55fr) minmax(280px, 0.95fr) !important;
  grid-template-areas:
    "media title strong"
    "media text note" !important;
  column-gap: 36px !important;
  row-gap: 12px !important;
  align-items: center !important;
  padding: 26px 30px !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Zone image */
#services .services-grid-illustrated .service-media {
  grid-area: media !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#services .service-illustration.real-photo {
  width: 132px !important;
  height: 78px !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 22px rgba(16, 51, 79, 0.08) !important;
}

/* Zone centrale */
#services .services-grid-illustrated .service-card h3 {
  grid-area: title !important;
  margin: 0 !important;
  min-height: 0 !important;
  display: block !important;
  align-self: end !important;
}

#services .services-grid-illustrated .service-card p {
  grid-area: text !important;
  margin: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  display: block !important;
  align-self: start !important;
}

/* Zone droite */
#services .services-grid-illustrated .service-card strong {
  grid-area: strong !important;
  margin: 0 !important;
  min-height: 0 !important;
  display: block !important;
  align-self: end !important;
}

#services .services-grid-illustrated .service-card span {
  grid-area: note !important;
  margin: 0 !important;
  min-height: 0 !important;
  display: block !important;
  align-self: start !important;
}

/* Harmonisation typographique */
#services .services-grid-illustrated .service-card h3,
#services .services-grid-illustrated .service-card strong {
  line-height: 1.15 !important;
}

#services .services-grid-illustrated .service-card p,
#services .services-grid-illustrated .service-card span {
  line-height: 1.45 !important;
}

/* Tablette */
@media (max-width: 1100px) {
  #services .services-grid-illustrated .service-card {
    grid-template-columns: 132px minmax(0, 1fr) !important;
    grid-template-areas:
      "media title"
      "media text"
      "media strong"
      "media note" !important;
    column-gap: 24px !important;
    row-gap: 8px !important;
    align-items: start !important;
  }

  #services .service-illustration.real-photo {
    width: 120px !important;
    height: 72px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #services .services-grid.services-grid-five.services-grid-illustrated {
    gap: 18px !important;
  }

  #services .services-grid-illustrated .service-card {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "media"
      "title"
      "text"
      "strong"
      "note" !important;
    row-gap: 10px !important;
    column-gap: 0 !important;
    padding: 18px 18px 22px !important;
  }

  #services .services-grid-illustrated .service-media {
    justify-content: flex-start !important;
  }

  #services .service-illustration.real-photo {
    width: 124px !important;
    height: 74px !important;
    border-radius: 20px !important;
  }
}


/* =========================================================
   ASSISTANT CONVERSATIONNEL LOCAL — SANS API / SANS IA
   ========================================================= */
.tecni-chat {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 1200;
  font-family: inherit;
}

.tecni-chat-toggle {
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(15, 66, 102, .24);
  font: inherit;
  font-size: .92rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tecni-chat-toggle:hover,
.tecni-chat-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 66, 102, .3);
}

.tecni-chat-toggle-icon {
  font-size: 1.05rem;
}

.tecni-chat-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 140px));
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(13, 50, 78, .22);
}

.tecni-chat[data-state="open"] .tecni-chat-panel {
  display: grid;
}

.tecni-chat-header {
  padding: 18px 18px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.tecni-chat-header strong,
.tecni-chat-header span {
  display: block;
}

.tecni-chat-header strong {
  font-size: 1rem;
}

.tecni-chat-header span {
  margin-top: 3px;
  color: rgba(255,255,255,.8);
  font-size: .76rem;
}

.tecni-chat-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.tecni-chat-body {
  padding: 18px;
  overflow-y: auto;
  background: #f7fafc;
}

.tecni-chat-message {
  max-width: 88%;
  margin: 0 0 11px;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: .88rem;
  line-height: 1.45;
}

.tecni-chat-message.bot {
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.tecni-chat-message.user {
  margin-left: auto;
  color: #fff;
  background: var(--blue);
  border-bottom-right-radius: 6px;
}

.tecni-chat-actions {
  padding: 12px 14px 14px;
  display: grid;
  gap: 8px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.tecni-chat-choice {
  width: 100%;
  padding: 10px 12px;
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid rgba(40,124,184,.22);
  border-radius: 12px;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.tecni-chat-choice:hover,
.tecni-chat-choice:focus-visible {
  background: rgba(40,124,184,.06);
  border-color: rgba(40,124,184,.42);
  transform: translateY(-1px);
}

.tecni-chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.tecni-chat-input,
.tecni-chat-textarea {
  width: 100%;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: .86rem;
  outline: none;
}

.tecni-chat-input {
  min-height: 44px;
  padding: 0 12px;
}

.tecni-chat-textarea {
  min-height: 86px;
  padding: 11px 12px;
  resize: vertical;
}

.tecni-chat-input:focus,
.tecni-chat-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40,124,184,.1);
}

.tecni-chat-send {
  min-width: 82px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
}

.tecni-chat-summary {
  margin-top: 8px;
  padding: 12px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: .8rem;
  line-height: 1.5;
}

.tecni-chat-primary,
.tecni-chat-secondary {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: .84rem;
  font-weight: 900;
  cursor: pointer;
}

.tecni-chat-primary {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.tecni-chat-secondary {
  color: var(--blue);
  background: #fff;
  border: 1px solid rgba(40,124,184,.3);
}

.tecni-chat-footer {
  padding: 10px 14px 12px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: .68rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 768px) {
  .tecni-chat {
    right: 14px;
    bottom: 82px;
  }

  .tecni-chat-toggle {
    min-height: 48px;
    padding-inline: 15px;
  }

  .tecni-chat-panel {
    position: fixed;
    right: 10px;
    bottom: 138px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 160px);
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tecni-chat-toggle,
  .tecni-chat-choice {
    transition: none;
  }
}


/* =========================================================
   BULLE D'ACCROCHE DU CHATBOT
   ========================================================= */

.tecni-chat-teaser {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(350px, calc(100vw - 36px));
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.98);
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
  pointer-events: none;
}

.tecni-chat-teaser.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tecni-chat-teaser-main {
  flex: 1;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-dark);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(40,124,184,.16);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(12,58,89,.18);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tecni-chat-teaser-main:hover,
.tecni-chat-teaser-main:focus-visible {
  border-color: rgba(40,124,184,.34);
  box-shadow: 0 22px 52px rgba(12,58,89,.22);
}

.tecni-chat-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(40,124,184,.12), rgba(0,163,163,.12));
  border: 1px solid rgba(40,124,184,.14);
  border-radius: 50%;
  font-size: 1.45rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.tecni-chat-teaser-copy {
  min-width: 0;
  display: block;
}

.tecni-chat-teaser-copy strong,
.tecni-chat-teaser-copy span {
  display: block;
}

.tecni-chat-teaser-copy strong {
  margin-bottom: 3px;
  color: var(--blue-deep);
  font-size: .9rem;
  line-height: 1.25;
}

.tecni-chat-teaser-copy span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.tecni-chat-teaser-close {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(12,58,89,.12);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.tecni-chat[data-state="open"] .tecni-chat-teaser {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .tecni-chat-teaser {
    position: fixed;
    right: 12px;
    bottom: 138px;
    left: 12px;
    width: auto;
  }

  .tecni-chat-teaser-main {
    padding: 12px 13px;
  }

  .tecni-chat-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tecni-chat-teaser {
    transition: none;
  }
}


/* Avatar technicien du chatbot */
.tecni-chat-avatar,
.tecni-chat-toggle-icon--avatar,
.tecni-chat-header-avatar {
  overflow: hidden;
}

.tecni-chat-avatar-image,
.tecni-chat-toggle-avatar,
.tecni-chat-header-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tecni-chat-toggle-icon--avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
}

.tecni-chat-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tecni-chat-header-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  background: rgba(255,255,255,.14);
}

@media (max-width: 768px) {
  .tecni-chat-header-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .tecni-chat-toggle-icon--avatar {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}


/* =========================================================
   AVATAR FLOTTANT "GÉNIE" AU-DESSUS DU CHATBOT
   ========================================================= */

.tecni-chat-spirit {
  position: absolute;
  right: 18px;
  bottom: 132px;
  width: 72px;
  height: 92px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 3;
  animation: tecniSpiritFloat 3.8s ease-in-out infinite;
}

.tecni-chat-spirit:hover .tecni-chat-spirit-avatar,
.tecni-chat-spirit:focus-visible .tecni-chat-spirit-avatar {
  transform: translateY(-2px) scale(1.03);
}

.tecni-chat-spirit-glow {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 44px;
  height: 16px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(40,124,184,.32) 0%, rgba(40,124,184,.16) 45%, rgba(40,124,184,0) 76%);
  filter: blur(1px);
  animation: tecniSpiritGlow 3.8s ease-in-out infinite;
}

.tecni-chat-spirit-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(10, 58, 88, .24);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,247,252,.96));
  transition: transform .2s ease;
}

.tecni-chat-spirit-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tecni-chat[data-state="open"] .tecni-chat-spirit {
  opacity: .42;
}

.tecni-chat-teaser {
  right: 16px;
  bottom: 158px;
}

.tecni-chat-toggle {
  min-height: 50px;
}

.tecni-chat-toggle-icon {
  font-size: 1rem;
}

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

@keyframes tecniSpiritGlow {
  0%, 100% {
    transform: translateX(-50%) scale(.92);
    opacity: .62;
  }
  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: .94;
  }
}

@media (max-width: 768px) {
  .tecni-chat-spirit {
    position: fixed;
    right: 20px;
    bottom: 126px;
    width: 64px;
    height: 82px;
  }

  .tecni-chat-spirit-avatar {
    width: 58px;
    height: 58px;
  }

  .tecni-chat-spirit-glow {
    width: 38px;
    height: 14px;
  }

  .tecni-chat-teaser {
    right: 12px;
    bottom: 198px;
    left: 12px;
  }
}


/* =========================================================
   BULLE PARLANTE LIÉE À L'AVATAR
   ========================================================= */
.tecni-chat-teaser--speech {
  z-index: 5;
  right: 6px;
  bottom: 234px;
  width: 220px;
}

.tecni-chat-teaser--speech .tecni-chat-teaser-main {
  position: relative;
  min-height: 92px;
  padding: 16px 18px;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(12,58,89,.18);
  background: rgba(255,255,255,.98);
}

.tecni-chat-teaser--speech .tecni-chat-teaser-main::after {
  content: "";
  position: absolute;
  right: 46px;
  bottom: -10px;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,.98);
  border-right: 1px solid rgba(40,124,184,.16);
  border-bottom: 1px solid rgba(40,124,184,.16);
  transform: rotate(45deg);
  border-bottom-right-radius: 5px;
}

.tecni-chat-teaser--speech .tecni-chat-teaser-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.tecni-chat-teaser--speech .tecni-chat-teaser-copy strong {
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.2;
}

.tecni-chat-teaser--speech .tecni-chat-teaser-copy span {
  display: block;
  font-size: .92rem;
  line-height: 1.35;
}

.tecni-chat-teaser--speech .tecni-chat-teaser-close {
  position: absolute;
  top: -8px;
  right: -8px;
  margin-top: 0;
  z-index: 2;
}

@media (max-width: 768px) {
  .tecni-chat-teaser--speech {
    z-index: 5;
    right: 6px;
    left: auto;
    bottom: 214px;
    width: 205px;
  }

  .tecni-chat-teaser--speech .tecni-chat-teaser-main {
    min-height: 84px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .tecni-chat-teaser--speech .tecni-chat-teaser-main::after {
    right: 42px;
    bottom: -9px;
    width: 18px;
    height: 18px;
  }

  .tecni-chat-teaser--speech .tecni-chat-teaser-copy strong {
    font-size: .96rem;
  }

  .tecni-chat-teaser--speech .tecni-chat-teaser-copy span {
    font-size: .88rem;
  }
}


/* =========================================================
   CORRECTION FINALE BULLE 2 LIGNES AU-DESSUS DE L'AVATAR
   ========================================================= */
.tecni-chat-teaser--speech {
  right: 10px !important;
  bottom: 232px !important;
  width: 214px !important;
  max-width: 214px !important;
}

.tecni-chat-teaser--speech .tecni-chat-teaser-main {
  min-height: 88px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.tecni-chat-teaser--speech .tecni-chat-teaser-copy {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.tecni-chat-teaser--speech .tecni-chat-bubble-title,
.tecni-chat-teaser--speech .tecni-chat-bubble-text,
.tecni-chat-teaser--speech .tecni-chat-teaser-copy strong,
.tecni-chat-teaser--speech .tecni-chat-teaser-copy span {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  text-align: left !important;
}

.tecni-chat-teaser--speech .tecni-chat-bubble-title,
.tecni-chat-teaser--speech .tecni-chat-teaser-copy strong {
  margin: 0 0 6px 0 !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

.tecni-chat-teaser--speech .tecni-chat-bubble-text,
.tecni-chat-teaser--speech .tecni-chat-teaser-copy span {
  font-size: .9rem !important;
  line-height: 1.35 !important;
}

.tecni-chat-teaser--speech .tecni-chat-teaser-main::after {
  right: 44px !important;
  bottom: -10px !important;
}

@media (max-width: 768px) {
  .tecni-chat-teaser--speech {
    right: 8px !important;
    left: auto !important;
    bottom: 212px !important;
    width: 206px !important;
    max-width: 206px !important;
  }

  .tecni-chat-teaser--speech .tecni-chat-teaser-main {
    min-height: 84px !important;
    padding: 13px 15px !important;
    border-radius: 16px !important;
  }

  .tecni-chat-teaser--speech .tecni-chat-bubble-title,
  .tecni-chat-teaser--speech .tecni-chat-teaser-copy strong {
    font-size: .98rem !important;
  }

  .tecni-chat-teaser--speech .tecni-chat-bubble-text,
  .tecni-chat-teaser--speech .tecni-chat-teaser-copy span {
    font-size: .87rem !important;
  }
}


/* =========================================================
   CORRECTION CHATBOT OUVERT — AVATAR NE BLOQUE PLUS LES CLICS
   ========================================================= */
.tecni-chat[data-state="open"] .tecni-chat-spirit,
.tecni-chat[data-state="open"] .tecni-chat-teaser {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tecni-chat[data-state="open"] .tecni-chat-spirit {
  display: none !important;
}

.tecni-chat[data-state="open"] .tecni-chat-panel {
  z-index: 20 !important;
}

.tecni-chat-actions,
.tecni-chat-input-row,
.tecni-chat-send,
.tecni-chat-primary,
.tecni-chat-secondary {
  position: relative;
  z-index: 25;
}

/* SEO local pages */
#services .service-card h3 a{color:inherit;text-decoration:none}#services .service-card h3 a:hover{color:var(--blue);text-decoration:underline;text-underline-offset:4px}.zone-seo-link{display:inline-block;margin-top:18px;color:#fff;font-weight:900;text-decoration:underline;text-underline-offset:5px}.seo-page-main{background:#f7fafc}.seo-hero{padding:72px 0 44px}.seo-breadcrumbs{margin-bottom:24px;color:var(--muted);font-size:.86rem}.seo-breadcrumbs a{color:var(--blue);font-weight:800;text-decoration:none}.seo-hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:clamp(34px,6vw,78px);align-items:center}.seo-hero h1{margin:10px 0 20px;color:var(--blue-deep);font-size:clamp(2.5rem,5vw,4.7rem);line-height:.98;letter-spacing:-.045em}.seo-hero-lead{max-width:760px;color:var(--muted);font-size:1.12rem;line-height:1.7}.seo-hero-image{overflow:hidden;border:1px solid var(--line);border-radius:34px;box-shadow:0 24px 62px rgba(13,50,78,.12);background:#fff}.seo-hero-image img{width:100%;aspect-ratio:16/10;display:block;object-fit:cover}.seo-content-section{padding:34px 0 72px}.seo-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:42px;align-items:start}.seo-article{padding:clamp(28px,4vw,48px);background:#fff;border:1px solid var(--line);border-radius:30px;box-shadow:0 18px 45px rgba(13,50,78,.07)}.seo-article h2{margin:34px 0 14px;color:var(--blue-deep);font-size:clamp(1.55rem,2.6vw,2.25rem)}.seo-article h2:first-child{margin-top:0}.seo-article h3{margin:24px 0 8px;color:var(--blue-deep)}.seo-article p,.seo-article li{color:var(--muted);line-height:1.72}.seo-check-list{padding-left:1.25rem}.seo-check-list li{margin:7px 0}.seo-sidebar{position:sticky;top:96px;display:grid;gap:18px}.seo-side-card{padding:24px;background:#fff;border:1px solid var(--line);border-radius:24px}.seo-side-card h2,.seo-side-card h3{margin:0 0 12px;color:var(--blue-deep)}.seo-side-card p{color:var(--muted);line-height:1.55}.seo-side-links{display:grid;gap:9px;margin-top:14px}.seo-side-links a{color:var(--blue);font-weight:800;text-decoration:none}.seo-local-band{margin-top:34px;padding:30px;color:#fff;background:linear-gradient(90deg,#163f60,#2f80ba);border-radius:28px}.seo-local-band h2{margin:0 0 10px;color:#fff}.seo-local-band p{margin:0;color:rgba(255,255,255,.87)}.seo-faq{display:grid;gap:14px;margin-top:18px}.seo-faq article{padding:18px 20px;background:#f8fbfd;border:1px solid var(--line);border-radius:18px}.seo-faq h3{margin:0 0 6px;font-size:1rem}.seo-page-cta{padding:48px 0 78px}.seo-page-cta-inner{padding:36px;display:flex;align-items:center;justify-content:space-between;gap:28px;color:#fff;background:linear-gradient(90deg,#153f60,#2c80b9);border-radius:32px}.seo-page-cta-inner h2{margin:0 0 8px;color:#fff}.seo-page-cta-inner p{margin:0;color:rgba(255,255,255,.84)}@media(max-width:980px){.seo-hero-grid,.seo-content-grid{grid-template-columns:1fr}.seo-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.seo-hero{padding-top:42px}.seo-sidebar{grid-template-columns:1fr}.seo-page-cta-inner{align-items:flex-start;flex-direction:column;padding:26px 22px}.seo-article{border-radius:22px}}


/* =========================================================
   CARTES SERVICES ENTIÈREMENT CLIQUABLES
   ========================================================= */
#services .service-card-clickable {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

#services .service-card-clickable h3,
#services .service-card-clickable p,
#services .service-card-clickable strong,
#services .service-card-clickable span {
  color: inherit;
}

#services .service-card-clickable:hover,
#services .service-card-clickable:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(40, 124, 184, .30);
  box-shadow: 0 18px 38px rgba(12, 58, 89, .12);
  outline: none;
}

#services .service-card-clickable:focus-visible {
  box-shadow: 0 0 0 4px rgba(40,124,184,.16), 0 18px 38px rgba(12,58,89,.12);
}


/* =========================================================
   ASSURANCE DÉCENNALE
   ========================================================= */
.advantage-insurance {
  border-color: rgba(40,124,184,.20);
  background: linear-gradient(145deg, rgba(40,124,184,.05), rgba(255,255,255,.98));
}

.seo-insurance-card {
  border-color: rgba(40,124,184,.24);
  background: linear-gradient(145deg, #ffffff, #f5fbff);
}

.seo-insurance-icon {
  margin: 0 0 10px !important;
  font-size: 1.7rem;
  line-height: 1;
}

.seo-insurance-note {
  margin-bottom: 0 !important;
  font-size: .88rem;
  font-weight: 800;
  color: var(--blue-deep) !important;
}


/* =========================================================
   RESPONSIVE GRANDS ÉCRANS — 1440px / 2K / 4K
   ========================================================= */

/* Le site reste contenu sur les écrans classiques, mais exploite
   davantage l'espace disponible sur les grands écrans. */
@media (min-width: 1280px) {
  :root {
    --container: 1280px;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1380px;
  }

  .container {
    width: min(calc(100% - 72px), var(--container));
  }

  .hero {
    padding-top: clamp(72px, 6vw, 108px);
    padding-bottom: clamp(72px, 6vw, 108px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(500px, .92fr);
    gap: clamp(64px, 6vw, 110px);
  }

  .hero h1 {
    max-width: 860px;
    font-size: clamp(4.5rem, 5.1vw, 6rem);
  }

  .hero-lead {
    max-width: 760px;
    font-size: 1.24rem;
  }

  .hero-visual {
    max-width: 640px;
    width: 100%;
    justify-self: end;
  }

  .quick-contact-grid {
    gap: 28px;
  }

  .section-heading {
    max-width: 980px;
  }

  #services .services-grid.services-grid-five.services-grid-illustrated {
    gap: 26px !important;
  }

  #services .services-grid-illustrated .service-card {
    grid-template-columns: 180px minmax(0, 1.65fr) minmax(320px, .9fr) !important;
    column-gap: 46px !important;
    padding: 30px 38px !important;
  }

  #services .service-illustration.real-photo {
    width: 156px !important;
    height: 92px !important;
  }

  .brand-cards-grid {
    gap: 26px;
  }

  .advantages-grid,
  .contact-grid,
  .footer-grid {
    gap: clamp(34px, 4vw, 64px);
  }

  .zone-card {
    padding-left: clamp(42px, 5vw, 72px);
    padding-right: clamp(42px, 5vw, 72px);
  }

  /* Pages métiers */
  .seo-hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(470px, .88fr);
    gap: clamp(64px, 6vw, 112px);
  }

  .seo-hero h1 {
    max-width: 900px;
    font-size: clamp(4rem, 4.6vw, 5.6rem);
  }

  .seo-hero-lead {
    max-width: 840px;
    font-size: 1.2rem;
  }

  .seo-content-grid {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 54px;
  }

  .seo-article {
    padding: 52px 58px;
  }
}

@media (min-width: 1800px) {
  :root {
    --container: 1500px;
  }

  .container {
    width: min(calc(100% - 96px), var(--container));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(560px, .88fr);
    gap: 120px;
  }

  .hero h1 {
    max-width: 940px;
    font-size: 6.25rem;
  }

  .hero-visual {
    max-width: 690px;
  }

  #services .services-grid-illustrated .service-card {
    grid-template-columns: 190px minmax(0, 1.75fr) minmax(350px, .9fr) !important;
    column-gap: 54px !important;
    padding: 32px 42px !important;
  }

  #services .service-illustration.real-photo {
    width: 165px !important;
    height: 98px !important;
  }

  .seo-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(520px, .85fr);
    gap: 120px;
  }

  .seo-content-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 62px;
  }
}

/* Empêche tout débordement horizontal accidentel sur très grands écrans. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}


/* =========================================================
   HEADER DESKTOP — MARQUE ANCRÉE À GAUCHE
   Style général inchangé : seul l'alignement est modifié.
   ========================================================= */
@media (min-width: 1021px) {
  .site-header .header-inner {
    width: 100%;
    max-width: none;
    min-height: 82px;
    padding-inline: clamp(28px, 3vw, 64px);
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 3vw, 52px);
  }

  .site-header .brand {
    grid-column: 1;
    justify-self: start;
    margin: 0;
  }

  .site-header .main-nav {
    grid-column: 2;
    justify-self: center;
    margin: 0;
  }

  .site-header .menu-toggle {
    display: none;
  }
}

/* Sur très grand écran, la marque reste volontairement proche
   du bord gauche au lieu de suivre le conteneur central du contenu. */
@media (min-width: 1600px) {
  .site-header .header-inner {
    padding-inline: clamp(36px, 2.6vw, 72px);
  }
}


/* =========================================================
   HEADER DESKTOP — 3 ZONES ÉQUILIBRÉES
   Gauche = marque / Centre = navigation / Droite = actions
   ========================================================= */
@media (min-width: 1180px) {
  .site-header .header-inner {
    width: 100%;
    max-width: none;
    padding-inline: clamp(28px, 3vw, 64px);
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto minmax(360px, 1fr);
    align-items: center;
    gap: clamp(26px, 2.5vw, 46px);
  }

  .site-header .brand {
    grid-column: 1;
    justify-self: start;
    margin: 0;
  }

  .site-header .main-nav {
    grid-column: 2;
    justify-self: center;
    margin: 0;
    white-space: nowrap;
  }

  .site-header .header-actions-desktop {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }

  .site-header .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-deep);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 800;
    white-space: nowrap;
    transition: color .2s ease, transform .2s ease;
  }

  .site-header .header-phone:hover,
  .site-header .header-phone:focus-visible {
    color: var(--blue);
    transform: translateY(-1px);
    outline: none;
  }

  .site-header .header-cta {
    white-space: nowrap;
    padding-inline: 18px;
  }

  .site-header .menu-toggle {
    display: none;
  }
}

@media (min-width: 1600px) {
  .site-header .header-inner {
    grid-template-columns: minmax(320px, 1fr) auto minmax(420px, 1fr);
    padding-inline: clamp(38px, 2.5vw, 72px);
  }

  .site-header .header-actions-desktop {
    gap: 18px;
  }
}

/* Sur les formats intermédiaires, on garde le header actuel sans surcharge. */
@media (max-width: 1179px) {
  .site-header .header-actions-desktop {
    display: none !important;
  }
}


/* =========================================================
   HEADER — DÉGRADÉ BLEU + CTA SEUL À DROITE
   ========================================================= */
.site-header {
  background: linear-gradient(
    180deg,
    #BFD6E2 0%,
    #CFE1EA 45%,
    #DAEAF2 100%
  ) !important;
}

@media (min-width: 1180px) {
  .site-header .header-actions-desktop {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .site-header .header-phone {
    display: none !important;
  }
}
