@charset "UTF-8";
/* CRAZYMAKERS — MISES EN PAGE
   Accueil, outils, guides et soutien. Les couleurs et composants communs sont
   dans style.css. Les adaptations tablette/téléphone sont regroupées en fin.
*/

/* Accueil */

.home {
  max-width: var(--page-width);
  padding: 24px 16px 12px;
  margin: auto;
  text-align: left;
}

.home-hero {
  grid-template-columns: 1.04fr 1fr;
  min-height: 400px;
}

.home-hero-copy {
  padding: 40px 36px;
  align-self: center;
}

.home-eyebrow {
  margin: 0 0 16px;
}

.home-hero h1 {
  font-size: clamp(30px,3.5vw,45px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -.025em;
}

.home-hero-copy>p:not(.home-eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  color: var(--hero-muted);
  max-width: 530px;
}

.home-hero-visual {
  position: relative;
  min-height: 320px;
}

.home-hero-visual img {
  height: 100%;
  object-position: 60% center;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.home-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #7ccfe3;
  border-radius: 8px;
  padding: 10px 16px;
  color: #122c3b;
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.home-actions a.home-secondary {
  color: #edf8ff;
  background: transparent;
  border-color: #6c8899;
}

.home-actions a:hover {
  filter: brightness(1.08);
}

.home-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding: 22px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.home-facts span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
}

.home-facts strong {
  font-size: 21px;
}

.home-section {
  margin-top: 38px;
}

.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.home-section-heading h2 {
  font-size: clamp(23px,2.8vw,29px);
  line-height: 1.3;
  margin-bottom: 6px;
}

.home-section-heading p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 700px;
}

.home-section-heading>a {
  flex: 0 0 auto;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-themes {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 14px;
}

.home-theme {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--text);
  transition: transform .2s,box-shadow .2s;
}

.home-theme:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.home-theme img {
  height: 140px;
}

.home-theme span {
  padding: 14px;
  display: block;
}

.home-theme strong {
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

.home-theme small {
  display: block;
}

.home-tools {
  gap: 16px;
}

.home-tool {
  display: block;
  padding: 23px;
  border-radius: var(--radius-card);
  color: var(--text);
}

.home-tool:hover {
  color: var(--text);
  box-shadow: var(--shadow);
}

.home-tool-number {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--url);
  font-weight: 750;
}

.home-tool h3 {
  font-size: 19px;
  margin: 12px 0 9px;
}

.home-tool p {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
}

.home-tool-link {
  display: block;
  margin-top: 16px;
  color: var(--url);
  font-size: 13px;
  font-weight: 700;
}

.home-contents {
  gap: 18px;
}

.home-content-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.home-content-card>a {
  display: block;
}

.home-content-card img {
  height: 200px;
}

.home-content-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-content-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--url);
}

.home-content-body h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 9px 0;
}

.home-content-body h3 a {
  color: var(--text);
  font-weight: 700;
}

.home-content-body p {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 400;
}

.home-content-body>a {
  margin-top: auto;
  padding-top: 15px;
  font-size: 13px;
}

.home-faq {
  margin-top: 38px;
  border-radius: var(--radius-card);
  padding: 22px;
}

.home-faq h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.home-faq details {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}

.home-faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.home-faq details p {
  padding: 12px 0 0;
  font-size: 14px;
  line-height: 1.8;
  max-width: 900px;
}

.home-ethos {
  margin-top: 34px;
  padding: 20px;
  text-align: center;
  line-height: 1.8;
  font-size: 14px;
  border-top: 1px solid var(--border);
}

body.dark .home-actions a:not(.home-secondary) {
  color: #122c3b;
}

body.dark .home-tool-link,
body.dark .home-content-category,
body.dark .home-tool-number {
  color: var(--accent-soft);
}

.home-guide-contents {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

/* Outils, diagnostic et parcours */

.maker-tools>p {
  line-height: 1.7;
}

.tool-section h2 {
  margin-bottom: 16px;
}

.tool-section p {
  margin: 12px 0;
  line-height: 1.7;
}

.diagnostic-result h3,
.diagnostic-result h4 {
  margin: 12px 0;
}

.diagnostic-result ul {
  padding-left: 22px;
  line-height: 1.8;
}

.diagnostic-image {
  width: 160px;
  height: auto;
  display: block;
  margin: 12px auto;
}

.diagnostic-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 3px;
}

.beginner-paths ol {
  padding-left: 22px;
  text-align: left;
  line-height: 1.8;
}

.beginner-paths li {
  margin: 10px 0;
}

.maker-tools {
  margin: auto;
  max-width: var(--page-width);
  padding: 24px 16px 12px;
  text-align: left;
}

.tools-hero {
  grid-template-columns: 1fr 1fr;
}

.tools-hero-copy {
  padding: 38px 34px;
  align-self: center;
}

.tools-eyebrow {
  margin-bottom: 16px;
}

.tools-hero h1 {
  font-size: clamp(30px,3.5vw,43px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.tools-hero-copy>p:not(.tools-eyebrow) {
  font-size: 15px;
  line-height: 1.8;
  color: var(--hero-muted);
  max-width: 500px;
}

.tools-hero-image {
  height: 100%;
  min-height: 340px;
}

.tools-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--hero-muted);
}

.tools-facts strong {
  font-size: 19px;
  color: white;
  margin-right: 5px;
}

.maker-tools .tool-nav {
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 34px;
}

.maker-tools .tool-nav a {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: start;
  padding: 14px;
  color: var(--text);
  border-radius: var(--radius-card);
  min-width: 0;
  text-align: left;
  transition: box-shadow .2s,transform .2s;
}

.maker-tools .tool-nav a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tool-nav img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  flex: 0 0 84px;
  border-radius: 8px;
}

.tool-nav strong {
  font-size: 16px;
  display: block;
  line-height: 1.4;
  margin: 5px 0;
}

.tool-nav small {
  display: block;
}

.tool-nav .tools-route {
  font-size: 10px;
  color: var(--url);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 750;
}

.maker-tools .tool-section {
  scroll-margin-top: 140px;
  padding: 28px;
  margin: 28px 0;
  border-radius: var(--radius-panel);
}

.tool-section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.tool-step {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  background: var(--bg);
  color: var(--url);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-weight: 700;
  font-size: 15px;
}

.tool-section-heading h2 {
  font-size: clamp(22px,2.7vw,28px);
  margin: 0;
  line-height: 1.3;
}

.tool-section-heading small {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 5px;
}

.maker-tools .tool-section>p {
  font-size: 14px;
  max-width: 950px;
}

.maker-tools .search-filters {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
  gap: 16px;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: end;
  margin: 24px 0;
}

.maker-tools .search-filters label {
  font-size: 13px;
  line-height: 1.6;
  min-width: 0;
}

.maker-tools .search-filters select {
  width: 100%;
  min-height: 46px;
  background: var(--card);
  font-size: 14px;
  padding: 10px;
}

.maker-tools .search-filters button {
  background: #1767a0;
  color: white;
  border: 1px solid #1767a0;
  font-weight: 600;
  min-height: 46px;
}

.maker-tools .search-filters>a {
  font-size: 12px;
  grid-column: 1/-1;
  justify-self: start;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.maker-tools .tool-hint {
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--border);
  background: none;
  color: var(--text);
}

.maker-tools .diagnostic-result {
  border: 1px solid var(--border);
  text-align: left;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--card);
}

.diagnostic-result>h3 {
  font-size: 22px;
  margin: 0 0 20px;
}

.diagnostic-result-layout {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: 28px;
}

.diagnostic-visual {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  min-width: 0;
}

.diagnostic-visual .diagnostic-image {
  width: 200px;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
}

.maker-tools .diagnostic-visual ul {
  margin: 12px 0 0;
  padding-left: 22px;
  line-height: 1.8;
  text-align: left;
}

.maker-tools .diagnostic-visual li {
  display: list-item;
  line-height: 1.8;
}

.diagnostic-actions h4 {
  font-size: 18px;
  margin-top: 0;
}

.diagnostic-actions>p {
  font-size: 13px;
}

.maker-tools .diagnostic-check {
  display: flex;
  align-items: start;
  gap: 12px;
  line-height: 1.6;
  padding: 12px;
  border-radius: 8px;
  margin: 8px 0;
  font-size: 14px;
}

.maker-tools .diagnostic-check:has(input:checked) {
  background: var(--bg);
}

.maker-tools .diagnostic-result>a {
  display: inline-block;
  margin-top: 20px;
}

.tool-note {
  padding: 14px 18px;
  border-left: 3px solid #1767a0;
  border-radius: 0 8px 8px 0;
  background: var(--bg);
  font-size: 13px;
  line-height: 1.8;
  margin: 20px 0;
}

.maker-tools .lightburn-calculator {
  display: block;
  height: auto;
  margin: 22px auto;
  border-radius: 10px;
  background: var(--bg);
  max-width: 1000px;
}

.maker-tools .lightburn-calculator select {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 6px;
  font: inherit;
  color: var(--text);
}

.maker-tools .beginner-paths article {
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius-card);
}

.beginner-paths article>img {
  height: 155px;
}

.path-body {
  padding: 20px;
}

.path-body h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: 8px 0 14px;
  text-align: center;
}

.path-eyebrow {
  font-size: 10px !important;
  letter-spacing: .1em;
  color: var(--url);
  font-weight: 700;
  text-align: center;
}

.maker-tools .beginner-paths ol {
  padding-left: 22px;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
}

.maker-tools .beginner-paths li {
  line-height: 1.8;
  margin: 12px 0;
}

.path-body>p:last-child {
  font-size: 12px;
  line-height: 1.8;
}

.tools-ending {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  margin: 24px 0;
  padding: 18px;
  border-top: 1px solid var(--border);
}

body.dark .tools-route,
body.dark .path-eyebrow,
body.dark .tool-step {
  color: var(--accent-soft);
}

.maker-tools .beginner-paths {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  grid-template-columns: repeat(4,minmax(0,1fr));
}

/* Guides impression 3D et soudure : socle partagé */

.p3d-guide {
  max-width: var(--page-width);
  margin: 28px auto 40px;
  color: var(--text);
  line-height: 1.7;
  min-width: 0;
}

.p3d-guide p {
  margin: 12px 0;
}

.p3d-guide h1,
.p3d-guide h2,
.p3d-guide h3,
.p3d-guide h4 {
  line-height: 1.3;
  text-wrap: balance;
}

.p3d-guide h1 {
  font-size: clamp(28px,4vw,46px);
  margin: 12px 0 20px;
}

.p3d-guide h2 {
  font-size: clamp(23px,3vw,30px);
}

.p3d-guide h3 {
  font-size: 21px;
  margin: 14px 0;
}

.p3d-guide h4 {
  font-size: 15px;
  margin: 18px 0 6px;
}

.p3d-guide a {
  color: var(--accent);
}

.p3d-guide a:hover {
  text-decoration: underline;
}

.p3d-guide a:focus-visible,
.p3d-guide summary:focus-visible,
.p3d-guide input:focus-visible,
.p3d-guide select:focus-visible,
.p3d-guide button:focus-visible {
  outline: 3px solid var(--focus-guide);
  outline-offset: 4px;
}

.p3d-guide .p3d-intro {
  position: static;
  z-index: auto;
  box-shadow: none;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.p3d-intro>p {
  max-width: 780px;
  margin: 12px auto;
}

.p3d-guide .p3d-eyebrow {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 750;
}

.p3d-meta {
  display: flex;
  gap: 14px 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
}

.p3d-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.p3d-samples {
  gap: 16px;
  max-width: 720px;
  margin: 24px auto 8px;
}

.p3d-samples figure {
  min-width: 0;
}

.p3d-samples img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
}

.p3d-samples figcaption {
  font-size: 13px;
  font-weight: 650;
  margin-top: 8px;
}

.p3d-guide .p3d-caption {
  font-size: 12px;
  opacity: .8;
  max-width: 900px;
  margin: 16px auto;
  line-height: 1.6;
}

.p3d-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 36px;
}

.p3d-nav a {
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 650;
}

.p3d-nav a[href="#calculateur"] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.p3d-section {
  margin: 42px 0;
  scroll-margin-top: 130px;
}

.p3d-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  max-width: 900px;
}

.p3d-heading>span {
  flex: 0 0 46px;
  height: 46px;
  border-radius: var(--radius-card);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 750;
}

.p3d-heading p {
  margin: 8px 0 0;
  font-size: 14px;
}

.p3d-section>p {
  max-width: 940px;
  margin: 18px auto 24px;
}

.p3d-grid {
  display: grid;
  grid-template-columns: repeat(var(--guide-columns),minmax(0,1fr));
  gap: var(--guide-gap);
  margin: 18px 0;
}

.p3d-card {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
  padding: var(--guide-card-padding);
  border-radius: var(--radius-card);
  line-height: 1.55;
}

.p3d-card hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.p3d-card p {
  font-size: 13px;
  margin: 9px 0;
}

.p3d-card .p3d-specimen {
  display: block;
  border-radius: 10px;
  background: #f5f5f4;
  width: 100%;
  max-width: 100%;
  height: var(--guide-image-height);
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0 auto 10px;
}

.p3d-guide ul,
.p3d-guide ol {
  list-style: disc;
  width: fit-content;
  max-width: 100%;
  margin: 14px auto;
  padding-left: 22px;
  text-align: left;
}

.p3d-guide ul li,
.p3d-guide ol li {
  display: list-item;
  margin: 7px 0;
  font-size: 14px;
  line-height: 1.65;
}

.p3d-guide li::after {
  content: none !important;
}

.p3d-tech-label {
  font-size: 30px;
  letter-spacing: .04em;
  color: var(--accent);
  font-weight: 750;
  padding: 20px 0;
  background: var(--bg);
  border-radius: 10px;
}

.p3d-guide .p3d-takeaway {
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 13px;
}

.p3d-data {
  padding: 2px 0;
  margin: 5px 0;
}

.p3d-data>div {
  margin: 8px 0;
}

.p3d-data dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .8;
}

.p3d-data dd {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 5px;
}

.p3d-data .difficulty-stars {
  display: inline-block;
}

.p3d-source {
  font-size: 12px;
  text-decoration: underline;
}

.p3d-guide .p3d-note {
  border-left: 4px solid #5bcaf0;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 13px;
  text-align: left;
}

.p3d-related {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.p3d-related a {
  display: block;
  border-radius: var(--radius-card);
  padding: 20px;
}

.p3d-related strong,
.p3d-related span {
  display: block;
}

.p3d-related span {
  font-size: 13px;
  margin-top: 6px;
}

.p3d-calculator {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  gap: 22px;
  text-align: left;
  align-items: start;
}

.p3d-form,
.p3d-result,
.p3d-error {
  border-radius: var(--radius-panel);
  padding: 24px;
  min-width: 0;
}

.p3d-form fieldset {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
  min-width: 0;
}

.p3d-form legend {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.p3d-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
}

.p3d-form input,
.p3d-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.p3d-form small {
  font-size: 11px;
  line-height: 1.6;
  font-weight: 400;
}

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

.p3d-guide .p3d-primary {
  display: inline-block;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.p3d-form .p3d-primary {
  width: 100%;
}

.p3d-form .p3d-primary:disabled {
  opacity: .65;
  cursor: wait;
}

.p3d-status {
  font-size: 12px;
  min-height: 1em;
}

.p3d-output {
  min-width: 0;
}

.p3d-result h3 {
  margin-top: 8px;
}

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

.p3d-results>div {
  border-top: 1px solid var(--border);
  padding: 13px 10px 13px 0;
  overflow-wrap: anywhere;
}

.p3d-results dt {
  font-size: 12px;
  opacity: .85;
}

.p3d-results dd {
  font-size: 15px;
  font-weight: 750;
  margin-top: 4px;
  line-height: 1.5;
}

.p3d-result>p {
  font-size: 13px;
}

.p3d-error {
  border-left: 4px solid #ba4a25;
}

.p3d-error h3 {
  color: #a83d18;
}

.p3d-guide .p3d-error ul {
  margin-left: 0;
}

.p3d-details {
  border-radius: 10px;
  margin: 12px 0;
  text-align: left;
}

.p3d-details summary {
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 650;
  line-height: 1.6;
  font-size: 14px;
}

.p3d-details>div {
  padding: 0 20px 14px;
  font-size: 14px;
}

.p3d-details[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.p3d-conclusion {
  padding: 28px;
  border-radius: var(--radius-panel);
}

.p3d-references {
  font-size: 13px;
}

.p3d-references h2 {
  font-size: 21px;
}

.p3d-guide .p3d-references ul {
  max-width: 900px;
}

.p3d-guide .p3d-references li {
  font-size: 12px;
}

body.dark .p3d-guide a,
body.dark .p3d-guide .p3d-eyebrow,
body.dark .p3d-heading>span,
body.dark .p3d-tech-label {
  color: var(--accent-soft);
}

body.dark .p3d-guide .p3d-primary,
body.dark .p3d-nav a[href="#calculateur"] {
  color: white;
}

body.dark .p3d-error h3 {
  color: #ffb89c;
}

.p3d-technologies,
#difficulte>.p3d-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.p3d-guide .p3d-card h3 {
  font-size: 18px;
  margin: 10px 0;
}

.p3d-guide .p3d-card h4 {
  font-size: 14px;
  margin: 14px 0 5px;
}

/* Guide soudure : particularités */

.solder-guide .p3d-intro {
  padding-bottom: 24px;
}

.solder-guide .p3d-samples {
  max-width: 600px;
}

.solder-guide .p3d-section>.p3d-heading {
  max-width: 1000px;
}

.solder-guide .p3d-heading p {
  max-width: 850px;
}

.solder-guide .p3d-card h3 {
  font-size: 17px;
}

.solder-guide .solder-diagram {
  max-width: 900px;
  margin: 22px auto;
  padding: 16px;
  border-radius: var(--radius-card);
}

.solder-diagram img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  border-radius: 8px;
}

.solder-diagram figcaption {
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.solder-guide .p3d-nav a[href="#geste"] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.solder-guide .p3d-card .p3d-specimen {
  height: 150px;
}

.solder-guide :is(ul,ol) {
  list-style-position: outside;
}

/* Guide des défauts d’impression 3D */

.print-guide {
  max-width: var(--article-width);
  margin: 24px auto;
  padding: 0 16px;
  text-align: left;
}

.print-guide-intro {
  max-width: 850px;
  margin: 0 auto 28px;
  text-align: center;
}

.print-guide-intro h1 {
  font-size: clamp(26px,4vw,38px);
  line-height: 1.2;
  margin: 12px 0;
}

.print-guide-intro p {
  line-height: 1.7;
  margin: 16px 0;
}

.print-guide-intro>a {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 16px;
}

.defect-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: var(--radius-card);
}

.defect-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 240px;
}

.defect-controls input,
.defect-controls select,
.defect-controls button {
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

.defect-controls button {
  cursor: pointer;
}

.defect-count {
  margin: 16px 0;
  color: var(--text);
}

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

.defect {
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
  scroll-margin-top: 150px;
}

.defect[open] {
  grid-column: 1/-1;
}

.defect summary {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) 20px;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 16px;
  list-style: none;
}

.defect summary::-webkit-details-marker {
  display: none;
}

.defect summary::after {
  content: "+";
  font-size: 24px;
  text-align: center;
}

.defect[open] summary::after {
  content: "−";
}

.defect[open] summary {
  border-bottom: 1px solid var(--border);
}

.defect summary img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.defect-number {
  font-size: 12px;
  color: var(--url);
  display: block;
  margin-bottom: 5px;
}

.defect summary strong {
  font-size: 17px;
  line-height: 1.4;
}

.defect-summary {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 5px;
  opacity: .85;
}

.defect-body {
  padding: 22px;
}

.defect-overview {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.defect-photo {
  display: block;
  flex: 0 1 220px;
}

.defect-photo img {
  display: block;
  width: 220px;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
}

.defect-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.defect-badges span {
  padding: 6px 10px;
  border-radius: var(--radius-hero);
  border: 1px solid var(--border);
  font-size: 13px;
}

.defect-badges .critique {
  background: #fde7e7;
  color: #8d2020;
}

.defect-badges .moyenne {
  background: #fff0d4;
  color: #795000;
}

.defect-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr));
  gap: 20px;
}

.defect-group {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.defect-group h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.print-guide .defect-group ul {
  list-style: disc outside;
  padding-left: 20px;
  margin: 0;
  text-align: left;
}

.print-guide .defect-group li {
  display: list-item;
  line-height: 1.7;
  margin: 8px 0;
  text-align: left;
}

.print-guide .defect-group li::after {
  content: none;
}

.defect-body>a {
  display: inline-block;
  margin-top: 20px;
}

.defect-empty {
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.defect-controls input,
.defect-controls select {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

/* Page de soutien */

.support-page {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 16px;
}

.support-intro {
  max-width: 780px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

.support-intro h1 {
  font-size: clamp(26px,4vw,38px);
  line-height: 1.25;
  margin-bottom: 18px;
}

.support-intro p {
  margin: 14px 0;
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.support-box {
  border-radius: var(--radius-card);
  padding: 24px;
  line-height: 1.8;
}

.support-box h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.support-box p {
  margin: 12px 0;
}

.support-box ul {
  padding-left: 22px;
  line-height: 1.8;
}

.support-box li {
  display: list-item;
  margin: 6px 0;
}

.support-box li::after {
  content: none;
}

.support-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.support-options form {
  flex: 1 1 110px;
}

.support-options button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--url);
  border-radius: 8px;
  background: var(--card);
  color: var(--url);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
}

.support-options button:hover {
  background: var(--bg);
}

.support-history {
  margin-top: 24px;
  padding: 18px;
  border-radius: 10px;
  text-align: left;
}

.support-history summary {
  cursor: pointer;
  font-weight: bold;
  min-height: 30px;
}

.support-history table {
  margin: 14px auto;
  border-collapse: collapse;
}

.support-history td,
.support-history th {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.support-note {
  font-size: 14px;
  opacity: .9;
}

.support-alternatives {
  margin: 24px auto;
  max-width: 780px;
  line-height: 1.8;
}

/* Aide-mémoire des matériaux 3D */

.materials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.material-card {
  max-width: 350px;
  flex: 1 1 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease,box-shadow .2s ease;
}

.material-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.material-header {
  text-align: center;
  margin: auto;
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.material-title {
  font-size: 18px;
  font-weight: 700;
}

.material-sub {
  font-size: 12px;
  color: #666;
}

.material-temp {
  font-size: 12px;
  color: #444;
  margin-bottom: 8px;
}

.materials-grid .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.materials-grid .badge {
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f1f1;
}

.materials-grid .score-5 {
  background: darkgray;
  color: #fff;
}

.materials-grid .score-1 {
  background: #e74c3c;
  color: #fff;
}

.materials-grid .score-2 {
  background: darkorange;
  color: #fff;
}

.materials-grid .score-3 {
  background: goldenrod;
  color: #fff;
}

.materials-grid .score-4,
.materials-grid .ok {
  background: green;
  color: #fff;
}

.materials-grid .no {
  background: #e74c3c;
  color: #fff;
}

.materials-grid .neutral {
  background: #95a5a6;
  color: #fff;
}

.material-section {
  margin-top: 10px;
}

.material-section h4 {
  font-size: 13px;
  margin: 6px 0;
}

.material-section ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
}

/* Adaptation : (min-width:600px) */

@media (min-width:600px) {
  .material-card {
    flex: 1 1 calc(50% - 16px);
  }

  body.dark .material-card {
    background-color: gray;
  }

  body.dark .material-sub {
    color: white;
  }

  body.dark .materials-grid .score-0 {
    background-color: darkgray;
  }
}

/* Adaptation : (min-width:900px) */

@media (min-width:900px) {
  .material-card {
    flex: 1 1 calc(33.33% - 16px);
  }
}

/* Adaptation : (min-width:1200px) */

@media (min-width:1200px) {
  .material-card {
    flex: 1 1 calc(25% - 16px);
  }
}

/* Adaptation : (max-width:1050px) and (min-width:751px) */

@media (max-width:1050px) and (min-width:751px) {
  .p3d-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

/* Adaptation : (max-width:950px) */

@media (max-width:950px) {
  .home-hero-copy {
    padding: 28px 24px;
  }

  .home-themes {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .home-theme img {
    height: 160px;
  }

  .home-hero h1 {
    font-size: 33px;
  }

  .home-guide-contents {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .tool-nav img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .maker-tools .tool-nav a {
    gap: 10px;
    padding: 12px;
  }

  .tools-hero-copy {
    padding: 28px;
  }

  .maker-tools .search-filters {
    grid-template-columns: minmax(0,1fr);
  }

  .maker-tools .search-filters>a {
    grid-column: auto;
  }

  .maker-tools .beginner-paths {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .p3d-calculator {
    grid-template-columns: minmax(0,1fr);
  }

  .p3d-heading {
    justify-content: flex-start;
  }

  .p3d-heading>div {
    text-align: left;
  }

  .p3d-intro {
    padding: 24px 18px;
  }
}

/* Adaptation : (max-width:750px) */

@media (max-width:750px) {
  .p3d-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .p3d-technologies,
  #difficulte>.p3d-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Adaptation : (max-width:650px) */

@media (max-width:650px) {
  .home {
    padding: 16px 8px;
  }

  .home-hero {
    grid-template-columns: minmax(0,1fr);
    border-radius: var(--radius-panel);
  }

  .home-hero-copy {
    padding: 26px 20px;
  }

  .home-hero h1 {
    font-size: 31px;
  }

  .home-hero-visual {
    min-height: 0;
    height: 210px;
  }

  .home-facts {
    gap: 12px 24px;
    padding: 18px 8px;
  }

  .home-facts span {
    font-size: 12px;
  }

  .home-facts strong {
    font-size: 18px;
  }

  .home-themes {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .home-theme img {
    height: 125px;
  }

  .home-theme span {
    padding: 12px;
  }

  .home-theme strong {
    font-size: 15px;
  }

  .home-tools,
  .home-contents {
    grid-template-columns: minmax(0,1fr);
  }

  .home-section {
    margin-top: 28px;
  }

  .home-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .home-content-card img {
    height: 210px;
  }

  .home-faq {
    padding: 18px;
  }

  .home-actions a {
    flex: 1 1 160px;
  }

  .home-hero-copy>p:not(.home-eyebrow) {
    font-size: 15px;
  }

  .home-guide-contents {
    grid-template-columns: minmax(0,1fr);
  }

  .tool-section {
    padding: 16px 12px;
    scroll-margin-top: 190px;
  }

  .beginner-paths {
    grid-template-columns: minmax(0,1fr);
  }

  .tool-nav,
  .tool-section .search-filters {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }

  .tool-section select {
    min-width: 0;
    width: 100%;
  }

  .maker-tools {
    padding: 16px 8px 8px;
  }

  .tools-hero {
    grid-template-columns: minmax(0,1fr);
    border-radius: var(--radius-panel);
  }

  .tools-hero-copy {
    padding: 26px 20px;
  }

  .tools-hero h1 {
    font-size: 31px;
  }

  .tools-hero-image {
    height: 200px;
    min-height: 0;
  }

  .maker-tools .tool-nav {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
    margin: 18px 0 24px;
  }

  .tool-nav img {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .maker-tools .tool-section {
    padding: 20px 14px;
  }

  .tool-section-heading {
    gap: 12px;
  }

  .tool-step {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .maker-tools .search-filters {
    padding: 16px;
    margin: 18px 0;
  }

  .diagnostic-result-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 20px;
  }

  .maker-tools .diagnostic-result,
  .diagnostic-visual {
    padding: 16px;
  }

  .path-body {
    padding: 18px;
  }

  .maker-tools .lightburn-calculator .lb-layout,
  .maker-tools .beginner-paths {
    grid-template-columns: minmax(0,1fr);
  }

  .print-guide {
    padding: 0 8px;
  }

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

  .defect summary {
    grid-template-columns: 52px minmax(0,1fr) 16px;
    gap: 10px;
    padding: 12px;
  }

  .defect summary img {
    width: 52px;
    height: 52px;
  }

  .defect summary strong {
    font-size: 16px;
  }

  .defect-body {
    padding: 14px;
  }

  .defect-overview {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .defect-photo {
    flex: auto;
  }

  .defect-controls {
    padding: 14px;
  }

  .defect-controls label {
    flex-basis: 100%;
  }

  .defect {
    scroll-margin-top: 200px;
  }

  .support-layout {
    grid-template-columns: minmax(0,1fr);
  }

  .support-page {
    padding: 0 8px;
  }

  .support-box {
    padding: 18px;
  }

  .support-history td,
  .support-history th {
    padding: 8px;
  }
}

/* Adaptation : (max-width:600px) */

@media (max-width:600px) {
  .p3d-guide {
    margin: 20px 6px 30px;
  }

  .p3d-related {
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
  }

  .p3d-guide .p3d-intro {
    padding: 24px 16px;
  }

  .p3d-intro h1 {
    font-size: 29px;
  }

  .p3d-samples {
    gap: 8px;
  }

  .p3d-samples figcaption {
    font-size: 10px;
  }

  .p3d-nav {
    gap: 6px;
  }

  .p3d-nav a {
    font-size: 12px;
    padding: 8px 12px;
  }

  .p3d-card {
    padding: 15px;
    line-height: 1.5;
  }

  .p3d-card .p3d-specimen {
    width: 100%;
    margin: 0 auto 16px;
    height: 130px;
    max-height: 130px;
    margin-bottom: 8px;
  }

  .p3d-section {
    scroll-margin-top: 160px;
    margin: 28px 0;
  }

  .p3d-heading {
    gap: 10px;
    margin-bottom: 16px;
  }

  .p3d-heading>span {
    flex-basis: 34px;
    height: 38px;
    font-size: 12px;
  }

  .p3d-heading h2 {
    font-size: 23px;
  }

  .p3d-heading p {
    font-size: 13px;
  }

  .p3d-form,
  .p3d-result,
  .p3d-error {
    padding: 18px;
  }

  .p3d-fields {
    grid-template-columns: minmax(0,1fr);
  }

  .p3d-results dd {
    font-size: 14px;
  }

  .p3d-guide .p3d-note {
    padding: 14px;
  }

  .p3d-meta {
    gap: 8px 14px;
    font-size: 11px;
  }

  .p3d-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
    margin: 14px 0;
  }

  .p3d-guide .p3d-card h3 {
    margin: 8px 0;
  }

  .p3d-card p {
    font-size: 14px;
    margin: 8px 0;
  }

  .p3d-guide .p3d-card h4 {
    margin: 11px 0 4px;
  }

  .p3d-card hr {
    margin: 11px 0;
  }

  .p3d-data {
    padding: 0;
    margin: 4px 0;
  }

  .p3d-data>div {
    margin: 7px 0;
  }

  .solder-guide .p3d-card .p3d-specimen {
    height: 120px;
  }

  .solder-guide .solder-diagram {
    padding: 10px;
  }

  .solder-guide .p3d-heading>span {
    flex-basis: 34px;
  }
}
