/* Page « Tous les métiers » (Benjamin, 17/11/2026). Sans script, tout reste
   visible : les états de départ ne s'appliquent que sous html.mt-pret. */
.mt-page{--mt-accent:#ff8b42;--mt-carte:#141516;--mt-trait:#ffffff1c;overflow-x:clip}

/* En-tête : mur de noms de métiers qui défile derrière le titre. */
.mt-tete{position:relative;isolation:isolate;padding-top:90px;padding-bottom:56px}
.mt-mur{position:absolute;inset:0 calc(50% - 50vw);z-index:-1;display:grid;align-content:center;gap:6px;overflow:hidden;pointer-events:none;-webkit-mask-image:radial-gradient(ellipse 75% 85% at 70% 45%,#000 10%,transparent 78%);mask-image:radial-gradient(ellipse 75% 85% at 70% 45%,#000 10%,transparent 78%)}
.mt-rang{overflow:hidden}
.mt-rang>div{display:flex;width:max-content;animation:mt-defile var(--mt-duree,60s) linear infinite}
.mt-rang.mt-inverse>div{animation-direction:reverse}
.mt-rang span{font:600 clamp(54px,8vw,118px)/1.02 var(--title,'Bricolage Grotesque'),sans-serif;letter-spacing:-.045em;white-space:nowrap;padding-right:.5em;color:transparent;-webkit-text-stroke:1px #ffffff2e}
.mt-rang:nth-child(2) span:nth-child(3n),.mt-rang:nth-child(3) span:nth-child(4n+1){-webkit-text-stroke-color:#ff8b4266}
@keyframes mt-defile{to{transform:translate3d(-50%,0,0)}}
.mt-tete h1{max-width:900px}
.mt-tete>p{max-width:640px}
.mt-chiffres{display:flex;flex-wrap:wrap;gap:12px 34px;margin-top:38px;font-size:14px;color:var(--muted,#b3b4b6)}
.mt-chiffres span{display:flex;align-items:baseline;gap:10px}
.mt-chiffres b{font:600 34px/1 var(--title,'Bricolage Grotesque'),sans-serif;letter-spacing:-.04em;color:var(--ink,#f1f0ed);font-variant-numeric:tabular-nums}
.mt-chiffres span:last-child b:before{content:"+"}

/* Recherche et familles : barre qui reste sous l'en-tête du site. */
.mt-outil{position:sticky;top:76px;z-index:20;display:grid;gap:14px;padding-top:14px;padding-bottom:14px;margin-bottom:26px}
.mt-outil:before{content:"";position:absolute;inset:0 calc(50% - 50vw);z-index:-1;background:#0c0d0ee6;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid transparent;transition:border-color .3s}
.mt-outil.mt-colle:before{border-bottom-color:var(--mt-trait)}
.mt-recherche{display:flex;align-items:center;gap:14px;padding:0 20px;height:62px;border-radius:16px;background:var(--mt-carte);border:1px solid var(--mt-trait);transition:border-color .3s,box-shadow .3s}
.mt-recherche:focus-within{border-color:var(--mt-accent);box-shadow:0 0 0 4px #ff8b4224}
.mt-recherche svg{width:22px;height:22px;flex:none;fill:none;stroke:var(--mt-accent);stroke-width:1.7;stroke-linecap:round}
.mt-recherche input{flex:1;min-width:0;height:100%;background:none;border:0;outline:0;color:var(--ink,#f1f0ed);font:500 17px/1 var(--body,'DM Sans'),sans-serif}
.mt-recherche input::placeholder{color:#8d8e90}
.mt-recherche span{flex:none;font-size:13px;color:var(--muted,#b3b4b6);font-variant-numeric:tabular-nums}
.mt-puces{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;-webkit-mask-image:linear-gradient(90deg,#000 92%,transparent);mask-image:linear-gradient(90deg,#000 92%,transparent)}
.mt-puces::-webkit-scrollbar{display:none}
.mt-puces button{flex:none;height:36px;padding:0 15px;border-radius:999px;border:1px solid var(--mt-trait);background:transparent;color:#d2d0cc;font:500 13.5px/1 var(--body,'DM Sans'),sans-serif;cursor:pointer;white-space:nowrap;transition:background .25s,color .25s,border-color .25s}
.mt-puces button:hover{border-color:#ffffff55}
.mt-puces button.on{background:var(--mt-accent);border-color:var(--mt-accent);color:#1b0d05;font-weight:600}
.mt-puces button:last-child{margin-right:40px}

/* Familles : grille à largeurs inégales, pour que les blocs ne se ressemblent pas. */
.mt-grille{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;padding-bottom:40px}
.mt-fam{position:relative;grid-column:span 6;display:flex;flex-direction:column;gap:24px;padding:30px;border-radius:22px;background:var(--mt-carte);border:1px solid var(--mt-trait);overflow:hidden;scroll-margin-top:210px;transition:border-color .4s,translate .5s cubic-bezier(.16,1,.3,1)}
.mt-fam.mt-large{grid-column:span 7}.mt-fam.mt-etroit{grid-column:span 5}.mt-fam.mt-tiers{grid-column:span 4}.mt-fam.mt-moitie{grid-column:span 6}
.mt-fam:before{content:"";position:absolute;inset:0;background:radial-gradient(420px circle at var(--mt-x,50%) var(--mt-y,-30%),#ff8b421f,transparent 65%);opacity:0;transition:opacity .4s;pointer-events:none}
.mt-fam:hover{border-color:#ff8b4255}.mt-fam:hover:before{opacity:1}
.mt-fam header{display:grid;grid-template-columns:auto 1fr;gap:6px 18px;align-items:start}
.mt-num{position:absolute;top:14px;right:22px;font:600 76px/1 var(--title,'Bricolage Grotesque'),sans-serif;letter-spacing:-.06em;color:transparent;-webkit-text-stroke:1px #ffffff1c;pointer-events:none}
.mt-ico{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:#ff8b421a;border:1px solid #ff8b4233}
.mt-ico svg{width:24px;height:24px;fill:none;stroke:var(--mt-accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mt-fam h2{font:600 clamp(21px,1.9vw,27px)/1.15 var(--title,'Bricolage Grotesque'),sans-serif;letter-spacing:-.035em;color:var(--ink,#f1f0ed);margin:0;padding-right:70px}
.mt-fam header p{margin:8px 0 0;font-size:14.5px;line-height:1.65;color:var(--muted,#b3b4b6);max-width:46ch}
.mt-liste{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.mt-liste li{padding:9px 14px;border-radius:10px;background:#ffffff0b;border:1px solid #ffffff12;font-size:14px;line-height:1.2;color:#e6e3de;transition:background .3s,border-color .3s,color .3s,opacity .3s,translate .4s cubic-bezier(.16,1,.3,1)}
.mt-liste li:hover{background:#ff8b4222;border-color:#ff8b4266;color:#fff;translate:0 -2px}
.mt-liste li.mt-touche{background:var(--mt-accent);border-color:var(--mt-accent);color:#1b0d05;font-weight:600}
.mt-liste li.mt-hors{opacity:.22}
.mt-fam[hidden]{display:none}
/* Site déjà en ligne pour cette famille. */
.mt-exemple{display:grid;grid-template-columns:132px 1fr auto;gap:16px;align-items:center;margin-top:auto;padding:10px 16px 10px 10px;border-radius:14px;background:#0c0d0e;border:1px solid var(--mt-trait);color:inherit;text-decoration:none;transition:border-color .3s,background .3s}
.mt-exemple img{width:132px;height:76px;object-fit:cover;object-position:top;border-radius:8px;display:block}
.mt-exemple span:not(.sr-only){display:grid;gap:3px;min-width:0}
.mt-exemple small{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--mt-accent)}
.mt-exemple b{font:600 16px/1.2 var(--title,'Bricolage Grotesque'),sans-serif;color:var(--ink,#f1f0ed)}
.mt-exemple i{font-style:normal;font-size:13px;color:var(--muted,#b3b4b6)}
.mt-exemple .arrow{width:20px;height:20px;fill:none;stroke:var(--mt-accent);stroke-width:1.6;transition:translate .4s cubic-bezier(.16,1,.3,1)}
.mt-exemple:hover{border-color:#ff8b4277;background:#121314}.mt-exemple:hover .arrow{translate:5px 0}
.mt-vide{grid-column:1/-1;padding:56px 30px;border-radius:22px;border:1px dashed #ffffff33;text-align:center}
.mt-vide[hidden]{display:none}
.mt-vide h2{font:600 28px/1.15 var(--title,'Bricolage Grotesque'),sans-serif;letter-spacing:-.035em;margin:0}
.mt-vide p{max-width:520px;margin:14px auto 26px;color:var(--muted,#b3b4b6);line-height:1.7}

/* Deux façons de travailler. */
.mt-facons{padding-top:70px;padding-bottom:90px}
.mt-facons>h2{font:600 clamp(30px,3.6vw,48px)/1.1 var(--title,'Bricolage Grotesque'),sans-serif;letter-spacing:-.045em;max-width:820px;margin:16px 0 44px}
.mt-facons>h2 em{font-style:italic;color:var(--mt-accent)}
.mt-deux{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.mt-deux article{position:relative;padding:36px;border-radius:22px;border:1px solid var(--mt-trait);background:var(--mt-carte);overflow:hidden}
.mt-deux article:last-child{background:linear-gradient(150deg,#2a1608,#141516 62%);border-color:#ff8b4244;translate:0 34px}
.mt-etiquette{display:inline-block;padding:6px 12px;border-radius:999px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--mt-accent);border:1px solid #ff8b4244}
.mt-deux h3{font:600 26px/1.15 var(--title,'Bricolage Grotesque'),sans-serif;letter-spacing:-.035em;margin:20px 0 12px;color:var(--ink,#f1f0ed)}
.mt-deux p{color:var(--muted,#b3b4b6);line-height:1.75;font-size:15.5px;margin:0}
.mt-deux ul{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:11px}
.mt-deux li{position:relative;padding-left:26px;font-size:15px;color:#e6e3de}
.mt-deux li:before{content:"";position:absolute;left:0;top:.5em;width:14px;height:1.5px;background:var(--mt-accent)}
.mt-suite{display:flex;flex-wrap:wrap;align-items:center;gap:26px;margin-top:84px}

/* Entrées en scène. */
html.mt-pret .mt-fam,html.mt-pret .mt-deux article{opacity:0;translate:0 44px;transition:opacity .9s cubic-bezier(.16,1,.3,1) var(--mt-d,0ms),translate 1.1s cubic-bezier(.16,1,.3,1) var(--mt-d,0ms),border-color .4s}
html.mt-pret .mt-fam.mt-vu{opacity:1;translate:0 0}
html.mt-pret .mt-deux article.mt-vu{opacity:1;translate:0 0}
html.mt-pret .mt-deux article:last-child.mt-vu{translate:0 34px}
html.mt-pret .mt-fam .mt-liste li{opacity:0;translate:0 12px}
html.mt-pret .mt-fam.mt-vu .mt-liste li{opacity:1;translate:0 0;transition-delay:calc(var(--mt-d,0ms) + 220ms + var(--mt-i,0) * 32ms)}
html.mt-pret .mt-fam.mt-vu.mt-fini .mt-liste li{transition-delay:0ms}
html.mt-pret .mt-fam.mt-vu .mt-liste li.mt-hors{opacity:.22}
html.mt-pret .mt-ico svg path{stroke-dasharray:120;stroke-dashoffset:120;transition:stroke-dashoffset 1.6s cubic-bezier(.16,1,.3,1) calc(var(--mt-d,0ms) + 250ms)}
html.mt-pret .mt-fam.mt-vu .mt-ico svg path{stroke-dashoffset:0}

@media(max-width:1000px){
  .mt-fam,.mt-fam.mt-large,.mt-fam.mt-etroit,.mt-fam.mt-tiers,.mt-fam.mt-moitie{grid-column:span 6}
}
@media(max-width:760px){
  .mt-tete{padding-top:44px;padding-bottom:34px}
  .mt-rang span{font-size:52px}
  .mt-chiffres{gap:14px 24px;margin-top:28px}.mt-chiffres b{font-size:27px}
  .mt-outil{top:64px;gap:10px;padding-top:10px;padding-bottom:10px;margin-bottom:16px}
  .mt-recherche{height:54px;padding:0 15px;gap:10px;border-radius:14px}
  .mt-recherche input{font-size:16px}
  .mt-recherche span{display:none}
  .mt-grille{gap:14px}
  .mt-fam,.mt-fam.mt-large,.mt-fam.mt-etroit,.mt-fam.mt-tiers,.mt-fam.mt-moitie{grid-column:1/-1;padding:22px;gap:20px;border-radius:18px;scroll-margin-top:180px}
  .mt-num{font-size:56px;top:12px;right:16px}
  .mt-fam h2{padding-right:56px}
  .mt-ico{width:44px;height:44px;border-radius:12px}
  .mt-fam header{gap:6px 14px}
  .mt-liste li{padding:8px 12px;font-size:13.5px}
  .mt-exemple{grid-template-columns:92px 1fr auto;gap:12px;padding:8px 12px 8px 8px}
  .mt-exemple img{width:92px;height:58px}
  .mt-facons{padding-top:46px;padding-bottom:60px}
  .mt-deux{grid-template-columns:1fr}
  .mt-deux article{padding:26px}
  .mt-deux article:last-child,html.mt-pret .mt-deux article:last-child.mt-vu{translate:0 0}
  .mt-deux h3{font-size:22px}
  .mt-suite{margin-top:36px;gap:20px}
}

.mt-page .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){.mt-facons>h2{font-size:27px;margin-bottom:28px}.mt-mur{opacity:.55}.mt-tete h1{text-wrap:balance}}
.mt-grille.mt-seule .mt-fam{grid-column:1/-1}
