:root {
  color-scheme: light;
  --ink: #142241;
  --muted: #364359;
  --paper: #ffffff;
  --line: #7665a747;
  --blue: #004aad;
  --blue-hover: #003777;
  --brand-red: #e60c0c;
  --red: #a91d33;
  --violet: #5e17eb;
  --brand-gradient: linear-gradient(110deg, #00458f, #642d83 60%, #a81d4c);
  --surface-tint: linear-gradient(118deg, #bed3fae6, #cfbfeadc 56%, #efbbd3d9);
  --surface-hover: linear-gradient(118deg, #adcbfbed, #c9b4eeeb 56%, #efadceeb);
  --gutter: clamp(20px, 5vw, 72px);
  --header-height: 124px;
  --header-fade: clamp(20px, 2vw, 38px);
  --chat-mascot-size: clamp(112px, 10.5vw, 156px);
  scroll-padding-top: calc(var(--header-height) + var(--header-fade) + 8px);
  background: #d7dcf1;
  font-family: "Open Sauce One", system-ui, sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  color: var(--ink);
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0;
  left: var(--gutter);
  padding: 12px 18px;
  background: var(--surface-hover);
  transform: translateY(-110%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 calc(-1 * var(--header-fade));
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, #a9c7ffe0, #bfb0eecf 54%, #efa4c2d5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 calc(100% - var(--header-fade) - 6px), transparent);
  mask-image: linear-gradient(#000 calc(100% - var(--header-fade) - 6px), transparent);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 86px;
  gap: 12px clamp(12px, 2vw, 28px);
  padding-block: 9px;
}

.wordmark {
  position: relative;
  display: inline-flex;
}

.wordmark img {
  width: clamp(124px, 13vw, 168px);
  height: auto;
}

.wordmark-reflection {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wordmark-mask { mask-type: alpha; }

/* Couleurs du reflet animé sur le symbole infini */
#teleo-loop-light stop:nth-child(2) {
  stop-color: #f0d9ff;
}

#teleo-loop-light stop:nth-child(n + 3) {
  stop-color: #b54dff;
}

.wordmark-reflection use[href="#teleo-loop-path"] {
  stroke: #a13bff;
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark-reflection { display: block; }
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 11px;
  padding: 9px 15px;
  border: 1px solid #ffffff40;
  border-radius: 11px;
  background: var(--brand-gradient);
  box-shadow: 0 4px 15px #14224142;
  color: var(--paper);
  text-decoration: none;
}

.header-call:hover { box-shadow: 0 5px 20px #14224168; }

.header-call-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff26;
}

.header-call-text {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.header-call-label { font-size: .76rem; font-weight: 700; }

.header-call-number {
  font-size: clamp(1.08rem, 1.65vw, 1.3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.header-call-rate { font-size: .72rem; font-weight: 600; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px clamp(7px, 1vw, 12px);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px clamp(10px, 1.2vw, 17px);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.main-nav a:hover { text-decoration: underline; }

.main-nav .nav-link {
  border-color: var(--line);
  background: #cbbbe770;
  color: #183463;
}

.main-nav .nav-email {
  background: var(--brand-gradient);
  color: var(--paper);
  font-weight: 750;
}

.main-nav .nav-email:hover { background: var(--blue-hover); }
.header-call:focus-visible,
.nav-email:focus-visible { outline-color: var(--blue); }

.hero,
.detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.site-photo-track {
  display: flex;
  width: 100%;
  height: 100%;
}

.site-photo {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.site-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 50%;
}

.site-photo-centered img { object-position: center; }

.site-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, #cadcfae3 1%, #d3c9eedb 34%, #d6c1ebc7 53%, #b8b4ea68 72%, #ecadc33e);
}

.hero-motif {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: -1;
  width: max(100%, 720px);
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}

.site-backdrop .hero-motif {
  z-index: 2;
  opacity: .75;
}

.fibre-pulse { display: none; }

.hero-inner {
  padding-block: clamp(34px, min(6vw, 7vh), 90px) clamp(22px, min(3.8vw, 4.6vh), 58px);
}

.site-motion {
  display: none;
  position: fixed;
  right: clamp(10px, 2vw, 30px);
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 9;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-tint);
  box-shadow: 0 2px 10px #14224129;
  color: var(--ink);
  cursor: pointer;
}

.chat-launcher,
.chat-status {
  position: fixed;
  z-index: 11;
}

.chat-launcher {
  left: max(0px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: flex-start;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.chat-launcher:disabled { cursor: progress; }

.chat-launcher:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.chat-portrait {
  position: relative;
  display: block;
  flex: none;
  width: var(--chat-mascot-size);
  transform-origin: 50% 92%;
  filter: drop-shadow(0 5px 10px #1422415c);
}

.chat-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.chat-portrait .chat-paw {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: var(--chat-art-offset, 0px);
  display: none;
}

.chat-invite {
  position: relative;
  display: grid;
  gap: 2px;
  margin-block-start: clamp(10px, 2vw, 28px);
  margin-inline-start: -2px;
  padding: 8px 12px;
  border: 1px solid #e5dfffba;
  border-radius: 14px 14px 14px 5px;
  background: linear-gradient(120deg, #18305c, #4a276c);
  box-shadow: 0 5px 16px #14224142;
  color: var(--paper);
  font-size: clamp(.75rem, 1.15vw, .9rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: start;
  white-space: nowrap;
}

.chat-invite::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -5px;
  width: 8px;
  height: 8px;
  border-bottom: 1px solid #e5dfffba;
  border-left: 1px solid #e5dfffba;
  background: #21305f;
  transform: rotate(45deg);
}

.chat-invite strong { font-weight: 800; }
.chat-launcher:hover .chat-invite { border-color: var(--paper); }
.chat-launcher:disabled .chat-invite { opacity: .85; }

@media (prefers-reduced-motion: no-preference) {
  .chat-launcher { animation: teleo-chat-enter 820ms cubic-bezier(.2, .8, .24, 1) both; }
  .chat-portrait { animation: teleo-mascot-idle 5.8s ease-in-out .7s infinite; }

  @supports (clip-path: polygon(0 0, 100% 0, 100% 100%)) {
    /* La patte et le corps utilisent la même illustration. */
    .chat-portrait {
      --chat-paw-outline: 25% 41.15%, 27.08% 42.97%, 28.65% 44.01%, 29.17% 45.57%, 29.69% 46.88%,
        30.21% 48.18%, 30.99% 49.48%, 31.77% 51.04%, 33.85% 53.39%;
    }

    .chat-mascot {
      clip-path: polygon(
        0 41.15%, var(--chat-paw-outline), 34.38% 54.17%, 33.85% 56.51%, 30.99% 59.9%, 26.82% 61.72%, 26.04% 63.28%,
        0 63.28%, 0 100%, 100% 100%, 100% 0, 0 0
      );
    }

    .chat-portrait .chat-paw {
      display: block;
      clip-path: polygon(
        0 41.15%, var(--chat-paw-outline), 35.94% 54.95%, 34.9% 57.81%, 32.29% 60.94%, 28.39% 63.02%, 26.82% 64.06%,
        0 64.06%
      );
      transform-origin: 30.47% 58.07%;
      animation: teleo-mascot-wave 5.8s ease-in-out .7s infinite;
    }
  }

  @keyframes teleo-chat-enter {
    from { opacity: 0; transform: translateX(calc(-100% - 16px)); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes teleo-mascot-idle {
    0%, 10%, 52%, 100% { transform: none; }
    6% { transform: translateY(2px) scale(1.025, .975); }
    19% { transform: translateY(-7px) rotate(-3deg); }
    27% { transform: translateY(-5px) rotate(2deg); }
    35% { transform: translateY(-6px) rotate(-1.5deg); }
    44% { transform: translateY(1px) scale(1.02, .985); }
    76% { transform: translateY(-2px); }
  }

  @keyframes teleo-mascot-wave {
    0%, 10%, 49%, 100% { transform: rotate(0); }
    19% { transform: rotate(14deg); }
    25% { transform: rotate(-10deg); }
    32% { transform: rotate(13deg); }
    39% { transform: rotate(-5deg); }
  }
}

.chat-status {
  left: max(10px, env(safe-area-inset-left));
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--chat-mascot-size) + 9px);
  width: max-content;
  max-width: min(270px, calc(100% - 24px));
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 4px 14px #1422412e;
  color: var(--ink);
  font-size: .875rem;
}

.chat-status:empty { opacity: 0; pointer-events: none; }
.chat-status a { font-weight: 700; }

@media (min-width: 1440px) {
  :root {
    --chat-rail: calc((100vw - 1200px) / 2);
    --chat-mascot-size: clamp(160px, calc(var(--chat-rail) * 1.2), 192px);
    --chat-anchor-top: max(calc(var(--header-height) + 24px), 26vh);
  }

  .chat-launcher {
    top: var(--chat-anchor-top);
    bottom: auto;
    left: max(4px, env(safe-area-inset-left));
    flex-direction: column;
    align-items: center;
  }

  .chat-portrait {
    --chat-art-offset: calc(var(--chat-mascot-size) * -.13);
    width: min(calc(var(--chat-mascot-size) * .74), calc(var(--chat-rail) - 14px));
    height: var(--chat-mascot-size);
  }

  .chat-portrait img {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: var(--chat-art-offset);
    width: var(--chat-mascot-size);
  }

  .chat-invite {
    max-width: calc(var(--chat-rail) - 20px);
    margin: -10px 0 0;
    padding: 7px 8px;
    border-radius: 12px;
    font-size: .78rem;
    text-align: center;
    white-space: normal;
  }

  .chat-invite::before {
    top: -5px;
    left: calc(50% - 4px);
    border: solid #e5dfffba;
    border-width: 1px 0 0 1px;
  }

  .chat-status {
    top: calc(var(--chat-anchor-top) + var(--chat-mascot-size) + 64px);
    bottom: auto;
    max-width: min(270px, calc(var(--chat-rail) - 22px));
    overflow-wrap: anywhere;
  }
}

@media (min-width: 1800px) {
  .chat-launcher {
    flex-direction: row;
    align-items: flex-start;
  }

  .chat-invite {
    margin: 32px 0 0 5px;
    padding: 8px 12px;
    border-radius: 14px 14px 14px 5px;
    font-size: .9rem;
    text-align: start;
    white-space: nowrap;
  }

  .chat-invite::before {
    top: 16px;
    left: -5px;
    border-width: 0 0 1px 1px;
  }

  .chat-status { top: calc(var(--chat-anchor-top) + var(--chat-mascot-size) + 8px); }
}

.site-motion:hover { background: var(--surface-hover); }

.motion-play,
body[data-motion="paused"] .motion-pause { display: none; }

body[data-motion="paused"] .motion-play { display: inline; }

.site-motion:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  body[data-motion] .site-motion { display: grid; }

  body[data-motion] .site-photo-track {
    animation: site-photo-scroll 45s cubic-bezier(.42, 0, .22, 1) infinite;
  }

  body[data-motion] .partners-window {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }

  body[data-motion] .partners-track {
    width: max-content;
    animation: partners-scroll 45s linear infinite;
  }

  body[data-motion] .partners-logos {
    flex: none;
    flex-wrap: nowrap;
    justify-content: space-around;
    min-width: 100vw;
    padding-inline-end: var(--partner-gap);
  }

  body[data-motion] .partners-logos[aria-hidden="true"] { display: flex; }

  body[data-motion] .fibre-pulse {
    display: inline;
    color: #236ae8;
    stroke: currentColor;
    stroke-dasharray: 3.1px 1px .55px 95.35px;
    filter: drop-shadow(0 0 3px currentColor);
    animation: hero-fibre-flow 8.5s linear -2.1s infinite;
  }

  body[data-motion] .fibre-pulse:nth-child(2) {
    color: #7b36d9;
    animation-duration: 6.7s;
    animation-delay: -3.2s;
  }

  body[data-motion] .fibre-pulse:nth-child(3) {
    color: #b13b86;
    animation-duration: 10s;
    animation-delay: -5.8s;
  }

  body[data-motion="paused"] :is(.site-photo-track, .fibre-pulse, .partners-track, .chat-portrait, .chat-paw) {
    animation-play-state: paused;
  }

  @keyframes partners-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  @keyframes site-photo-scroll {
    0%, 7.5% { transform: translateX(0); }
    10%, 17.5% { transform: translateX(-100%); }
    20%, 27.5% { transform: translateX(-200%); }
    30%, 37.5% { transform: translateX(-300%); }
    40%, 47.5% { transform: translateX(-400%); }
    50%, 57.5% { transform: translateX(-500%); }
    60%, 67.5% { transform: translateX(-600%); }
    70%, 77.5% { transform: translateX(-700%); }
    80%, 87.5% { transform: translateX(-800%); }
    90%, 97.5% { transform: translateX(-900%); }
    100% { transform: translateX(-1000%); }
  }

  @keyframes hero-fibre-flow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -100px; }
  }
}

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

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Garet", "Open Sauce One", system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -.035em;
}

h1 {
  margin-bottom: 19px;
  font-size: clamp(2rem, 4.5vw, 4.3rem);
  letter-spacing: -.055em;
}

h1 span { color: var(--brand-red); }

.hero-description {
  max-width: 57ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: white;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}

.link-arrow { vertical-align: -.12em; }

.button:hover { background: var(--blue-hover); }
.button:focus-visible { outline-color: var(--blue); }

.button-outline {
  border-color: var(--line);
  background: var(--surface-tint);
  color: #183463;
}

.button-outline:hover { background: var(--surface-hover); }

.partners {
  --partner-gap: clamp(14px, 2.2vw, 30px);
  padding-block: 4px 10px;
}

.partners-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
  margin-block: 0 clamp(9px, 1.15vw, 15px);
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 1px #ffffffb3, 0 0 12px #ecf1ffcc;
}

.partners-title-accent { color: #563166; }

.partners-title::before,
.partners-title::after {
  content: "";
  width: min(100%, 92px);
  height: 7px;
}

.partners-title::before {
  justify-self: end;
  background:
    radial-gradient(circle at calc(100% - 3px) 50%, #435cb4 2px, transparent 2.75px),
    linear-gradient(90deg, transparent, #435cb4) center / 100% 1px no-repeat;
}

.partners-title::after {
  justify-self: start;
  background:
    radial-gradient(circle at 3px 50%, #a83867 2px, transparent 2.75px),
    linear-gradient(90deg, #a83867, transparent) center / 100% 1px no-repeat;
}

.partners-window {
  width: 100%;
  min-width: 0;
}

.partners-track,
.partners-logos { display: flex; }

.partners-logos {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--partner-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners-logos[aria-hidden="true"] { display: none; }

.partners-logos li {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(128px, 12vw, 176px);
  height: 64px;
  padding-inline: 8px;
}

.partners-logos img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 53px;
  object-fit: contain;
}

.activities,
.section-space {
  padding-block: clamp(44px, 5.6vw, 82px);
}

.section-lead {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted);
}

h2 {
  margin-top: 9px;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  margin-top: 30px;
}

.service-card,
.detail-card-content {
  padding: clamp(19px, 2.3vw, 28px);
}

.service-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-tint);
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 5px 18px #14224109;
}

.service-card:hover {
  border-color: #7261ae9c;
  background: var(--surface-hover);
  box-shadow: 0 9px 25px #382c7014;
}

.service-card:hover .service-link { text-decoration: underline; }

.service-card-top { margin-bottom: 8px; }

.service-logo {
  display: block;
  width: 88px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

h3 {
  margin-top: 7px;
  font-size: 1.27rem;
}

.service-card p,
.detail-card p,
.example-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.service-preview {
  margin: 16px 0 20px;
  padding-left: 1.14em;
  color: var(--muted);
  font-size: .9rem;
}

.service-preview li { margin: 5px 0; }
.service-preview li::marker { color: #7533a8; }

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: .9rem;
  font-weight: 750;
  text-underline-offset: 3px;
}

:is(.method-section, .example-section, .contact-section, .site-footer) {
  position: relative;
  isolation: isolate;
  --section-fade: linear-gradient(transparent, #000 32px, #000 calc(100% - 32px), transparent);
}

:is(.method-section, .example-section, .contact-section, .site-footer)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--section-tint);
  -webkit-mask-image: var(--section-fade);
  mask-image: var(--section-fade);
}

.method-section {
  --section-tint: linear-gradient(118deg, #15264ae8, #382553e0 66%, #672747d4);
  color: #fff;
}

.method-section .eyebrow { color: #edcfff; }
.method-section .section-lead,
.method-grid p { color: #dce1f0; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.method-grid li {
  padding-top: 15px;
  border-top: 1px solid #746a91;
}

.method-grid h3 { margin-top: 0; }
.method-grid p { margin: 9px 0 0; }

.project-panel,
.detail-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 62px);
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-tint);
}

.project-panel h2,
.detail-contact h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }

.project-panel p:not(.eyebrow),
.detail-contact p:not(.eyebrow) {
  margin: 14px 0 18px;
  color: var(--muted);
}

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

.project-list li {
  padding: 12px 14px;
  border-left: 3px solid #8352b0;
  background: linear-gradient(110deg, #aec6f5c9, #e0b0d4ae);
}

.project-list span {
  display: block;
  color: var(--muted);
  font-size: .92rem;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 220px);
  align-items: center;
  gap: clamp(20px, 5vw, 68px);
  padding-block: clamp(42px, 6vw, 80px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .85rem;
}

.breadcrumb a { color: var(--blue); }

.detail-hero h1 {
  max-width: 735px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}
.detail-hero .hero-actions { margin-top: 23px; }

.detail-mark {
  display: grid;
  justify-items: center;
}

.detail-mark img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px #d8d0f7ad);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: 27px;
}

.detail-card { overflow: hidden; }

.detail-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.detail-card h3 { margin-top: 0; }
.detail-card .service-preview { margin-bottom: 0; }

.example-section {
  --section-tint: linear-gradient(100deg, #adc6f878, #d7a6d764);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.example-grid article {
  padding: 16px 19px;
  border-left: 3px solid #8352b0;
  background: var(--surface-tint);
}

.example-grid h3 { margin: 0; }
.detail-contact .hero-actions { justify-content: flex-end; }

.contact-section {
  --section-tint: linear-gradient(100deg, #a9c5f98f, #db9dca70);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 70px);
  padding-block: clamp(32px, 5vw, 60px);
}

address {
  display: grid;
  justify-items: start;
  gap: 7px;
  font-style: normal;
}

address a {
  color: var(--blue);
  font-weight: 650;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.site-footer {
  --section-tint: linear-gradient(110deg, #142649e8, #432858e0 70%, #632343dd);
  --section-fade: linear-gradient(transparent, #000 24px);
  color: #e0e7f6;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 20px clamp(20px, 4vw, 52px);
  padding-block: 30px max(58px, calc(env(safe-area-inset-bottom) + 46px));
  font-size: .87rem;
}

@media (width < 1440px) {
  .footer-inner {
    padding-block-end: calc(max(12px, env(safe-area-inset-bottom)) + var(--chat-mascot-size) + 16px);
  }
}

.footer-inner strong { color: #fff; }
.footer-inner p { margin: 5px 0; }
.footer-inner a { text-underline-offset: 3px; }
.footer-privacy { display: block; width: fit-content; margin-top: 6px; }

.footer-contact { gap: 3px; }
.footer-contact a { color: inherit; }

.footer-addresses {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px clamp(12px, 2.5vw, 32px);
}

.footer-addresses > div {
  padding-inline-start: 12px;
  border-inline-start: 2px solid #d9c9ff80;
  overflow-wrap: anywhere;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 12px 22px;
  padding-block-start: 16px;
  border-block-start: 1px solid #e0e7f638;
}

.privacy-notice {
  max-width: 760px;
  margin-block: clamp(22px, 4vw, 48px);
  padding-inline: clamp(18px, 4vw, 44px);
  border-radius: 14px;
  background: var(--surface-tint);
}
.privacy-notice h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.privacy-notice h2 { margin-top: 1.75rem; font-size: clamp(1.3rem, 3vw, 1.55rem); }
.privacy-notice a { color: var(--blue); }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-top { white-space: nowrap; }

@media (max-width: 1200px) {
  .site-backdrop::after {
    background: linear-gradient(97deg, #cddcfbe8 1%, #d2c5eed6 64%, #e2b4d489);
  }
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 16px;
  }

  .header-call { justify-self: end; }

  .main-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .site-backdrop::after {
    background: linear-gradient(105deg, #cddcfbe8 3%, #d5c8eedc 54%, #e7bedac4);
  }

  .hero-motif { opacity: .8; }

  .service-grid,
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .project-panel,
  .detail-hero-inner,
  .detail-contact,
  .footer-inner,
  .contact-inner { grid-template-columns: minmax(0, 1fr); }

  .detail-mark { display: none; }
  .detail-contact .hero-actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
  :root { --chat-mascot-size: 94px; }

  .header-inner {
    min-height: 0;
    gap: 7px 10px;
    padding-block: 7px;
  }

  .wordmark img { width: clamp(76px, 23vw, 106px); }

  .header-call {
    gap: 8px;
    padding: 7px 10px;
  }

  .header-call-icon { width: 32px; height: 32px; }
  .header-call-number { font-size: 1.06rem; }
  .header-call-label { font-size: .72rem; }
  .main-nav { gap: 4px; }

  .main-nav a {
    min-height: 42px;
    padding: 4px 3px;
    font-size: .8rem;
    line-height: 1.2;
  }

  .hero-inner { padding-block: 28px 22px; }
  .hero-description { margin-bottom: 20px; }
  .hero .hero-actions { gap: 8px 10px; }

  .hero .hero-actions .button {
    min-height: 44px;
    padding: 8px 12px;
    font-size: .85rem;
  }

  .partners-logos li { height: 59px; }
  .partners-logos img { max-height: 49px; }
}

@media (max-width: 520px) {
  .footer-addresses { grid-template-columns: minmax(0, 1fr); }

  .service-grid,
  .example-grid,
  .method-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 370px) and (max-height: 700px) {
  .hero-inner { padding-block: 20px 16px; }

  .hero h1 {
    margin-bottom: 14px;
    font-size: 1.65rem;
  }

  .hero-description {
    margin-bottom: 16px;
    font-size: .93rem;
    line-height: 1.45;
  }

  .hero .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: stretch;
  }

  .hero .hero-actions .button {
    justify-content: center;
    padding: 6px 7px;
    line-height: 1.25;
    text-align: center;
  }

  .partners-title {
    margin-block-end: 8px;
    font-size: 1.125rem;
  }

  .partners-logos li { height: 54px; }
  .partners-logos img { max-height: 47px; }
}

/* Demandes de contact et de rappel */
[hidden] { display: none !important; }

.hero-actions,
.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.secondary-link {
  color: var(--blue);
  font-size: .94rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.contact-intro {
  max-width: 37ch;
  margin: 16px 0 12px;
  color: var(--muted);
}

.contact-callback {
  display: inline-block;
  margin-bottom: 16px;
}

.contact-form {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-tint);
}

.contact-form h3 { margin-top: 0; }

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

.field-wide { grid-column: 1 / -1; }

.form-fields label {
  display: block;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
}

.form-fields input,
.form-fields textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 10px;
  border: 1px solid #aebacc;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.form-fields textarea { resize: vertical; }

.request-form button,
.assistant-dialog button {
  cursor: pointer;
  font-family: inherit;
}

button.button { border: 1px solid transparent; }

button:disabled {
  cursor: wait;
  opacity: .65;
}

.form-fields input:focus-visible,
.form-fields textarea:focus-visible,
.request-form button:focus-visible,
.assistant-dialog button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.form-note,
.demo-note,
.form-status,
.optional {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 400;
}

.form-note { margin: 12px 0; }

.demo-note {
  margin: 12px 0 14px;
  padding: 7px 10px;
  border-left: 2px solid #8498bc;
  background: #eef2fa;
}

.form-status { margin: 10px 0 0; }
.form-status:empty { margin: 0; }
.form-status[data-error="true"] { color: var(--red); }

.assistant-dialog {
  width: min(100% - 24px, 480px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 60px #1422412b;
}

.assistant-dialog::backdrop { background: #14224180; }

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #eef2fa;
}

.assistant-header h2 { font-size: 1.65rem; }

.assistant-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-brand .eyebrow { color: var(--violet); }

.assistant-mascot {
  width: clamp(42px, 12vw, 58px);
  height: auto;
}

.assistant-close {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #aebacc;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}

.assistant-body { padding: 20px 22px 24px; }
.assistant-body .demo-note { margin-top: 0; }
.assistant-body h3 { font-size: 1.25rem; }
.assistant-body section > p:not(.step-number) { color: var(--muted); }

.step-number {
  margin: 0 0 8px;
  color: var(--red);
  font-size: .76rem;
  font-weight: 700;
}

.outline-button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #aebacc;
  border-radius: 3px;
  background: var(--paper);
  color: var(--blue);
  font-size: .9rem;
  font-weight: 650;
}

.outline-button:hover,
.assistant-close:hover { background: #eef2fa; }

.topic-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 8px;
}

.back-button {
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.selected-topic { margin: 10px 0 14px; }
.selected-topic strong { margin-left: 6px; color: var(--ink); }

@media (max-width: 420px) {
  .form-fields { grid-template-columns: minmax(0, 1fr); }
  .assistant-header,
  .assistant-body { padding-inline: 15px; }
}

@media (prefers-reduced-motion: no-preference) {
  .assistant-dialog[open] { animation: assistant-appear 220ms ease-out both; }

  @keyframes assistant-appear {
    from { opacity: .5; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
