:root {
  --navy: #0c1d43;
  --red: #ed1c24;
  --red-dark: #c9142b;
  --ice: #eaf3f5;
  --paper: #f7f6f2;
  --white: #fff;
  --ink: #11182a;
  --muted: #667081;
  --line: #dce1e5;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
.container { width: min(calc(100% - 48px), 1240px); margin-inline: auto; }
.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: fixed; left: 18px; top: 12px; z-index: 2000; padding: 10px 14px;
  color: var(--navy); background: var(--white); transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* En-tête — même composition que la maquette éditoriale. */
.site-header {
  position: relative; z-index: 100; min-height: 120px; display: flex; align-items: center;
  gap: 36px; padding: 12px 5vw; background: var(--white);
}
.original-logo {
  flex: 0 0 auto; width: 96px; height: 96px; display: grid; place-items: center;
  overflow: hidden; text-decoration: none;
}
.original-logo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.main-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.main-nav a, .nav-dropdown-toggle { color: var(--ink); font-size: .79rem; font-weight: 750; text-decoration: none; }
.main-nav a:hover, .nav-dropdown-toggle:hover { color: var(--red); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 7px; padding: 12px 0; border: 0; background: transparent;
  font-family: inherit; cursor: pointer;
}
.nav-dropdown-toggle span { color: var(--red); font-size: 1rem; transition: transform .2s; }
.nav-dropdown.is-open .nav-dropdown-toggle span { transform: rotate(180deg); }
.nav-submenu {
  position: absolute; top: calc(100% + 8px); left: -18px; z-index: 2; min-width: 190px;
  display: grid; gap: 2px; padding: 10px; border-top: 3px solid var(--red); background: var(--white);
  box-shadow: 0 18px 45px rgba(12, 29, 67, .16); opacity: 0; visibility: hidden;
  transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-submenu::before {
  content: ""; position: absolute; right: 0; bottom: calc(100% + 3px); left: 0; height: 8px;
}
.nav-submenu a { padding: 10px 12px; white-space: nowrap; }
.nav-dropdown:is(.is-open, :hover, :focus-within) .nav-submenu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.member-button {
  padding: 10px 15px; border: 1px solid var(--navy); border-radius: 100px;
  color: var(--ink); font-size: .75rem; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.member-button:hover { color: var(--white); background: var(--navy); }
.menu-toggle {
  display: none; width: 46px; height: 46px; padding: 8px; border: 0;
  color: var(--navy); background: transparent;
}
.menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; transition: transform .2s; }

/* Accueil — direction A, éditoriale. */
.hero {
  position: relative; min-height: 690px; display: grid; grid-template-columns: .8fr 1.2fr;
  align-items: center; gap: 8vw; padding: 75px 7vw; overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  margin: 0 0 19px; color: var(--red); font-size: .7rem; font-weight: 850;
  letter-spacing: .16em; text-transform: uppercase;
}
h1, h2 { margin: 0; color: var(--navy); font-family: var(--display); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
h1 { font-size: clamp(4rem, 6.3vw, 6.7rem); }
h2 { font-size: clamp(3rem, 4.7vw, 5rem); }
.hero-text { max-width: 500px; margin: 28px 0 0; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 32px; }
.primary-action {
  display: inline-flex; align-items: center; gap: 20px; padding: 15px 21px;
  color: var(--white); background: var(--red); font-size: .79rem; font-weight: 800; text-decoration: none;
}
.primary-action:hover { background: var(--red-dark); }
.secondary-action { padding-bottom: 3px; border-bottom: 1px solid; font-size: .79rem; font-weight: 800; text-decoration: none; }
.hero-photo { position: relative; z-index: 1; margin: 0; }
.hero-photo img { width: 100%; height: 525px; object-fit: cover; box-shadow: 0 24px 65px rgba(12, 29, 67, .16); }
.hero-photo figcaption { margin-top: 12px; color: var(--navy); font-size: .75rem; font-weight: 800; }
.hero-photo figcaption span { color: var(--muted); font-weight: 400; }
.hero-accent { position: absolute; right: -10px; bottom: -45px; color: rgba(12, 29, 67, .045); font: 400 14rem/1 var(--display); }

/* Trace de patin — une seule ligne continue qui se dessine derrière le bandeau. */
/* La photo commence à 46.2vw (7vw de marge + .8fr + 8vw de gouttière) : la trace
   s'arrête juste avant pour rester entièrement visible. */
.hero-trace { position: absolute; inset: 0 54% 0 0; z-index: 0; pointer-events: none; }
.hero-trace svg { width: 100%; height: 100%; }
.hero-trace-groove, .hero-trace-line {
  stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: pad-trace-draw 8.5s cubic-bezier(.42, 0, .2, 1) .5s forwards;
}
.hero-trace-groove { stroke: url(#pad-trace-fade-soft); stroke-width: 7; }
.hero-trace-line { stroke: url(#pad-trace-fade); stroke-width: 1.6; }

@keyframes pad-trace-draw { to { stroke-dashoffset: 0; } }

.club-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; padding: 105px 7vw; background: var(--white); }
.club-text { padding-top: 30px; color: var(--muted); }
.club-text .lead { color: var(--navy); font: 400 1.45rem/1.48 var(--display); }
.club-text a { display: inline-flex; gap: 25px; margin-top: 12px; padding-bottom: 4px; border-bottom: 1px solid; font-size: .82rem; font-weight: 800; text-decoration: none; }
.club-text a span { color: var(--red); }

.information-section { padding: 105px 7vw 115px; color: var(--white); background: var(--navy); }
.information-section h2 { max-width: 700px; color: var(--white); }
.information-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 50px; }
.information-heading > p { max-width: 300px; margin: 0; color: #aeb8c8; font-size: .9rem; }
.information-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.17); border-left: 1px solid rgba(255,255,255,.17); }
.information-grid a {
  position: relative; min-height: 165px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 23px 27px; border-right: 1px solid rgba(255,255,255,.17);
  border-bottom: 1px solid rgba(255,255,255,.17); text-decoration: none;
}
.information-grid a:hover { background: rgba(255,255,255,.06); }
.information-grid span { color: rgba(255,255,255,.45); font: .8rem var(--display); }
.information-grid strong { max-width: 230px; font: 400 1.45rem/1.2 var(--display); }
.information-grid b { position: absolute; right: 25px; bottom: 22px; color: #ff7887; font-weight: 400; }
.information-grid .members-card { background: var(--red); }
.information-grid .members-card b { color: var(--white); }

.join-section { padding: 95px 7vw; background: var(--ice); }
.join-panel {
  display: grid; grid-template-columns: 1fr .72fr; gap: 8vw; align-items: end;
  padding: 65px 70px; background: var(--white); box-shadow: 0 24px 65px rgba(12, 29, 67, .11);
}
.join-copy p { margin: 0 0 28px; color: var(--muted); }

.sponsor-section { padding: 70px 7vw 80px; background: var(--white); }
.sponsor-section > .eyebrow { text-align: center; }
.sponsor-row { max-width: 1120px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 42px 56px; margin: 42px auto 0; }
.sponsor-row img { width: 100%; height: 250px; padding: 0 14px; border: 0; object-fit: contain; background: transparent; }
.sponsor-row .sponsor-logo--bistrot-du-hockey { height: 310px; }
.sponsor-row .sponsor-logo--bati-expo { height: 420px; padding: 0; }

.site-footer { display: flex; align-items: end; justify-content: space-between; gap: 50px; padding: 48px 7vw; color: #abb5c5; background: #07142b; }
.site-footer address, .site-footer p { margin: 0; font-size: .76rem; font-style: normal; }
.site-footer-meta { display: grid; gap: 6px; text-align: right; }
.site-footer-meta a { color: inherit; text-underline-offset: 3px; transition: color .2s; }
.site-footer-meta a:hover, .site-footer-meta a:focus-visible { color: var(--white); }

/* Pages WordPress intérieures. */
.wp-content-page { min-height: 70vh; padding: 105px 0; background: var(--white); }
.content-narrow { max-width: 860px; }
.wp-content-page h1 { margin-bottom: 45px; color: var(--navy); font-size: clamp(3.6rem, 7vw, 6rem); line-height: .98; }
.entry-content { color: #4e5d6c; font-size: 1.05rem; }
.entry-content > * { max-width: 760px; }
.entry-content h2, .entry-content h3 { margin-top: 2em; color: var(--navy); font-family: var(--display); font-weight: 400; }
.entry-content a { color: var(--red); }
.single-image { margin-bottom: 40px; }
.single-image img { width: 100%; max-height: 580px; object-fit: cover; }
.post-password-form { max-width: 520px; padding: 30px; background: var(--ice); }
.post-password-form input[type="password"] { width: 100%; margin: 12px 0; padding: 12px; border: 1px solid var(--line); }
.post-password-form input[type="submit"] { padding: 12px 20px; border: 0; color: var(--white); background: var(--red); font-weight: 800; cursor: pointer; }

/* Comité et résultats. */
.editorial-page-hero { padding: 105px 7vw 90px; background: var(--paper); }
.editorial-page-hero h1 { max-width: 980px; }

.committee-section { display: grid; grid-template-columns: .55fr 1.45fr; gap: 8vw; padding: 0 7vw 115px; background: var(--white); }
.committee-address { padding-top: 44px; border-top: 1px solid var(--line); }
.committee-address address { color: var(--muted); font-size: 1rem; font-style: normal; }
.committee-address strong { color: var(--navy); font: 400 1.5rem/1.35 var(--display); }
.committee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.committee-card { min-height: 235px; padding: 42px 35px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.committee-card:nth-child(even) { border-right: 1px solid var(--line); }
.committee-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.committee-role { min-height: 42px; margin: 0 0 25px; color: var(--red); font-size: .69rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.committee-card h2 { margin-bottom: 22px; font-size: clamp(1.75rem, 2.4vw, 2.45rem); line-height: 1.05; }
.committee-card a { display: block; width: fit-content; color: var(--muted); font-size: .84rem; text-decoration: none; }
.committee-card a + a { margin-top: 4px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.committee-card a:hover { color: var(--red); }

.results-hero { padding-bottom: 65px; }
.results-local-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px; }
.results-local-nav a { padding: 10px 16px; border: 1px solid var(--navy); border-radius: 100px; font-size: .76rem; font-weight: 800; text-decoration: none; }
.results-local-nav a:hover { color: var(--white); background: var(--navy); }
.results-section { padding: 105px 7vw 115px; background: var(--white); scroll-margin-top: 24px; }
.results-section-ice { background: var(--ice); }
.results-heading { max-width: 820px; margin-bottom: 52px; }
.results-heading > p:not(.eyebrow) { margin: 24px 0 0; color: var(--muted); }
.results-table-wrap { overflow-x: auto; border-top: 1px solid var(--navy); }
.results-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.results-table th { padding: 17px 18px; color: var(--muted); font-size: .68rem; letter-spacing: .13em; text-align: left; text-transform: uppercase; }
.results-table td { padding: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; vertical-align: top; }
.results-table td:first-child { width: 135px; color: var(--red); font-weight: 800; }
.results-table td:nth-child(2) { width: 34%; color: var(--navy); font-family: var(--display); font-size: 1.12rem; }
.results-table td:last-child { color: var(--navy); font-weight: 800; }
.star-sessions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.star-session { padding: 38px; background: var(--white); box-shadow: 0 18px 45px rgba(12, 29, 67, .08); }
.star-session h3, .competition-card h3 { margin: 0 0 30px; color: var(--navy); font: 400 1.65rem/1.2 var(--display); }
.star-level + .star-level, .competition-category + .competition-category { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.star-level h4, .competition-category h4 { margin: 0 0 7px; color: var(--red); font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; }
.star-level p, .competition-category p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.75; }
.competition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.competition-card { padding: 42px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.competition-date { margin: 0 0 10px; color: var(--red); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.results-archives { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; padding: 95px 7vw 105px; color: var(--white); background: var(--navy); scroll-margin-top: 24px; }
.results-archives h2 { color: var(--white); }
.season-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.17); border-left: 1px solid rgba(255,255,255,.17); }
.season-grid a { display: flex; justify-content: space-between; gap: 20px; padding: 18px; border-right: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); font-size: .82rem; text-decoration: none; }
.season-grid a:hover { background: rgba(255,255,255,.07); }
.season-grid span { color: #ff7887; }
.season-back-link { display: inline-flex; margin-top: 38px; padding-bottom: 3px; border-bottom: 1px solid; color: var(--navy); font-size: .8rem; font-weight: 800; text-decoration: none; }
.season-content > .results-section, .legacy-results-block { padding: 95px 7vw 105px; background: var(--white); }
.season-content > .results-section:nth-child(even), .legacy-results-block:nth-child(even) { background: var(--ice); }
.legacy-results-content { overflow-x: auto; color: var(--muted); }
.legacy-results-content table { width: 100% !important; border-collapse: collapse; }
.legacy-results-content th, .legacy-results-content td { height: auto !important; padding: 13px 15px; border: 1px solid var(--line); vertical-align: top; }
.legacy-results-content h3, .legacy-results-content h4 { color: var(--navy); font-family: var(--display); font-weight: 400; }
.legacy-results-content a { color: var(--red); }
.result-editor-entry { margin: 0 0 24px; padding: 32px; border: 1px solid var(--line); background: var(--white); }
.result-editor-entry h3 { margin: 0 0 22px; color: var(--navy); font: 400 1.65rem/1.2 var(--display); }
.result-editor-entry h4 { margin: 20px 0 7px; color: var(--red); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }


/* Catalogue de location de costumes. */
.costumes-hero {
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: end;
  gap: 24px 8vw;
}
.costumes-hero > .eyebrow { grid-column: 1 / -1; }
.costumes-hero h1 { max-width: 720px; }
.costumes-intro { max-width: 650px; color: var(--muted); }
.costumes-intro p { margin: 0 0 22px; }
.costumes-intro a {
  display: inline-flex; gap: 24px; padding-bottom: 3px; border-bottom: 1px solid;
  color: var(--navy); font-size: .8rem; font-weight: 800; text-decoration: none;
}
.costumes-intro a span { color: var(--red); }
.costume-catalog { min-height: 55vh; padding: 60px 7vw 115px; background: var(--white); }
.costume-toolbar {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(210px, .8fr) auto;
  gap: 18px; align-items: end; margin-bottom: 42px; padding: 24px;
  border: 1px solid var(--line); background: var(--paper);
}
.costume-field label {
  display: block; margin-bottom: 7px; color: var(--navy); font-size: .68rem;
  font-weight: 850; letter-spacing: .11em; text-transform: uppercase;
}
.costume-field input, .costume-field select {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #bbc4cc;
  border-radius: 0; color: var(--ink); background: var(--white);
}
.costume-count { min-width: 82px; margin: 0 0 12px; color: var(--muted); font-size: .78rem; font-weight: 800; text-align: right; }
.costume-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.costume-card {
  min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line);
  background: var(--white); box-shadow: 0 14px 38px rgba(12, 29, 67, .07);
}
.costume-card[hidden] { display: none; }
.costume-photo {
  aspect-ratio: 4 / 3; display: grid; place-items: center; margin: 0; overflow: hidden;
  border-bottom: 1px solid var(--line); background: #f4f2ee;
}
.costume-photo img { width: 100%; height: 100%; object-fit: contain; }
.costume-photo > span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.costume-card-body { flex: 1; padding: 26px 27px 29px; }
.costume-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.costume-card-meta > span:first-child { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.costume-badge { padding: 5px 9px; border-radius: 100px; font-size: .63rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.costume-badge--unknown { color: #765000; background: #fff0bf; }
.costume-badge--available { color: #1e633f; background: #dff3e8; }
.costume-badge--unavailable { color: #7c2931; background: #f8dfe2; }
.costume-card h2 { margin: 0; color: var(--navy); font-size: clamp(1.65rem, 2.2vw, 2.2rem); line-height: 1.08; }
.costume-price { margin: 17px 0 0; color: var(--red); font-size: .83rem; font-weight: 850; }
.costume-description { margin-top: 21px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.costume-description > :first-child { margin-top: 0; }
.costume-description > :last-child { margin-bottom: 0; }
.costume-description ul { margin: 0; padding-left: 1.15rem; }
.costume-empty { padding: 60px 30px; color: var(--muted); background: var(--ice); text-align: center; }
.costume-empty h2 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.2rem); }
.costume-empty--initial { max-width: 760px; margin: 0 auto; }

/* Espace membres et téléchargements privés. */
.member-space { min-height: 70vh; background: var(--white); }
.member-space-hero { padding: 105px 7vw 85px; background: var(--paper); }
.member-space-hero h1 { max-width: 900px; margin: 0; }
.member-space-hero .container > p:last-child { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 1.05rem; }
.member-login-section { padding: 80px 7vw 110px; background: var(--white); }
.member-login-card { max-width: 720px; padding: clamp(32px, 6vw, 64px); border-top: 4px solid var(--red); background: var(--ice); box-shadow: 0 24px 60px rgba(12, 29, 67, .09); }
.member-login-card h2 { max-width: 570px; margin: 12px 0 25px; font-size: clamp(2.6rem, 5vw, 4.5rem); }
.member-login-card > p:not(.section-kicker) { max-width: 590px; color: var(--muted); }
.member-login-error { padding: 13px 15px; border-left: 4px solid var(--red); color: #7c2931 !important; background: #fff; font-weight: 700; }
.member-login-form { margin-top: 34px; }
.member-login-form > label { display: block; margin-bottom: 8px; color: var(--navy); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.member-login-form > div { display: flex; max-width: 610px; }
.member-login-form input { flex: 1; min-width: 0; min-height: 52px; padding: 12px 14px; border: 1px solid #aebac3; border-radius: 0; background: var(--white); }
.member-login-form button, .member-download-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--red); color: var(--white); background: var(--red); font-size: .73rem; font-weight: 850; text-decoration: none; cursor: pointer; }
.member-login-form button:hover, .member-download-button:hover { color: var(--red); background: transparent; }
.member-login-help { margin: 18px 0 0; font-size: .78rem; }
.member-access-bar { color: var(--white); background: var(--navy); }
.member-access-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.member-access-bar p { margin: 0; font-size: .78rem; font-weight: 800; }
.member-access-bar p span { margin-right: 7px; color: #78d5c0; }
.member-access-bar a { color: var(--white); font-size: .72rem; font-weight: 800; text-underline-offset: 4px; }
.member-content-section { padding: 100px 7vw 110px; background: var(--white); }
.member-albums-section { background: var(--ice); }
.member-section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 50px; align-items: end; margin-bottom: 58px; }
.member-section-heading h2 { margin: 0; }
.member-section-heading > p { margin: 0 0 8px; color: var(--muted); line-height: 1.8; }
.member-document-group + .member-document-group { margin-top: 58px; }
.member-document-group > h3 { margin: 0 0 18px; color: var(--navy); font: 400 1.7rem/1.2 var(--display); }
.member-download-list { border-top: 1px solid var(--navy); }
.member-download-card { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.member-file-type { display: grid; place-items: center; width: 54px; height: 54px; color: var(--red); background: #fff0f2; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.member-item-date { margin: 0 0 5px; color: var(--red); font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.member-download-card h4 { margin: 0; color: var(--navy); font: 400 1.35rem/1.25 var(--display); }
.member-download-card > div > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: .75rem; }
.member-download-button { min-width: 128px; }
.member-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.member-album-card { display: flex; min-width: 0; flex-direction: column; padding: 34px; border-top: 3px solid var(--red); background: var(--white); box-shadow: 0 18px 45px rgba(12, 29, 67, .08); }
.member-album-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 30px; color: var(--white); background: var(--navy); font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.member-album-card h3 { margin: 2px 0 16px; color: var(--navy); font: 400 1.75rem/1.15 var(--display); }
.member-album-card > p:not(.member-item-date, .member-album-size) { margin: 0 0 22px; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.member-album-size { margin: auto 0 18px; padding-top: 20px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.member-album-card .member-download-button { align-self: flex-start; }
.member-empty-state { padding: 42px; border: 1px solid var(--line); background: var(--paper); }
.member-empty-state h3 { margin: 0 0 12px; color: var(--navy); font: 400 1.8rem/1.2 var(--display); }
.member-empty-state p { margin: 0; color: var(--muted); }
.member-privacy-note { padding: 30px 7vw; color: #c7d0de; background: #0d1c37; }
.member-privacy-note .container { display: flex; align-items: baseline; gap: 18px; }
.member-privacy-note strong { color: var(--white); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.member-privacy-note p { margin: 0; font-size: .78rem; }

/* Photothèque publique. */
.gallery-page { min-height: 70vh; background: var(--white); }
.gallery-hero {
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: end;
  gap: 24px 8vw;
}
.gallery-intro { max-width: 650px; color: var(--muted); font-size: 1.02rem; }
.gallery-intro > :first-child { margin-top: 0; }
.gallery-intro > :last-child { margin-bottom: 0; }
.gallery-section { padding: 75px 7vw 120px; background: var(--white); }
.gallery-heading-row {
  display: flex; align-items: end; justify-content: space-between; gap: 45px;
  margin-bottom: 52px;
}
.gallery-heading-row h2 { font-size: clamp(2.8rem, 4.2vw, 4.6rem); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.gallery-filters button {
  min-height: 40px; padding: 8px 15px; border: 1px solid var(--navy);
  border-radius: 100px; color: var(--navy); background: transparent;
  font-size: .7rem; font-weight: 850; cursor: pointer;
}
.gallery-filters button:hover, .gallery-filters button.is-active {
  color: var(--white); background: var(--navy);
}
.photo-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense; gap: 34px 24px;
}
.photo-card { min-width: 0; grid-column: span 4; }
.photo-card--wide { grid-column: span 8; }
.photo-card[hidden] { display: none; }
.photo-open {
  position: relative; width: 100%; aspect-ratio: 4 / 3; display: block; padding: 0; overflow: hidden;
  border: 0; color: var(--white); background: #dce7ea; cursor: zoom-in;
}
.photo-open img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .65, .3, 1);
}
.photo-card--wide .photo-open { aspect-ratio: 2 / 1; }
.photo-open:hover img { transform: scale(1.025); }
.photo-zoom {
  position: absolute; right: 16px; bottom: 16px; width: 43px; height: 43px;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%; background: rgba(12,29,67,.72); font: 300 1.55rem/1 var(--sans);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.photo-open:hover .photo-zoom, .photo-open:focus-visible .photo-zoom { opacity: 1; transform: translateY(0); }
.photo-caption { padding-top: 16px; }
.photo-caption h3 { margin: 0; color: var(--navy); font: 400 1.32rem/1.18 var(--display); }
.photo-caption > p:not([hidden]) {
  margin: 7px 0 0; color: var(--muted); font-size: .67rem;
  font-weight: 750; letter-spacing: .035em;
}
.gallery-filter-empty, .gallery-empty {
  padding: 65px 30px; color: var(--muted); background: var(--ice); text-align: center;
}
.gallery-filter-empty { margin: 0; font-weight: 750; }
.gallery-empty > span { display: block; margin-bottom: 12px; color: var(--red); font-size: 2rem; }
.gallery-empty h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.gallery-empty p { margin: 22px auto 0; }
.photo-lightbox {
  width: min(1180px, calc(100% - 48px)); max-width: none; max-height: calc(100vh - 48px);
  padding: 0; border: 0; color: var(--ink); background: var(--white);
  box-shadow: 0 30px 90px rgba(3, 11, 28, .35);
}
.photo-lightbox::backdrop { background: rgba(3, 11, 28, .82); backdrop-filter: blur(4px); }
.photo-lightbox-layout { min-height: min(720px, calc(100vh - 48px)); display: grid; grid-template-columns: 1.55fr .7fr; }
.photo-lightbox figure { min-height: 0; display: grid; place-items: center; margin: 0; overflow: hidden; background: #07142b; }
.photo-lightbox figure img { width: 100%; height: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
.photo-lightbox-copy { display: flex; flex-direction: column; justify-content: center; padding: 55px 42px; }
.photo-lightbox-copy h2 { font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1; }
.photo-lightbox-meta { margin: 25px 0 0; color: var(--red); font-size: .69rem; font-weight: 850; letter-spacing: .08em; }
.photo-lightbox-description { margin: 24px 0 0; color: var(--muted); font-size: .9rem; }
.photo-lightbox-description:empty, .photo-lightbox-meta:empty { display: none; }
.photo-lightbox-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; color: var(--white); background: var(--navy);
  font-size: 1.55rem; line-height: 1; cursor: pointer;
}

:focus-visible { outline: 3px solid #60b8ca; outline-offset: 4px; }

@media (max-width: 1040px) {
  .member-button { margin-left: auto; }
  .menu-toggle { position: relative; z-index: 4; display: block; cursor: pointer; }
  .menu-toggle[aria-expanded="true"] > span:nth-last-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 18px; margin: 0; padding: 90px 8vw; background: var(--white);
    transform: translateX(100%); transition: transform .25s;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > a, .nav-dropdown-toggle { font-family: var(--display); font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 400; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { gap: 12px; padding: 0; }
  .nav-submenu {
    position: static; min-width: 0; max-height: 0; gap: 0; padding: 0 0 0 18px; border: 0;
    box-shadow: none; opacity: 1; visibility: visible; transform: none; overflow: hidden; pointer-events: none;
    transition: max-height .25s, margin-top .25s;
  }
  .nav-submenu::before { content: none; }
  .nav-submenu a { padding: 6px 0; font-family: var(--body); font-size: 1rem; font-weight: 700; }
  .nav-dropdown.is-open .nav-submenu { max-height: 180px; margin-top: 8px; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .hero { grid-template-columns: 1fr; gap: 50px; }
  /* Photo passée sous le texte : la trace reprend toute la largeur, mais reste
     calée sur le haut du bandeau plutôt que centrée dans sa hauteur totale. */
  .hero-trace { inset: 0 0 auto 0; height: 72%; }
  .hero-copy { max-width: 760px; }
  .hero-photo img { height: min(72vw, 620px); }
  .club-section { grid-template-columns: 1fr; gap: 30px; }
  .club-text { max-width: 740px; padding-top: 0; }
  .information-heading { display: block; }
  .information-heading > p { margin-top: 25px; }
  .information-grid { grid-template-columns: repeat(2, 1fr); }
  .join-panel { grid-template-columns: 1fr; gap: 35px; }
  .committee-section, .results-archives { grid-template-columns: 1fr; gap: 55px; }
  .costumes-hero { grid-template-columns: 1fr; }
  .costume-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-section-heading { grid-template-columns: 1fr; gap: 22px; }
  .member-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-hero { grid-template-columns: 1fr; }
  .gallery-heading-row { align-items: flex-start; flex-direction: column; gap: 28px; }
  .gallery-filters { justify-content: flex-start; }
  .photo-card { grid-column: span 6; }
  .photo-card--wide { grid-column: span 12; }
  .photo-lightbox-layout { grid-template-columns: 1fr; }
  .photo-lightbox figure { min-height: min(62vh, 620px); }
  .photo-lightbox figure img { max-height: 62vh; }
  .photo-lightbox-copy { padding: 38px; }
  .committee-address { max-width: 520px; }
  .star-sessions { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 48px), 1240px); }
  .site-header { min-height: 88px; padding-inline: 18px; }
  .original-logo { width: 72px; height: 72px; }
  .member-button { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero { padding: 70px 24px; }
  .hero-trace { opacity: .75; }
  h1 { font-size: clamp(3.4rem, 15vw, 4.8rem); }
  h2 { font-size: 3.1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-photo img { height: 105vw; max-height: 520px; }
  .hero-photo figcaption span { display: block; }
  .club-section, .information-section, .join-section, .sponsor-section { padding: 75px 24px; }
  .join-panel { padding: 42px 25px; }
  .information-grid { grid-template-columns: 1fr; }
  .information-grid a { min-height: 135px; }
  .sponsor-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .sponsor-row img { height: 160px; padding: 4px; }
  .sponsor-row .sponsor-logo--bistrot-du-hockey { height: 210px; }
  .sponsor-row .sponsor-logo--bati-expo { height: 250px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 15px; padding: 45px 24px; }
  .site-footer-meta { text-align: left; }
  .wp-content-page { padding: 75px 0; }
  .editorial-page-hero { padding: 75px 24px 65px; }
  .results-hero h1 { overflow-wrap: anywhere; font-size: clamp(3rem, 13vw, 4rem); }
  .committee-section, .results-section, .results-archives { padding: 75px 24px; }
  .costume-catalog { padding: 45px 24px 75px; }
  .costume-toolbar { grid-template-columns: 1fr; padding: 20px; }
  .costume-count { margin: 0; text-align: left; }
  .costume-grid { grid-template-columns: 1fr; }
  .costume-card-body { padding: 24px; }
  .gallery-section { padding: 55px 24px 80px; }
  .gallery-heading-row { margin-bottom: 36px; }
  .gallery-filters { flex-wrap: nowrap; width: calc(100vw - 24px); padding: 4px 24px 6px 0; overflow-x: auto; }
  .gallery-filters button { flex: 0 0 auto; }
  .photo-grid { display: block; }
  .photo-card + .photo-card { margin-top: 32px; }
  .photo-card--wide .photo-open { aspect-ratio: 4 / 3; }
  .photo-zoom { opacity: 1; transform: none; }
  .photo-lightbox { width: calc(100% - 24px); max-height: calc(100vh - 24px); }
  .photo-lightbox-layout { min-height: calc(100vh - 24px); }
  .photo-lightbox figure { min-height: 48vh; }
  .photo-lightbox figure img { max-height: 52vh; }
  .photo-lightbox-copy { padding: 32px 24px; }
  .photo-lightbox-close { top: 10px; right: 10px; }
  .member-space-hero, .member-content-section { padding: 75px 24px; }
  .member-login-section { padding: 55px 24px 80px; }
  .member-login-card { padding: 32px 24px; }
  .member-login-form > div { align-items: stretch; flex-direction: column; gap: 10px; }
  .member-access-bar .container { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 16px; }
  .member-download-card { grid-template-columns: 54px minmax(0, 1fr); }
  .member-download-card .member-download-button { grid-column: 1 / -1; width: 100%; }
  .member-album-grid { grid-template-columns: 1fr; }
  .member-album-card { padding: 28px; }
  .member-privacy-note { padding: 28px 24px; }
  .member-privacy-note .container { align-items: flex-start; flex-direction: column; gap: 8px; }
  .committee-grid, .competition-grid { grid-template-columns: 1fr; }
  .committee-card { min-height: 0; padding: 35px 28px; border-right: 1px solid var(--line); }
  .committee-card:nth-last-child(-n+2) { border-bottom: 0; }
  .committee-card:last-child { border-bottom: 1px solid var(--line); }
  .committee-role { min-height: 0; }
  .competition-card { padding: 34px 28px; }
  .season-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-content > .results-section, .legacy-results-block { padding: 75px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-trace-groove, .hero-trace-line { animation: none; stroke-dashoffset: 0; }
}
