:root {
  color-scheme: light;
  --ink: #142241;
  --muted: #4b576b;
  --paper: #ffffff;
  --line: #d8deea;
  --blue: #004aad;
  --blue-hover: #003777;
  --brand-red: #e60c0c;
  --red: #a91d33;
  --violet: #5e17eb;
  --brand-gradient: linear-gradient(110deg, #00458f, #642d83 60%, #a81d4c);
  --gutter: clamp(20px, 5vw, 72px);
  font-family: "Open Sauce One", system-ui, sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f8faff;
  color: var(--ink);
}

a { color: inherit; }

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

.skip-link {
  position: absolute;
  z-index: 1;
  top: 0;
  left: var(--gutter);
  padding: 12px 18px;
  background: var(--paper);
  transform: translateY(-110%);
}

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

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

.contact-bar {
  background: linear-gradient(105deg, #132b60, #4c245e 70%, #841e47);
  color: #fff;
}

.contact-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 10px;
  font-size: .83rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 9px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.phone-link:hover { text-decoration: underline; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.header-inner { justify-content: space-between; }

.header-inner {
  min-height: 86px;
  gap: 12px clamp(12px, 3vw, 24px);
  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; }
}

.main-nav { gap: 10px clamp(16px, 3.2vw, 38px); }

.main-nav a {
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

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

.nav-contact,
.nav-callback {
  display: inline-block;
  padding: 9px 17px;
  border-radius: 8px;
}

.nav-contact {
  border: 1px solid #c4cde2;
  color: var(--blue);
}

.main-nav .nav-callback {
  border: 1px solid transparent;
  background: var(--brand-gradient);
  color: var(--paper);
  font-weight: 750;
}

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

.hero {
  background:
    url("assets/fibres-teleo.svg") right center / clamp(640px, 60vw, 1150px) auto no-repeat,
    linear-gradient(115deg, #fafcff 14%, #eef3ff 63%, #faedf5);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding-block: clamp(54px, 6.5vw, 96px);
}

.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: #aebcda;
  background: var(--paper);
  color: var(--blue);
}

.button-outline:hover { background: #e9f0ff; }

.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 {
  padding: clamp(19px, 2.3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.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: #9c9ccc;
  box-shadow: 0 9px 25px #382c7014;
}

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

.service-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.service-index,
.detail-mark span {
  color: #715083;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .13em;
}

.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;
}

.method-section {
  background: linear-gradient(118deg, #111e43, #24234e 66%, #542544);
  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 li > span {
  color: #edcfff;
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .11em;
}

.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 #dce0ef;
  border-radius: 16px;
  background: linear-gradient(115deg, #edf4ff, #f5f0ff 61%, #fff1f5);
}

.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: #ffffffba;
}

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

.detail-hero {
  border-bottom: 1px solid var(--line);
  background:
    url("assets/fibres-teleo.svg") right center / clamp(560px, 52vw, 900px) auto no-repeat,
    linear-gradient(113deg, #fbfcff, #eef3ff 65%, #f9eaf4);
}

.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 { font-size: clamp(2rem, 4vw, 3.8rem); }
.detail-hero .hero-actions { margin-top: 23px; }

.detail-mark {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 19px;
  border: 1px solid #fff;
  border-radius: 18px;
  background: #ffffffd9;
  box-shadow: 0 16px 38px #33296314;
}

.detail-mark span { justify-self: end; }

.detail-mark img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.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 h3 { margin-top: 0; }
.detail-card .service-preview { margin-bottom: 0; }

.example-section {
  border-block: 1px solid var(--line);
  background: #edf2ff;
}

.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(--paper);
}

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

.contact-section {
  background: #eef2fa;
  border-top: 1px solid var(--line);
}

.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;
}

address span { margin-top: 5px; }

.site-footer {
  background: #142241;
  color: #e0e7f6;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.3fr) auto;
  align-items: start;
  gap: 18px 30px;
  padding-block: 28px;
  font-size: .87rem;
}

.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; }

.privacy-notice { max-width: 760px; }
.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: 800px) {
  .hero,
  .detail-hero {
    background:
      linear-gradient(90deg, #f9fbfff9, #f6f9ffdc 64%, #f7effac8),
      url("assets/fibres-teleo.svg") right -90px center / 660px auto no-repeat,
      #eef3ff;
  }

  .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: 520px) {
  .contact-bar-inner { justify-content: center; }
  .contact-bar-inner > span { display: none; }
  .main-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .main-nav a {
    padding: 10px 6px;
    font-size: .84rem;
    text-align: center;
  }

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

/* 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(--paper);
}

.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); }
  }
}
