/* Campus Saint Marc site header, copied from the csm-rouen theme (header.php + site.css, 20/11/2026).
   Scoped under .csm-header so it does not touch the Prépa Alternance styles. Not sticky here:
   the page pins its own sections at the top of the screen while scrolling. */
.csm-header { position: relative; z-index: 60; background: #fff; border-bottom: 1px solid rgb(62 84 98 / 22%); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.65; color: #000; }
.csm-header *, .csm-header *::before, .csm-header *::after { box-sizing: border-box; }
.csm-header__inner { display: flex; align-items: center; gap: 28px; min-height: 98px; width: min(1200px, calc(100% - clamp(20px, 4vw, 48px) * 2)); margin-inline: auto; }
.csm-header__brand { display: flex; flex: 0 0 auto; align-items: center; color: #000; text-decoration: none; }
.csm-header__brand img { display: block; width: auto; max-width: 100%; height: 56px; aspect-ratio: 1601 / 514; }
.csm-header__nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.csm-header__nav a { display: block; padding: 10px 0; color: #000; font-size: 14px; font-weight: 560; line-height: 1.65; text-decoration: none; white-space: nowrap; }
.csm-header__nav a:hover { color: #952581; text-decoration: underline; text-underline-offset: 7px; }
.csm-header__nav a.csm-header__contact { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; margin-left: 2px; padding: 9px 15px; border: 1px solid #952581; border-radius: 4px; background: #952581; color: #fff; font-size: 13px; line-height: 1.45; text-decoration: none; transition: box-shadow .2s; }
.csm-header__nav a.csm-header__contact:hover { color: #fff; text-decoration: none; box-shadow: 4px 5px 0 #F8BB16; }
.csm-header a:focus-visible, .csm-header button:focus-visible { outline: 3px solid #952581; outline-offset: 3px; }
.csm-header__toggle { display: none; align-items: center; justify-content: center; gap: 9px; min-height: 44px; margin: 0; padding: 9px 14px; border: 1px solid rgb(62 84 98 / 55%); border-radius: 4px; background: #fff; color: #000; font: 650 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; cursor: pointer; }

@media (max-width: 1100px) {
  .csm-header__inner { gap: 20px; }
  .csm-header__nav a { font-size: 13px; }
}
@media (max-width: 980px) {
  .csm-header__inner { flex-wrap: wrap; justify-content: space-between; gap: 0 18px; min-height: 85px; padding-block: 14px; }
  .csm-header__brand { max-width: calc(100% - 86px); }
  .csm-header__nav a.csm-header__contact { display: none; }
  .csm-header.has-js .csm-header__toggle { display: inline-flex; }
  .csm-header__nav { display: block; flex: 1 0 100%; width: 100%; margin: 15px 0 0; padding-top: 13px; border-top: 1px solid rgb(62 84 98 / 22%); }
  .csm-header__nav a { padding-block: 10px; font-size: 14px; }
  .csm-header.has-js:not(.is-open) .csm-header__nav { display: none; }
}
@media (max-width: 767px) {
  .csm-header__brand img { height: 46px; }
}
@media (max-width: 520px) {
  .csm-header__inner { min-height: 79px; padding-block: 13px; }
  .csm-header__brand img { height: 40px; }
  .csm-header__toggle { min-height: 42px; padding: 8px 11px; font-size: 12px; }
  .csm-header__nav a { padding-block: 12px; border-bottom: 1px solid rgb(62 84 98 / 22%); }
  .csm-header__nav a:last-of-type { border-bottom: 0; }
}
@media print { .csm-header { display: none; } }
