/* Pages intérieures EvoPrint : ce qui s'ajoute à la base de l'accueil version 3 (../maquettes-accueil/base.css).
   Mêmes jetons, mêmes composants ; une 5e couleur, réservée aux erreurs de formulaire. */
:root { --alerte: #b42318; }
button.bouton { border: 0; cursor: pointer; font-family: inherit; }

/* En-tête de page : bande marine, menu posé dessus, titre et intro */
.entete-page { position: relative; background: var(--marine); color: var(--blanc); padding: 150px 0 76px; }
.entete-page h1 { max-width: 15em; font-size: clamp(36px, 4.2vw, 60px); font-weight: 700; line-height: 1.03; }
.entete-page .intro-page { margin-top: 22px; max-width: 34em; font-size: 19px; color: color-mix(in srgb, var(--blanc) 80%, var(--marine)); }
.garanties { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 34px; font-weight: 600; font-size: 16px; }
.garanties li { display: flex; align-items: center; gap: 10px; }
.garanties svg { width: 18px; flex: none; stroke: var(--vert); }

/* Zone de travail */
.atelier { background: var(--clair); padding: 72px 0 112px; }
.disposition { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }

/* La feuille du formulaire */
.feuille { background: var(--blanc); border: 1px solid var(--filet); border-radius: 16px; }
.feuille fieldset { margin: 0; padding: 36px 40px 38px; border: 0; min-width: 0; }
.feuille fieldset + fieldset { border-top: 1px solid var(--filet); }
.feuille legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 14px; padding: 0; font-size: 24px; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.15; }
.feuille legend + * { clear: both; }
.feuille legend .no { font-size: 24px; font-weight: 800; font-stretch: 116%; color: var(--vert-fonce); font-variant-numeric: tabular-nums; }
.feuille .consigne { clear: both; padding-top: 8px; color: var(--gris); font-size: 16px; }
.mention-champs { padding: 22px 40px 0; color: var(--gris); font-size: 15px; }

/* 1. Ce que vous avez en main : quatre tuiles avec photo */
.choix { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 22px; }
.tuile { position: relative; display: flex; flex-direction: column; border: 2px solid var(--filet); border-radius: 12px; overflow: hidden; background: var(--blanc); cursor: pointer; transition: border-color .2s ease-out; }
.tuile:hover { border-color: color-mix(in srgb, var(--marine) 35%, var(--blanc)); }
.tuile input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tuile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tuile .nom { padding: 12px 14px 14px; font-weight: 700; font-size: 16px; line-height: 1.32; }
.tuile .detail { display: block; margin-top: 3px; font-weight: 400; font-size: 14px; line-height: 1.35; color: var(--gris); }
.tuile .marque { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blanc); border: 1.5px solid var(--filet); transition: background-color .2s, border-color .2s; }
.tuile .marque svg { width: 14px; stroke: var(--marine); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s ease-out .05s; }
.tuile:has(input:checked) { border-color: var(--vert); }
.tuile:has(input:checked) .marque { background: var(--vert); border-color: var(--vert); }
.tuile:has(input:checked) .marque svg { stroke-dashoffset: 0; }
.tuile:has(input:focus-visible) { outline: 2px solid var(--vert-fonce); outline-offset: 3px; }

/* 2. Services voulus : cases en pastilles */
.cases { clear: both; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.case { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 12px; border: 1.5px solid var(--filet); border-radius: 999px; background: var(--blanc); font-weight: 500; font-size: 16px; cursor: pointer; transition: border-color .2s; }
.case:hover { border-color: color-mix(in srgb, var(--marine) 35%, var(--blanc)); }
.case:has(input:checked) { border-color: var(--vert); }
.case input, .ligne-case input { appearance: none; flex: none; display: grid; place-content: center; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--gris); border-radius: 5px; background: var(--blanc); cursor: pointer; transition: background-color .15s, border-color .15s; }
.case input::before, .ligne-case input::before { content: ""; width: 11px; height: 11px; background: var(--marine); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); scale: 0; transition: scale .15s ease-out; }
.case input:checked, .ligne-case input:checked { background: var(--vert); border-color: var(--vert); }
.case input:checked::before, .ligne-case input:checked::before { scale: 1; }
.case input:focus-visible, .ligne-case input:focus-visible { outline: 2px solid var(--vert-fonce); outline-offset: 2px; }

/* Champs */
.champ { clear: both; display: grid; gap: 8px; padding-top: 22px; }
.champ label, .etiquette { font-weight: 700; font-size: 16px; }
.facultatif { font-weight: 400; color: var(--gris); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid color-mix(in srgb, var(--marine) 30%, var(--blanc)); border-radius: 8px; background: var(--blanc); color: var(--marine); font: inherit; font-size: 17px; transition: border-color .15s; }
.champ textarea { min-height: 168px; resize: vertical; line-height: 1.5; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: color-mix(in srgb, var(--marine) 55%, var(--blanc)); }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--vert-fonce); outline-offset: 1px; border-color: var(--marine); }
.champ ::placeholder { color: color-mix(in srgb, var(--marine) 66%, var(--blanc)); }
.aide { font-size: 15px; line-height: 1.45; color: var(--gris); }
.deux { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.trois { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }

/* Erreurs */
.erreur { display: none; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 600; color: var(--alerte); }
.erreur svg { width: 16px; flex: none; stroke: var(--alerte); translate: 0 3px; }
.invalide .erreur { display: flex; }
.invalide input:not([type="radio"]):not([type="checkbox"]), .invalide textarea { border-color: var(--alerte); }
.invalide .tuile { border-color: color-mix(in srgb, var(--alerte) 45%, var(--blanc)); }
.resume-erreurs { display: none; margin: 24px 40px 0; padding: 18px 20px; border: 1.5px solid var(--alerte); border-radius: 12px; color: var(--marine); }
.resume-erreurs.visible { display: block; }
.resume-erreurs h2 { font-size: 18px; font-stretch: 108%; letter-spacing: 0; color: var(--alerte); }
.resume-erreurs ul { margin-top: 8px; display: grid; gap: 4px; font-size: 16px; }
.resume-erreurs a { color: var(--marine); text-decoration-color: var(--alerte); }

/* Fichiers : glisser-déposer ou choisir */
.depot { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 20px; border: 1.5px dashed color-mix(in srgb, var(--marine) 35%, var(--blanc)); border-radius: 12px; background: var(--clair); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.depot:hover, .depot.survol { border-color: var(--vert-fonce); background: color-mix(in srgb, var(--vert) 7%, var(--blanc)); }
.depot:has(input:focus-visible) { outline: 2px solid var(--vert-fonce); outline-offset: 3px; }
.depot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.depot svg { width: 30px; stroke: var(--marine); }
.depot strong { font-size: 16px; }
.depot span { font-size: 15px; color: var(--gris); }
.fichiers { display: grid; gap: 8px; }
.fichiers:empty { display: none; }
.fichiers li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 14px; border: 1px solid var(--filet); border-radius: 8px; font-size: 15px; animation: fondu .35s var(--sortie); }
.fichiers .taille { color: var(--gris); white-space: nowrap; }
.fichiers button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--marine); cursor: pointer; }
.fichiers button:hover { background: var(--clair); }
.fichiers button svg { width: 14px; stroke: currentColor; }
.fichiers .nom-fichier { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Consentement (Loi 25) et envoi */
.consentement { clear: both; margin-top: 26px; padding: 20px 22px; border-radius: 12px; background: var(--clair); }
.ligne-case { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-weight: 600; font-size: 16px; line-height: 1.45; cursor: pointer; }
.ligne-case input { translate: 0 2px; }
.consentement .aide { margin-top: 10px; padding-left: 32px; }
.consentement .erreur { margin-top: 8px; padding-left: 32px; }
.envoi { clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 26px; }
.envoi .bouton { min-width: 240px; }
.envoi p { font-size: 15px; color: var(--gris); max-width: 30em; }

/* Confirmation après l'envoi (maquette : rien n'est envoyé) */
.confirmation { padding: 48px 40px 52px; background: var(--blanc); border: 1px solid var(--filet); border-radius: 16px; }
.confirmation[hidden] { display: none; }
.confirmation .pastille { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--vert); }
.confirmation .pastille svg { width: 26px; stroke: var(--marine); stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace .5s ease-out .2s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.confirmation h2 { margin-top: 22px; font-size: clamp(28px, 3vw, 40px); }
.confirmation p { margin-top: 12px; max-width: 36em; color: var(--gris); }
.confirmation .bouton { margin-top: 26px; }

/* Colonne de côté */
.cote-page { position: sticky; top: 88px; display: grid; gap: 16px; }
.encart { padding: 28px 30px; background: var(--blanc); border: 1px solid var(--filet); border-radius: 16px; }
.encart h2 { font-size: 22px; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.15; }
.etapes-mini { margin-top: 14px; }
.etapes-mini li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--filet); }
.etapes-mini li:first-child { border-top: 0; }
.etapes-mini .n { font-weight: 800; font-stretch: 116%; font-size: 20px; line-height: 1.2; color: var(--vert-fonce); font-variant-numeric: tabular-nums; }
.etapes-mini strong { display: block; font-size: 16px; line-height: 1.3; }
.etapes-mini span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--gris); }
.encart.sombre { background: var(--marine); border-color: var(--marine); color: var(--blanc); }
.encart.sombre p { margin-top: 10px; font-size: 16px; color: color-mix(in srgb, var(--blanc) 80%, var(--marine)); }
.encart.sombre address { margin-top: 16px; display: grid; gap: 6px; font-style: normal; }
.encart.sombre address a { color: var(--blanc); font-weight: 600; font-size: 17px; }
.encart.sombre .heures { margin-top: 14px; font-size: 15px; color: color-mix(in srgb, var(--blanc) 72%, var(--marine)); }
.encart.sombre :focus-visible { outline-color: var(--vert); }

/* Questions avant d'envoyer (reprend le style de la FAQ de l'accueil) */
.questions-page { padding: 104px 0 112px; }

/* Téléphone */
@media (max-width: 900px) {
  .entete-page { padding: 100px 0 48px; }
  .entete-page h1 { font-size: 36px; }
  .entete-page .intro-page { font-size: 17px; }
  .garanties { flex-direction: column; gap: 10px; margin-top: 26px; }
  .atelier { padding: 28px 0 72px; }
  .disposition { grid-template-columns: 1fr; gap: 24px; }
  .feuille { border-radius: 14px; }
  .feuille fieldset { padding: 26px 18px 28px; }
  .mention-champs { padding: 18px 18px 0; }
  .resume-erreurs { margin: 18px 18px 0; }
  .feuille legend, .feuille legend .no { font-size: 21px; }
  .choix { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tuile .nom { padding: 10px 12px 12px; font-size: 15px; }
  .deux, .trois { grid-template-columns: 1fr; }
  .envoi .bouton { width: 100%; }
  .confirmation { padding: 34px 20px 38px; }
  .cote-page { position: static; }
  .encart { padding: 24px 20px; }
  .questions-page { padding: 64px 0 72px; }
}

/* ---------- Pages de présentation (Entreprises, services) ---------- */
.entete-page .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 32px; }
.entete-page .actions a:not(.bouton) { color: var(--blanc); font-weight: 600; }
.entete-page :focus-visible { outline-color: var(--vert); }
.sommaire { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--blanc) 14%, transparent); }
.sommaire a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 1.5px solid color-mix(in srgb, var(--blanc) 35%, transparent); border-radius: 999px; color: var(--blanc); font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .15s, border-color .15s; }
.sommaire a:hover { background: color-mix(in srgb, var(--blanc) 10%, transparent); border-color: color-mix(in srgb, var(--blanc) 60%, transparent); }
.sommaire svg { width: 16px; flex: none; stroke: var(--vert); }

/* Un besoin : texte et avantages à gauche, photo collante à droite */
.besoin { padding: 112px 0; }
.besoin.clair, .options { background: var(--clair); }
/* Un besoin sans photo : le titre et son intro côte à côte, les points en deux colonnes */
.tete-besoin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; }
.tete-besoin .intro { font-size: 19px; }
.points.en-colonnes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; margin-top: 44px; }
/* Un nombre impair de points : le dernier prend toute la largeur */
.points.en-colonnes > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.points.en-colonnes > div:last-child { border-bottom: 0; }
.besoin-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.besoin .intro { font-size: 19px; }
.points { margin-top: 32px; }
.points > div { position: relative; padding: 18px 0 18px 34px; border-top: 1px solid var(--filet); }
.points > div:last-child { border-bottom: 1px solid var(--filet); }
.points dt { font-weight: 700; font-size: 17px; line-height: 1.35; }
.points dt svg { position: absolute; left: 0; top: 22px; width: 18px; stroke: var(--vert-fonce); }
.points dd { margin: 4px 0 0; color: var(--gris); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.besoin-photo { position: sticky; top: 104px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--blanc); }
.besoin-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Les options : une photo d'un côté, une liste à filets de l'autre */
.options { padding: 112px 0; }
.options-corps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; margin-top: 44px; }
.options-corps .besoin-photo { background: var(--blanc); }
.options-liste > div { padding: 26px 0; border-top: 1px solid var(--filet); }
.options-liste > div:first-child { padding-top: 0; border-top: 0; }
.options-liste h3 { font-size: 26px; font-weight: 700; line-height: 1.15; }
.options-liste p { margin-top: 10px; color: var(--gris); font-size: 17px; }
.options-liste .pastilles li { background: var(--blanc); }
/* Combien de pièces ? Une grille de pièces dessinées qui se remplit */
.quantite { position: sticky; top: 104px; padding: 26px 28px 28px; border-radius: 14px; background: var(--clair); }
.quantite-dessin { display: block; width: 100%; height: auto; }
/* Sans JavaScript : pas de curseur mort, la grille montre douze pièces */
.quantite:not(.actif) .quantite-reglage { display: none; }
.quantite-dessin .vide path { fill: none; stroke: color-mix(in srgb, var(--marine) 26%, var(--blanc)); stroke-width: 1; stroke-linejoin: round; }
.quantite-dessin .piece { opacity: 0; translate: 0 -8px; transition: opacity .25s ease-out, translate .35s var(--sortie); }
.quantite-dessin .piece.faite { opacity: 1; translate: 0 0; transition-delay: calc((var(--i) - var(--de, 0)) * 14ms); }
.quantite-dessin .d { --k: color-mix(in srgb, var(--charbon) 72%, var(--blanc)); fill: var(--k); stroke: var(--k); stroke-width: .7; stroke-linejoin: round; }
.quantite-dessin .c { --k: color-mix(in srgb, var(--charbon) 90%, var(--blanc)); fill: var(--k); stroke: var(--k); stroke-width: .7; stroke-linejoin: round; }
.quantite-dessin .b { --k: var(--charbon); fill: var(--k); stroke: var(--k); stroke-width: .7; stroke-linejoin: round; }
.quantite-reglage { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; margin-top: 18px; }
.quantite-reglage label { font-weight: 600; font-size: 17px; }
.quantite-reglage output { font-size: 24px; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.quantite-reglage .curseur { grid-column: 1 / -1; }
.quantite-note { margin-top: 8px; color: var(--gris); font-size: 16px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pastilles li { padding: 6px 12px; border-radius: 999px; background: var(--clair); font-weight: 600; font-size: 15px; }
.etapes-page { padding: 112px 0; }

/* Photos découvertes sous le trait du scanner ; règle des étapes qui se déroule (mêmes gestes que l'accueil) */
.v3-scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 2px; background: var(--vert); opacity: 0; pointer-events: none; }
.js-motion .v3-scan:not(.vu) img { clip-path: inset(0 0 100% 0); }
.js-motion .v3-scan.vu img { clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.45, 0, .2, 1) var(--d, 0s); }
.js-motion .v3-scan.vu::after { animation: v3-balayage .8s cubic-bezier(.45, 0, .2, 1) var(--d, 0s) both; }
@keyframes v3-balayage { 0% { top: 0; opacity: 1; } 92% { top: calc(100% - 2px); opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
.js-motion .regle:not(.vu)::before { clip-path: inset(0 100% 0 0); }
.js-motion .regle.vu::before { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.5, 0, .25, 1); }
.js-motion .regle:not(.vu) li { opacity: 0; }
.js-motion .regle.vu li { opacity: 1; transition: opacity .35s ease-out; transition-delay: calc(.1s + var(--i) * .2s); }

@media (max-width: 900px) {
  .entete-page .actions .bouton { flex: 1 1 100%; }
  .sommaire { flex-direction: column; align-items: stretch; margin-top: 28px; padding-top: 22px; }
  .besoin, .options, .etapes-page { padding: 72px 0; }
  .besoin-grille { grid-template-columns: 1fr; gap: 28px; }
  .besoin-photo { position: relative; top: auto; order: -1; aspect-ratio: 16 / 10; }
  .tete-besoin, .options-corps { grid-template-columns: 1fr; gap: 20px; }
  .points.en-colonnes { grid-template-columns: 1fr; margin-top: 28px; }
  .points.en-colonnes > div:last-child { border-bottom: 1px solid var(--filet); }
  .quantite { position: static; padding: 20px 18px 22px; }
  .options-liste h3 { font-size: 22px; }
  .js-motion .regle:not(.vu)::before { clip-path: inset(0 0 100% 0); }
}

/* ---------- Page de service : les questions qu'on se pose avec un fichier en main ---------- */
.questions-service { padding: 16px 0 40px; }
.question { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; padding: 96px 0; border-top: 1px solid var(--filet); view-timeline: --lecture block; }
.question:first-child { border-top: 0; }
/* La question reste collée pendant que sa réponse défile ; le filet se remplit de vert au fil de la lecture */
.question .q { position: sticky; top: 104px; padding-left: 30px; }
.question .q h2 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.06; }
/* La réponse courte, sous la question : on peut lire la page en ne lisant que la colonne de gauche */
.question .court { margin-top: 18px; max-width: 20em; font-size: 22px; font-weight: 600; font-stretch: 104%; line-height: 1.35; text-wrap: balance; }
.question .q::before, .question .q::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--filet); }
.question .q::after { background: var(--vert); transform-origin: top; scale: 1 0; }
@supports (animation-timeline: view()) {
  .js-motion .question .q::after { animation: lecture linear both; animation-timeline: --lecture; animation-range: contain 0% exit 60%; }
}
@keyframes lecture { from { scale: 1 0; } to { scale: 1 1; } }
.reponse > * + * { margin-top: 28px; }
.reponse .lede { max-width: 32em; font-size: 21px; line-height: 1.5; }
.reponse > p:not(.lede) { max-width: 36em; color: var(--gris); }
.reponse > p a { color: var(--marine); text-decoration-color: var(--vert); text-underline-offset: 3px; }
.reponse .note { font-size: 16px; }
.reponse > .bouton { margin-top: 36px; }

/* Trois chemins selon ce qu'on a en main */
.chemins { border-top: 1px solid var(--filet); }
.chemins a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; padding: 22px 6px 22px 0; border-bottom: 1px solid var(--filet); color: var(--marine); text-decoration: none; }
.chemins strong { font-size: 19px; font-weight: 700; font-stretch: 108%; line-height: 1.3; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.chemins span { grid-column: 1; color: var(--gris); font-size: 16px; line-height: 1.5; }
.chemins svg { grid-row: 1 / 3; grid-column: 2; width: 24px; stroke: var(--vert-fonce); transition: translate .25s var(--sortie); }
.chemins a:hover strong { text-decoration-color: var(--vert); }
.chemins a:hover svg { translate: 5px 0; }

/* Les huit matériaux */
.materiaux { width: 100%; border-collapse: collapse; }
.materiaux thead th { padding: 0 0 12px; text-align: left; font-size: 15px; font-weight: 600; color: var(--gris); border-bottom: 2px solid var(--marine); }
.materiaux tbody tr { border-bottom: 1px solid var(--filet); }
.materiaux tbody th { width: 32%; padding: 17px 24px 17px 0; text-align: left; vertical-align: top; font-size: 18px; font-weight: 700; font-stretch: 108%; line-height: 1.3; }
.materiaux td { padding: 17px 0; vertical-align: top; font-size: 17px; line-height: 1.5; color: var(--gris); text-wrap: pretty; }
.conseil { padding: 26px 28px; border-radius: 16px; background: var(--clair); }
.conseil h3 { font-size: 23px; font-weight: 700; line-height: 1.15; }
.conseil p { margin-top: 8px; color: var(--gris); font-size: 17px; }

/* Finitions : des échantillons dessinés (aucune photo) */
.finitions { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--filet); }
.finitions h3 { font-size: 23px; font-weight: 700; line-height: 1.15; }
.finitions > p { margin-top: 8px; color: var(--gris); }
.finitions .note { margin-top: 14px; font-size: 15px; }
.echantillons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.echantillon { margin: 0; }
.echantillon figcaption { margin-top: 10px; font-weight: 600; font-size: 16px; }
.surface { aspect-ratio: 1 / 1; border-radius: 12px; background-color: var(--charbon); }
.surface.lisse { background-image: linear-gradient(140deg, color-mix(in srgb, var(--charbon) 62%, var(--blanc)) 0%, var(--charbon) 46%, color-mix(in srgb, var(--charbon) 82%, var(--blanc)) 100%); }
.surface.texturee { background-image: radial-gradient(color-mix(in srgb, var(--blanc) 30%, transparent) .9px, transparent 1.5px), radial-gradient(color-mix(in srgb, var(--blanc) 16%, transparent) .9px, transparent 1.7px), linear-gradient(140deg, color-mix(in srgb, var(--charbon) 84%, var(--blanc)), var(--charbon)); background-size: 7px 7px, 11px 11px, 100% 100%; background-position: 0 0, 3px 5px, 0 0; }
.surface.carbone { display: block; width: 100%; height: auto; overflow: hidden; border-radius: 12px; }
.surface.carbone .fond { fill: var(--charbon); }
.surface.carbone .tisse { fill: url(#tissage); }
.surface.carbone .fils { fill: none; stroke: color-mix(in srgb, var(--charbon) 58%, var(--blanc)); stroke-width: 1.3; }
.surface.carbone .lueur { fill: color-mix(in srgb, var(--blanc) 9%, transparent); clip-path: polygon(0 0, 62% 0, 22% 100%, 0 100%); }

/* Deux faits en phrases */
.faits { border-top: 1px solid var(--filet); }
.faits > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--filet); }
.faits dt { font-size: 28px; font-weight: 700; font-stretch: 114%; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.faits dd { margin: 0; color: var(--gris); font-size: 17px; line-height: 1.5; }
.facteurs li { padding: 9px 16px; font-size: 16px; }
.reponse .points { margin-top: 32px; }

@media (max-width: 900px) {
  .questions-service { padding: 0 0 16px; }
  .question { grid-template-columns: 1fr; gap: 22px; padding: 64px 0; }
  .question .q { position: static; padding-left: 0; }
  .question .q::before, .question .q::after { display: none; }
  .question .q h2 { font-size: 30px; }
  .question .court { margin-top: 12px; font-size: 19px; }
  .reponse > * + * { margin-top: 24px; }
  .reponse .lede { font-size: 18px; }
  .sommaire.questions-liens { flex-direction: row; align-items: center; gap: 8px; }
  .sommaire.questions-liens a { padding: 0 14px 0 12px; font-size: 15px; }
  .chemins strong { font-size: 18px; }
  .materiaux tbody th { width: 36%; padding-right: 14px; font-size: 17px; }
  .materiaux td { font-size: 16px; }
  .conseil { padding: 20px 18px 22px; }
  .echantillons { gap: 10px; }
  .echantillon figcaption { font-size: 15px; }
  .faits > div { grid-template-columns: 1fr; padding: 20px 0; }
  .faits dt { font-size: 23px; }
  .reponse > .bouton { width: 100%; }
}

/* ---------- Modélisation 3D : la pièce dessinée en code, du croquis à la pièce imprimée ---------- */
.etabli { position: relative; background: var(--clair); overflow: hidden; }
.etabli .cadre { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-content: space-between; gap: 40px 48px; min-height: 720px; padding: 96px 0 56px; pointer-events: none; }
.etabli .cadre > * { pointer-events: auto; }
.piece3d { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.piece3d.pris { cursor: grabbing; }
.piece3d:focus-visible { outline: 2px solid var(--vert-fonce); outline-offset: -4px; }
.etabli:not(.actif) .piece3d, .etabli:not(.actif) .reglage, .etabli:not(.actif) .tourner, .etabli:not(.actif) .etabli-note { display: none; }
.etabli:not(.actif) .cadre { min-height: 0; }
.etabli-texte { max-width: 30em; }
.etabli h2 { font-size: clamp(32px, 3.7vw, 52px); line-height: 1.04; }
.etats { margin-top: 24px; min-height: 6em; }
.etats p { font-size: 19px; line-height: 1.5; }
.etabli:not(.actif) .etats p + p { margin-top: 18px; }
.etats strong { display: block; margin-bottom: 4px; font-size: 24px; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.15; }
.etabli.actif .etats p:not([hidden]) { animation: fondu .35s var(--sortie); }
.etabli-note { margin-top: 4px; font-size: 15px; color: var(--gris); }
.reglage { grid-column: 1 / -1; max-width: 600px; padding: 0 2px; }
.curseur { display: block; width: 100%; height: 34px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.curseur::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--vert) var(--p, 0%), color-mix(in srgb, var(--marine) 22%, var(--blanc)) var(--p, 0%)); }
.curseur::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--marine) 22%, var(--blanc)); }
.curseur::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--vert); }
.curseur::-webkit-slider-thumb { appearance: none; width: 30px; height: 30px; margin-top: -13px; border: 4px solid var(--blanc); border-radius: 50%; background: var(--vert); box-shadow: 0 1px 6px color-mix(in srgb, var(--marine) 35%, transparent); }
.curseur::-moz-range-thumb { width: 22px; height: 22px; border: 4px solid var(--blanc); border-radius: 50%; background: var(--vert); box-shadow: 0 1px 6px color-mix(in srgb, var(--marine) 35%, transparent); }
.curseur:focus-visible { outline: 2px solid var(--vert-fonce); outline-offset: 4px; border-radius: 4px; }
/* Chaque repère se pose sous sa butée (le curseur va du centre de la poignée à l'autre bout) */
.reperes { position: relative; height: 44px; margin-top: 4px; }
.reperes button { position: absolute; top: 0; min-height: 44px; min-width: 44px; padding: 0 4px; border: 0; background: none; color: var(--gris); font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.reperes button:nth-child(1) { left: 0; padding-left: 0; text-align: left; }
.reperes button:nth-child(2) { left: calc(15px + (100% - 30px) / 3); translate: -50% 0; }
.reperes button:nth-child(3) { left: calc(15px + (100% - 30px) * 2 / 3); translate: -50% 0; }
.reperes button:nth-child(4) { right: 0; padding-right: 0; text-align: right; }
.reperes button[aria-pressed="true"] { color: var(--marine); }
.reperes .court { display: none; }
.reperes button:hover { color: var(--marine); }
.tourner { position: absolute; right: 0; bottom: 56px; display: flex; gap: 8px; }
.tourner button { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid color-mix(in srgb, var(--marine) 30%, var(--blanc)); border-radius: 50%; background: var(--blanc); color: var(--marine); cursor: pointer; transition: border-color .15s; }
.tourner button:hover { border-color: var(--marine); }
.tourner svg { width: 20px; stroke: currentColor; }
@media (max-width: 1000px) {
  /* Empilé (tablette et téléphone) : titre, pièce, curseur, texte, puis les boutons pour tourner */
  .etabli { display: flex; flex-direction: column; padding: 56px 18px 48px; }
  .etabli .cadre, .etabli .etabli-texte { display: contents; }
  .etabli h2 { order: 1; font-size: 32px; }
  .piece3d { position: relative; inset: auto; order: 2; width: 100%; height: clamp(340px, 50vw, 460px); margin-top: 8px; }
  .etabli .reglage { order: 3; position: static; max-width: none; margin-top: 4px; }
  .etats { order: 4; min-height: 7.2em; margin-top: 14px; }
  .etabli-note { order: 5; }
  .etabli .tourner { order: 6; position: static; margin-top: 18px; }
}
/* Deux façons de commencer : deux colonnes de texte, une règle entre elles */
.deux-facons { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border-top: 2px solid var(--marine); }
.deux-facons > div { padding: 30px 56px 8px 0; }
.deux-facons > div + div { padding: 30px 0 8px 56px; border-left: 1px solid var(--filet); }
.deux-facons h3 { font-size: 30px; font-weight: 700; line-height: 1.12; }
.deux-facons p { margin-top: 14px; max-width: 30em; color: var(--gris); text-wrap: pretty; }
.deux-facons a { color: var(--marine); font-weight: 600; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ensuite-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.points.sans-marge { margin-top: 0; }

@media (max-width: 900px) {
  .etats p { font-size: 17px; }
  .etats strong { font-size: 21px; }
  .reglage { max-width: none; }
  .reperes button { padding: 0 2px; font-size: 13px; }
  .reperes .long { display: none; }
  .reperes .court { display: inline; }
  .tourner { justify-content: center; }
  .deux-facons { grid-template-columns: 1fr; margin-top: 28px; }
  .deux-facons > div, .deux-facons > div + div { padding: 24px 0; border-left: 0; }
  .deux-facons > div + div { border-top: 1px solid var(--filet); }
  .deux-facons h3 { font-size: 23px; }
  .ensuite-grille { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Scan 3D : le scanner qui fait le tour de la pièce (même établi que Modélisation 3D), puis la crémaillère ---------- */
.mesure { max-width: min(520px, 39vw); }
.mesure-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
.mesure .valeur { font-size: 24px; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.jauge { height: 6px; margin-top: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--vert) var(--v, 0%), color-mix(in srgb, var(--marine) 22%, var(--blanc)) var(--v, 0%)); }
.plateau-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; min-height: 48px; margin-top: 20px; }
.plateau-boutons [hidden] { display: none; }
.bouton.sobre { min-height: 48px; padding: 0 22px; border: 0; background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--marine); cursor: pointer; }
.bouton.sobre:hover { background: color-mix(in srgb, var(--marine) 7%, var(--blanc)); }
.bouton.sobre[aria-pressed="true"] { background: var(--marine); color: var(--blanc); }
.bouton-lien { min-height: 44px; padding: 0; border: 0; background: none; color: var(--marine); font-size: 16px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.plateau .etats { min-height: 5.6em; }
.plateau .etabli-note { margin-top: 14px; }
@media (max-width: 1000px) { .plateau .piece3d { height: clamp(300px, 80vw, 540px); margin-top: -14px; } }
.cle-vert { display: inline-block; }
.cle-vert::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px; border-radius: 2px; background: var(--vert); vertical-align: -1px; }
.ensuite-grille .intro a { color: var(--marine); font-weight: 600; text-decoration-color: var(--vert); text-decoration-thickness: 2px; }
.cremaillere { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.cremaillere svg { width: calc(100% + 1px); max-width: none; height: auto; }
.cremaillere .corps { fill: color-mix(in srgb, var(--marine) 9%, var(--blanc)); }
.cremaillere .trait { fill: none; stroke: var(--marine); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cremaillere .ajout { fill: var(--vert); }
.cremaillere h3 { margin-top: 26px; font-size: 28px; font-weight: 700; line-height: 1.12; }
.cremaillere p { margin-top: 12px; padding-right: 56px; color: var(--gris); text-wrap: pretty; }
@media (max-width: 900px) {
  .cremaillere { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
  .cremaillere svg { width: 100%; }
  .cremaillere h3 { margin-top: 18px; font-size: 25px; }
  .cremaillere p { padding-right: 0; }
  .plateau .etats { min-height: 4em; }
}
@media (max-width: 600px) { .plateau .etats { min-height: 6em; } }
