/* Styles de la maquette Usine « chantier » Henrion Quentin (30/09/2026), recopiés tels quels. */
*:has(> img[data-bouge]) { overflow: hidden !important; }
  img[data-bouge] { animation: usineBouge 22s ease-in-out infinite alternate !important; transform-origin: 60% 45%; will-change: transform; }
  @keyframes usineLettre { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
  @keyframes usineBouge { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2.5%, -1.5%); } }
  @media (prefers-reduced-motion: reduce) { img[data-bouge] { animation: none !important; } }
  /* bandeau du haut en mobile : les icônes seules, plus grandes (28/09/2026) */
  @media (max-width: 760px) {
    [data-tb-texte] { display: none !important; }
    a:has(> [data-tb-texte]) svg { width: 22px; height: 22px; }
    a:has(> [data-tb-texte]) { padding: 6px 8px; }
  }

html { scroll-behavior: smooth; overflow-x: clip; }
  body { margin: 0; background: #F5F1EB; color: #1E1F22; font-family: 'Work Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
  * { box-sizing: border-box; }
  a { color: #1E1F22; text-decoration: none; }
  a:hover { color: #2A2B2E; }
  img { display: block; }
  input, textarea, select, button { font: inherit; color: inherit; }
  @keyframes gRise { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
  @keyframes gFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes gMask { from { transform: translateY(110%); } to { transform: none; } }
  @keyframes gClip { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes gWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes gPar { from { transform: translate3d(0,-7%,0) scale(1.16); } to { transform: translate3d(0,7%,0) scale(1.16); } }
  @keyframes gOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-90px); } }
  @keyframes gBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes gMarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes gIntro { 0%, 99% { visibility: visible; } 100% { visibility: hidden; } }
  @keyframes gIntroOut { from { transform: none; } to { transform: translateY(-100%); } }
  @keyframes gBrick { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
  @keyframes gPulse { 0% { box-shadow: 0 0 0 0 rgba(207,160,118,.5); } 100% { box-shadow: 0 0 0 18px rgba(207,160,118,0); } }
  @keyframes gDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes gSlideL { from { opacity: 0; transform: translateX(-120px); } to { opacity: 1; transform: none; } }
  @keyframes gZoomOut { from { transform: scale(1.35); } to { transform: scale(1); } }
  @keyframes gSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes gFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  @keyframes gShine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
  @keyframes gImgIn { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
  @supports not (animation-timeline: view()) {
    [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    [data-reveal] { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
    [data-intro] { display: none !important; }
  }
  /* 30/09/2026 (Mertens #1351, Wakny) : au survol la carte prend l'accent ; numéro et texte
     prennent alors la couleur posée sur l'accent (sinon numéro invisible, accent sur accent) */
  @media (hover: hover) and (min-width: 761px) {
    #services article:hover [data-svc-n], #services article:hover [data-svc-d] { color: inherit !important; }
  }
  /* mobile (28/09/2026, Wakny) : menu burger, services et étapes en cartes qui glissent */
  @media (max-width: 760px) {
    [data-burger] { display: grid !important; }
    [data-nav] { display: none !important; }
    html.usine-menu-ouvert [data-ico-ouvrir] { display: none !important; }
    html.usine-menu-ouvert [data-ico-fermer] { display: block !important; }
    html.usine-menu-ouvert a[aria-label^="Appeler "], html.usine-menu-ouvert a[aria-label^="Écrire à "] { display: none !important; }
    html.usine-menu-ouvert [data-nav] { display: flex !important; flex-direction: column; align-items: stretch !important; width: 100%; gap: 0 !important; padding: 6px 0 14px; font-size: 18px !important; }
    html.usine-menu-ouvert [data-nav] > a { padding: 14px 4px; border-top: 1px solid #E3DDD4; }
    html.usine-menu-ouvert [data-nav] > a:last-child { margin-top: 10px; text-align: center; border-top: 0; }
    [data-rail-mobile] { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important; background: transparent !important; margin-left: -24px; margin-right: -24px; padding: 0 24px 6px; scroll-padding: 0 24px; scrollbar-width: none; }
    [data-rail-mobile]::-webkit-scrollbar { display: none; }
    [data-rail-mobile] > sc-for { display: contents !important; }
    #services [data-rail-mobile] > *:not(sc-for), #services [data-rail-mobile] > sc-for > * { background: #2A2B30 !important; border-top: 3px solid #CFA076; }
    [data-rail-mobile] > *:not(sc-for), [data-rail-mobile] > sc-for > * { flex: 0 0 82% !important; scroll-snap-align: start; }
  }

/* style-hover / style-focus de la maquette → classes (!important : les styles inline priment sinon) */
.hv1:hover { color: #FFFFFF !important; }
.hv2:hover { background: #1E1F22 !important; color: #FFFFFF !important; }
.hv3:hover { background: #FFFFFF !important; color: #2A2B2E !important; transform: translateY(-2px) !important; }
.hv4:hover { color: #CFA076 !important; padding-left: 6px !important; }
.hv5:hover { color: #CFA076 !important; }
.hv6:hover { background: #CFA076 !important; border-color: #CFA076 !important; color: #141414 !important; transform: translateY(-3px) !important; }
.hv7:hover { background: rgba(255,255,255,.12) !important; color: #FFFFFF !important; }
.hv8:hover { background: #CFA076 !important; transform: translateY(-6px) !important; color: #141414 !important; }
.hv9:hover { background: #1E1F22 !important; }
.hv10:hover { transform: scale(1.05) !important; }
.hv11:hover { transform: translateY(-6px) !important; }
.hv12:hover { background: #FFFFFF !important; color: #1E1F22 !important; transform: translateY(-2px) !important; }
.hv13:hover { background: #FFFFFF !important; color: #2A2B2E !important; }
.fc1:focus { border-color: #CFA076 !important; }
