/* Aerolism UX V2 — isolated presentation layer. */
html{scroll-behavior:auto}body{display:flow-root;min-height:0}main{max-width:1360px;padding:40px 40px 24px}header{padding:16px max(4vw,24px)}.brand-mascot{width:64px;height:47px}.intro{align-items:flex-start;margin-bottom:24px}.intro>div{max-width:850px}h1{font-size:clamp(28px,3vw,40px);line-height:1.18;max-width:800px}.intro p:last-child{font-size:17px;line-height:1.65;max-width:72ch}.badge{margin-top:4px;white-space:normal;max-width:210px;flex-shrink:0}.service-promises{background:transparent;color:#172536;box-shadow:none;border:0;border-bottom:1px solid #d4dee6;border-radius:0;margin:0 0 24px;padding-bottom:18px}.service-promises li{padding:4px 20px;gap:12px}.service-promises li:first-child{padding-left:0}.service-promises li+li:before{background:#d4dee6;top:3px;bottom:3px}.service-promises strong{font-size:16px;line-height:1.5}.promise-label{font-size:13px;color:#526477}.promise-icon{width:34px;height:34px;border-radius:8px;background:#fff;color:#86611e;border-color:#d8c49c}.promise-icon svg{width:20px;height:20px}.promise-icon .french-flag{width:24px;height:16px}.ux-steps{display:flex;gap:28px;margin-bottom:24px;flex-wrap:wrap}.ux-steps a{font-size:14px;color:#334b60;text-decoration:none}.ux-steps span{color:#86611e;font-weight:700;margin-right:7px}.ux-steps a:hover{text-decoration:underline}.workspace{align-items:start;grid-template-columns:minmax(0,1.4fr) minmax(330px,1fr);gap:28px}.model-panel,.settings,.quote,.contact{padding:28px;border-radius:12px}.model-panel{min-height:580px}.drop{min-height:330px;border-radius:10px}.drop strong{font-size:22px}.model-foot{margin-top:24px}h2{font-size:20px}.settings>label{margin-top:22px}.quote{flex:none}.quote-notice{font-size:13px;line-height:1.7}.contact{margin-top:36px}.contact>p{font-size:16px;line-height:1.7;max-width:75ch}.contact-grid{gap:24px;margin:28px 0}.confirm{line-height:1.65}.primary{min-height:48px}.ux-resources{margin-top:64px;padding-top:40px;border-top:1px solid #d4dee6}.ux-resources>h2{font-size:30px;line-height:1.25}.ux-resource-intro{font-size:17px;color:#526477;line-height:1.65}.applications-showcase{margin:28px 0 40px}.showcase-heading{display:none}.showcase-grid{gap:20px}.showcase-card p{font-size:15px;line-height:1.75}.showcase-card h3{font-size:19px}.showcase-card figcaption{padding:24px 20px}.showcase-note{font-size:13px;max-width:95ch}.ux-guide{border-top:1px solid #cbd6e0;padding:0;margin:0}.ux-guide:last-child{border-bottom:1px solid #cbd6e0}.ux-guide>summary{padding:24px 8px;font-size:19px;line-height:1.5}.ux-guide>section{margin:0 0 24px;padding:28px;border-top:1px solid #dae1e8}.ux-guide p,.ux-guide li{font-size:16px;line-height:1.75;text-align:left;hyphens:none}.ux-guide>section>p,.annealing-heading>p:last-child{max-width:78ch}.application-grid p,.annealing-benefits p,.annealing-materials p{font-size:15px;text-align:left;hyphens:none}.positioning .positioning-note,.positioning .positioning-invite,.guide-note,.engineering-notes p,.engineering-method p,.annealing-service{font-size:14px;line-height:1.75}.material-table{font-size:14px}.material-table caption{font-size:13px}#ux-options,#ux-contact{scroll-margin-top:24px}.material-help-link{margin:14px 0;font-size:14px}a:focus-visible,summary:focus-visible{outline:3px solid #a0782c;outline-offset:4px}p{hyphens:none}footer{margin-top:28px}
@media(max-width:1000px){main{padding:28px 24px}.intro{display:block}.badge{margin-top:14px}.showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.workspace{grid-template-columns:1fr}.model-panel{min-height:0}.ux-steps{gap:12px 24px}.contact{margin-top:28px}}
@media(max-width:600px){main{padding:24px 16px}.intro p:last-child{font-size:16px}.header-note{display:none}.service-promises{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.service-promises li,.service-promises li:first-child{padding:0;display:block}.service-promises li+li:before{display:none}.promise-icon{display:none}.service-promises strong{font-size:14px}.promise-label{font-size:11px;min-height:32px}.ux-steps{display:grid;gap:9px}.model-panel,.settings,.quote,.contact{padding:20px}.drop{min-height:260px;padding:18px}.drop strong{font-size:19px}.file-tabs button{padding:10px 8px;font-size:13px}.ux-resources{margin-top:40px;padding-top:28px}.ux-resources>h2{font-size:25px}.showcase-grid{grid-template-columns:1fr}.ux-guide>summary{font-size:17px;padding:22px 4px}.ux-guide>section{padding:20px 16px}.contact-grid{gap:20px}}

/* Lisibilité du bandeau et des étapes */
.promise-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.promise-icon svg {
  width: 28px;
  height: 28px;
}
.promise-icon .french-flag {
  width: 34px;
  height: 23px;
}
.promise-label {
  font-size: 15px;
}
.service-promises strong {
  font-size: 20px;
}
.service-promises li {
  gap: 16px;
}
.ux-steps a {
  font-size: 16px;
}

@media (max-width: 600px) {
  .promise-icon {
    display: grid;
    margin-bottom: 10px;
  }
  .promise-label {
    font-size: 13px;
    min-height: 40px;
  }
  .service-promises strong {
    font-size: 16px;
  }
  .ux-steps a {
    font-size: 15px;
  }
}

/* Bandeau des engagements : bleu nuit et or */
.service-promises {
  background: #172536;
  color: #fff;
  border: 1px solid #293c50;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 28px;
}
.service-promises li,
.service-promises li:first-child {
  padding: 20px 24px;
}
.service-promises li + li::before {
  background: #405062;
  top: 20px;
  bottom: 20px;
}
.promise-label {
  color: #c9d5df;
}
.service-promises strong {
  color: #fff;
}
.promise-icon {
  color: #f4c569;
  background: #edb64d0d;
  border-color: #edb64d55;
}
.promise-origin {
  background: #ffffff09;
  border-color: #ffffff26;
}

/* Touches dorées sur les panneaux */
.model-panel,
.settings,
.contact {
  border-top: 3px solid #edb64d;
}

/* Rubriques techniques */
.ux-guide > summary {
  background: #172536;
  color: #fff;
  padding: 20px 24px;
  border-left: 3px solid #edb64d;
  border-radius: 8px;
}
.ux-guide {
  border: 0;
  margin-bottom: 14px;
}
.ux-guide:last-child {
  border-bottom: 0;
}
.ux-guide[open] > summary {
  border-radius: 8px 8px 0 0;
}

@media (max-width: 600px) {
  .service-promises li,
  .service-promises li:first-child {
    padding: 16px 10px;
  }
  .ux-guide > summary {
    padding: 18px 16px;
  }
}

/* Pictogrammes communs au parcours et aux titres */
.ux-steps a:nth-child(1),
.model-panel .panel-heading h2 {
  --step-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edb64d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V3m-5 5 5-5 5 5M4 15v5h16v-5'/%3E%3C/svg%3E");
}
.ux-steps a:nth-child(2),
.settings > h2 {
  --step-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edb64d' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 3v5m0 4v9M12 3v10m0 4v4M20 3v2m0 4v12M1 10h6m2 5h6m2-8h6'/%3E%3C/svg%3E");
}
.ux-steps a:nth-child(3),
.contact > h2 {
  --step-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edb64d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 3-7 18-4-7-7-4 18-7ZM10 14 21 3'/%3E%3C/svg%3E");
}

.ux-steps a::before,
.model-panel .panel-heading h2::before,
.settings > h2::before,
.contact > h2::before {
  content: "";
  display: inline-block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #172536;
  background-image: var(--step-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
}

/* Trois cartes cliquables */
.ux-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}
.ux-steps a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ccd7e1;
  border-bottom: 3px solid #edb64d;
  border-radius: 10px;
  background: #fff;
  color: #172536;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.ux-steps a span {
  margin: 0;
  color: #86611e;
}
.ux-steps a:hover,
.ux-steps a:focus-visible {
  background: #fff8e9;
  border-color: #b78527;
  text-decoration: none;
  box-shadow: 0 5px 16px #17253612;
}

/* Même repère visuel dans chaque étape */
.model-panel .panel-heading h2,
.settings > h2,
.contact > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}
.model-panel .panel-heading h2 > span,
.settings > h2 > span,
.contact > h2 > span {
  margin: 0;
  font-size: 15px;
}

@media (prefers-reduced-motion: no-preference) {
  .ux-steps a {
    transition: transform .18s, background .18s, box-shadow .18s;
  }
  .ux-steps a:hover {
    transform: translateY(-3px);
  }
}
@media (max-width: 900px) {
  .ux-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Aligner les deux colonnes et agrandir l’aperçu 3D */
@media (min-width: 821px) {
  .workspace {
    align-items: stretch;
  }

  .model-panel {
    display: flex;
    flex-direction: column;
  }

  #panel-model {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  #panel-documents {
    flex: 1;
  }

  #drop {
    flex: 1;
  }

  #viewer {
    flex: 1 1 325px;
    height: auto;
    min-height: 325px;
  }

  #viewer canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}
