/* Sofomedia : styles communs à toutes les pages */

@font-face {
  font-family: "Space Grotesk";
  src: url("/space-grotesk.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: #0B1B3F; font-family: "Instrument Sans", system-ui, sans-serif; }
a { color: #1D4ED8; }
a:hover { opacity: 0.85; }
img, svg { max-width: 100%; }
section[id] { scroll-margin-top: 16px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

/* Navigation au clavier : contour bien visible sur fond clair comme sur fond bleu */
:focus-visible { outline: 3px solid #F59E0B; outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: #0B1B3F; color: #FFFFFF; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Formulaire */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-error { display: block; font-size: 14px; line-height: 1.4; color: #B42318; }
.field-error:empty { display: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B42318 !important; box-shadow: 0 0 0 1px #B42318; }
#form-status { flex: 1 1 100%; margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; text-align: center; }
#form-status:empty { display: none; }
#form-status.is-ok { color: #067647; }
#form-status.is-error { color: #B42318; }
button[disabled] { opacity: 0.7; cursor: progress; }

/* Bouton du pied de page qui ressemble à un lien */
.link-button {
  display: flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 15px; color: #DCE6FF; text-align: left; cursor: pointer;
}
.link-button:hover { text-decoration: underline; }

/* Bannière cookies */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
  max-width: 560px; margin: 0 auto; box-sizing: border-box;
  background: #FFFFFF; color: #0B1B3F; border: 1px solid #D5DEF2; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11, 27, 63, 0.25); padding: 22px 22px 18px;
  font-size: 15px; line-height: 1.55;
}
.cc-banner[hidden] { display: none; }
.cc-banner h2 { margin: 0 0 6px; font-family: "Space Grotesk", sans-serif; font-size: 18px; }
.cc-banner p { margin: 0; color: #33405F; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cc-actions button {
  flex: 1 1 160px; min-height: 48px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 700; color: #FFFFFF;
}
.cc-refuse { background: #0B1B3F; }
.cc-accept { background: #1D4ED8; }

/* Adaptation mobile */
@media (max-width: 720px) {
  .nav-link { display: none !important; }
  .wrap { padding-top: 64px !important; padding-bottom: 64px !important; }
  .hero-wrap { padding-top: 40px !important; padding-bottom: 56px !important; gap: 40px !important; }
}
@media (max-width: 560px) {
  .chevalets { zoom: 0.56; }
  .offer-price { font-size: 44px !important; }
}
@media (max-width: 380px) {
  .chevalets { zoom: 0.5; }
}

/* Bandeau du haut : défilement continu (deux groupes identiques pour une boucle sans à-coup) */
.ticker-track { animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}
