/* Ferrailleur Lyon — complément au thème Modernist.
   Ne contient que ce que les styles en ligne ne peuvent pas porter :
   états de survol, focus et adaptation aux petits écrans. */

a, a[href], .btn, button, label, select, summary, [role="button"],
input[type="checkbox"], input[type="radio"] { cursor: pointer; }
a:not([href]) { cursor: default; }
html { scroll-behavior: smooth; }

/* Flèche de retour en haut */
.to-top:hover { background: var(--color-accent-600) !important; }

/* Menu déroulant des petits écrans */
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::marker { content: ""; }

a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-600); }
header nav a:hover { color: var(--color-accent-700) !important; }
footer a:hover { color: var(--color-accent-400) !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 2px;
}
.input { width: 100%; box-sizing: border-box; }
textarea.input { resize: vertical; }
img { height: auto; }

@media (max-width: 900px) {
  .table { display: block; overflow-x: auto; }
}
@media (max-width: 900px) {
  .nav-mobile { display: block !important; }
  .nav-rows { display: none !important; }
}
@media (max-width: 820px) {
  h1 { font-size: 32px !important; }
  h2 { font-size: 24px !important; }
  h3 { font-size: 18px !important; }
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="padding: 64px 24px"], [style*="padding: 56px 24px"] { padding: 36px 20px !important; }
  [style*="font-size: 52px"], [style*="font-size: 46px"], [style*="font-size: 44px"] { font-size: 30px !important; }
}
@media print {
  header nav, footer, .nav-mobile, .to-top { display: none; }
  body { background: #fff; }
}
