/* CCWEST, feuille de style du site public */
:root {
  --bleu: #0971ae;
  --bleu-fonce: #06507c;
  --nuit: #0e1d29;
  --nuit-2: #16293a;
  --sable: #f6efe4;
  --sable-2: #eadfcc;
  --or: #e0a83e;
  --or-fonce: #b9821f;
  --cuir: #8b4a22;
  --texte: #1e2a33;
  --muted: #5f6c76;
  --blanc: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 29, 41, .12);
  --wrap: 1180px;
  --display: "Rye", Georgia, serif;
  --serif: "Bitter", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; font: 16px/1.65 var(--sans); color: var(--texte); background: var(--blanc); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--nuit); }
p { margin: 0 0 1em; }
address { font-style: normal; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--or); color: var(--nuit); padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.is-hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; font: 600 .95rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--or); color: var(--nuit); }
.btn-gold:hover { background: #ebb553; color: var(--nuit); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--nuit); }
.btn-outline { border-color: var(--bleu); color: var(--bleu); background: transparent; }
.btn-outline:hover { background: var(--bleu); color: #fff; }
.btn-small { padding: .55em 1.1em; font-size: .88rem; background: var(--bleu); color: #fff; }
.btn-small:hover { background: var(--bleu-fonce); color: #fff; }
.btn-block { width: 100%; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 29, 41, .96); backdrop-filter: blur(8px); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.brand img { width: 46px; height: auto; filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: .04em; }
.brand-text small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.brand:hover { color: var(--or); }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: .4em; padding: .6em .8em; color: rgba(255,255,255,.88); text-decoration: none; font: 500 .94rem var(--sans); background: none; border: 0; cursor: pointer; border-radius: 8px; }
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--or); }
.sub { position: absolute; top: 100%; left: 0; min-width: 340px; list-style: none; margin: 0; padding: .5rem; background: #fff; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.sub a { display: block; padding: .55em .8em; color: var(--texte); text-decoration: none; border-radius: 8px; font-size: .93rem; }
.sub a:hover { background: var(--sable); color: var(--bleu); }
.has-sub:hover .sub, .has-sub.is-open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-cta { padding: .6em 1.2em; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .2s; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--nuit); }
  .nav { position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); z-index: 60; background: var(--nuit); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 2rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: .85em .5em; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; display: none; padding: 0 0 .5rem .75rem; }
  .has-sub.is-open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.is-open:hover .sub { display: block; }
  .sub a { color: rgba(255,255,255,.85); }
  .sub a:hover { background: rgba(255,255,255,.06); color: var(--or); }
  .nav-cta { margin-top: 1rem; }
  body.nav-opened { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem); }
.section-sand { background: var(--sable); }
.section-dark { background: var(--nuit); color: #e9eef2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head .h2 { margin: 0; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cuir); margin: 0 0 .8rem; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--or); }
.h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more::after { content: " →"; }
.section-dark .link-more { color: var(--or); }

/* Accueil : bandeau principal */
.hero { position: relative; color: #fff; background: var(--nuit) var(--hero, none) center/cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,29,41,.92) 0%, rgba(14,29,41,.72) 45%, rgba(9,113,174,.35) 100%); z-index: -1; }
.hero-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(3.5rem, 9vw, 7rem) 0; }
.hero-logo { width: clamp(140px, 20vw, 240px); }
.hero h1 { font-family: var(--display); font-weight: 400; color: #fff; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.05; margin-bottom: .3em; letter-spacing: .01em; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: .9; }
.hero-badge { display: inline-block; background: rgba(224,168,62,.16); border: 1px solid rgba(224,168,62,.55); color: #ffd98e; padding: .55em 1em; border-radius: 999px; font-weight: 600; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-actions { justify-content: center; }
}

.ribbon { background: var(--or); color: var(--nuit); }
.ribbon-inner { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 0; }
.ribbon-tag { flex: none; background: var(--nuit); color: var(--or); font: 600 .75rem var(--sans); text-transform: uppercase; letter-spacing: .14em; padding: .45em .9em; border-radius: 999px; }
.ribbon-text p { margin: 0; font-weight: 600; }
.ribbon-text strong { font-weight: 700; }
@media (max-width: 640px) { .ribbon-inner { flex-direction: column; text-align: center; gap: .6rem; } }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media img { width: 100%; max-height: 560px; object-fit: cover; }
.framed { margin: 0; position: relative; }
.framed img { border-radius: var(--radius); box-shadow: var(--shadow); }
.framed::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--or); border-radius: var(--radius); z-index: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.prose > :last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; }
.prose-lead { font-size: 1.08rem; }
.prose-lead p:first-child::first-letter { font-family: var(--display); float: left; font-size: 3.4em; line-height: .9; padding: .05em .12em 0 0; color: var(--bleu); }
.small { font-size: .92rem; }

/* Planning */
.planning { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.planning-day { background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 2px 0 var(--sable-2); }
.planning-day h3 { font-family: var(--display); font-weight: 400; color: var(--bleu); font-size: 1.5rem; margin-bottom: .8rem; }
.slot { display: grid; gap: .1rem; padding: .9rem 1rem; border-radius: 10px; text-decoration: none; color: var(--texte); border-left: 4px solid var(--or); background: var(--sable); margin-top: .6rem; transition: .15s; }
.slot:hover { background: var(--nuit); color: #fff; }
.slot-time { font-weight: 700; font-size: .92rem; color: var(--cuir); }
.slot:hover .slot-time { color: var(--or); }
.slot-name { font: 700 1.1rem var(--serif); }
.slot-more { font-size: .85rem; color: var(--muted); }
.slot:hover .slot-more { color: rgba(255,255,255,.75); }
.planning-place { margin-top: 1.2rem; color: var(--muted); }
.section:not(.section-sand) .planning-day { background: var(--sable); }
.section:not(.section-sand) .slot { background: #fff; }

.announce { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 2.5rem; align-items: center; background: var(--sable); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.announce img { border-radius: 10px; width: 100%; max-height: 420px; object-fit: cover; }
@media (max-width: 720px) { .announce { grid-template-columns: 1fr; } }

/* Cartes */
.cards { display: grid; gap: 1.5rem; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--nuit-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-body h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.card-date { color: var(--or); font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.card-text p { margin: 0; color: #c4ced6; }

/* Albums */
.albums-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.album-card { display: flex; flex-direction: column; text-decoration: none; color: var(--texte); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(14,29,41,.08); transition: transform .2s, box-shadow .2s; }
.album-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,29,41,.16); color: var(--texte); }
.album-cover { position: relative; aspect-ratio: 4 / 3; background: var(--sable-2); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.album-count { position: absolute; right: .7rem; bottom: .7rem; background: rgba(14,29,41,.82); color: #fff; font-size: .78rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; }
.album-meta { padding: 1rem 1.1rem 1.2rem; }
.album-date { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--cuir); }
.album-meta h3 { font-size: 1.05rem; margin: .35rem 0 0; line-height: 1.35; }

/* En-tête des pages intérieures */
.page-hero { position: relative; color: #fff; background: var(--nuit) var(--hero, none) center/cover; isolation: isolate; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3.5rem); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,29,41,.94), rgba(14,29,41,.78)); z-index: -1; }
.page-hero h1 { color: #fff; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 3.2rem); margin: 0; max-width: 22ch; line-height: 1.12; }
.page-intro { margin: 1rem 0 0; max-width: 62ch; color: #d4dde3; font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; margin-bottom: 1.2rem; color: rgba(255,255,255,.6); }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: var(--or); }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.filters-row { justify-content: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .45em 1em; border-radius: 999px; background: var(--sable); color: var(--texte); text-decoration: none; font-size: .88rem; font-weight: 600; border: 1px solid var(--sable-2); }
.chip:hover { border-color: var(--bleu); color: var(--bleu); }
.chip.is-active { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.search { display: flex; gap: .5rem; flex: 1 1 280px; max-width: 460px; }
input[type=search], input[type=text], input[type=email], select, textarea { font: inherit; padding: .65em .9em; border: 1px solid #cfd6dc; border-radius: 10px; background: #fff; width: 100%; color: var(--texte); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(9,113,174,.15); }
select { width: auto; }
.result-count { color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; }
.empty { padding: 2.5rem; text-align: center; background: var(--sable); border-radius: var(--radius); color: var(--muted); }

/* Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager-pages { display: flex; gap: .35rem; }
.pager a, .pager span { min-width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .9rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.pager a { background: var(--sable); color: var(--texte); }
.pager a:hover { background: var(--bleu); color: #fff; }
.pager .is-current { background: var(--nuit); color: #fff; }
.pager .is-disabled { color: #b3bcc3; }
.pager-gap { min-width: 1rem !important; padding: 0 !important; }
@media (max-width: 560px) { .pager-pages .pager-num:not(.is-current) { display: none; } .pager-gap { display: none !important; } }

/* Grille de photos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.photo-grid-small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem; margin-top: 1.2rem; }
.photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--sable-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .2s; }
.photo:hover img { transform: scale(1.06); }
@media (max-width: 520px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: .3rem; } .photo { border-radius: 6px; } }
.album-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--sable-2); }
.album-nav-link { text-decoration: none; color: var(--texte); font-weight: 600; font-family: var(--serif); line-height: 1.3; }
.album-nav-link small { display: block; font: 600 .75rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--cuir); margin-bottom: .2rem; }
.album-nav-link.is-next { text-align: right; }
.album-nav-link:hover { color: var(--bleu); }
@media (max-width: 720px) { .album-nav { grid-template-columns: 1fr 1fr; } .album-nav .btn { grid-column: 1 / -1; grid-row: 2; } }

/* Visionneuse */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 15, 22, .96); display: none; touch-action: pan-y; }
.lb.is-open { display: block; }
.lb-stage { position: absolute; inset: 56px 0 64px; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: calc(100vw - 2rem); max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; transition: opacity .2s; }
.lb-img.is-loading { opacity: .3; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; color: #fff; font-size: .9rem; }
.lb-btn { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 1.4rem; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-foot { position: absolute; bottom: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; justify-content: center; gap: 1rem; color: #cfd8df; font-size: .9rem; padding: 0 1rem; text-align: center; }
.lb-foot a { color: var(--or); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } .lb-stage { inset: 56px 0 72px; } }

/* Cours */
.cours-layout { display: grid; grid-template-columns: 290px 1fr; gap: 2.5rem; align-items: start; }
.cours-aside { position: sticky; top: 96px; display: grid; gap: 1.2rem; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.badges li { background: var(--sable); border-radius: 10px; padding: .6em .9em; font-weight: 600; font-size: .92rem; border-left: 4px solid var(--or); }
.aside-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-family: var(--sans); color: var(--muted); margin: .5rem 0 0; }
.season-list { display: grid; gap: .3rem; max-height: 52vh; overflow-y: auto; padding-right: .2rem; }
.season { display: flex; justify-content: space-between; align-items: center; padding: .6em .9em; border-radius: 10px; text-decoration: none; color: var(--texte); font-weight: 600; }
.season small { color: var(--muted); font-weight: 500; }
.season:hover { background: var(--sable); }
.season.is-active { background: var(--nuit); color: #fff; }
.season.is-active small { color: var(--or); }
.season-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.season-head .h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); max-width: 30ch; }
.season-tools input { min-width: 260px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 176px; top: 0; bottom: 0; width: 2px; background: var(--sable-2); }
.timeline-item { display: grid; grid-template-columns: 176px 1fr; gap: 1.6rem; padding: .75rem 0; position: relative; }
.timeline-item:not(.timeline-note)::after { content: ""; position: absolute; left: 171px; top: 1.15rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--bleu); }
.timeline-date { white-space: nowrap; font-weight: 700; font-size: .92rem; color: var(--bleu-fonce); padding-top: .1rem; text-align: right; padding-right: .6rem; }
.timeline-body { line-height: 1.75; }
.timeline-item.is-last .timeline-body { background: #fff8e9; border-radius: 10px; padding: .4rem .8rem; margin: -.4rem 0; box-shadow: inset 3px 0 0 var(--or); }
.timeline-item.is-last::after { background: var(--or); border-color: var(--or); }
.timeline-item.is-future { opacity: .6; }
.timeline-note { display: block; margin: .8rem 0 .8rem 196px; padding: .5rem 1rem; background: var(--sable); border-radius: 8px; font: 700 .82rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cuir); position: relative; z-index: 1; }
.tag { display: inline-block; margin-left: .5rem; background: var(--or); color: var(--nuit); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .15em .6em; border-radius: 999px; }
.pill { display: inline-flex; align-items: center; gap: .3em; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .18em .6em; border-radius: 999px; text-decoration: none; vertical-align: 2px; margin: 0 0 0 .2em; }
.pill::before { content: ""; width: 0; height: 0; }
.pill-video { background: #fde7e7; color: #b42318; }
.pill-video::before { border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.pill-video:hover { background: #b42318; color: #fff; }
.pill-fiche { background: #e6f1f8; color: var(--bleu-fonce); }
.pill-fiche:hover { background: var(--bleu); color: #fff; }
.pill-lien { background: var(--sable); color: var(--cuir); }
@media (max-width: 900px) {
  .cours-layout { grid-template-columns: 1fr; }
  .cours-aside { position: static; }
  .season-list { display: flex; overflow-x: auto; max-height: none; padding-bottom: .4rem; }
  .season { flex: none; flex-direction: column; background: var(--sable); }
  .season-tools, .season-tools input { width: 100%; min-width: 0; }
  .timeline::before { left: 6px; }
  .timeline-item { grid-template-columns: 1fr; gap: .2rem; padding-left: 1.6rem; }
  .timeline-item:not(.timeline-note)::after { left: 1px; top: 1.05rem; }
  .timeline-date { text-align: left; padding: 0; }
  .timeline-note { margin-left: 1.6rem; }
}

/* Répertoire */
.letters { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1.5rem; }
.letters a { min-width: 2.2rem; height: 2.2rem; display: grid; place-items: center; padding: 0 .5rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .88rem; color: var(--texte); background: var(--sable); }
.letters a:hover { background: var(--sable-2); }
.letters a.is-active { background: var(--bleu); color: #fff; }
.dance-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.dance { background: #fff; border: 1px solid var(--sable-2); border-radius: 12px; padding: 1rem 1.1rem; }
.dance-name { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.dance-name strong { font-family: var(--serif); font-size: 1.08rem; color: var(--nuit); }
.dance-occ { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .86rem; color: var(--muted); }
.dance-occ a { font-weight: 600; text-decoration: none; }

/* Le club */
.bureau { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.bureau-photo img { width: 100%; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.person { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 12px; padding: .9rem 1.1rem; }
.person strong { display: block; font-family: var(--serif); font-size: 1.08rem; }
.person span { color: var(--muted); font-size: .92rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials { display: grid; place-items: center; background: var(--bleu); color: #fff; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 860px) { .bureau { grid-template-columns: 1fr; } }

.coaches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.coach { background: var(--sable); border-radius: var(--radius); overflow: hidden; }
.coach-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.coach-body { padding: 1.5rem; }
.coach-body h2 { font-family: var(--display); font-weight: 400; color: var(--bleu); font-size: 1.7rem; margin: 0; }
.coach-title { display: inline-block; margin: .4rem 0 1rem; background: var(--nuit); color: var(--or); font-weight: 700; font-size: .82rem; padding: .3em .8em; border-radius: 999px; letter-spacing: .04em; }
.coach-cours { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.coach-cours a { display: inline-block; background: #fff; padding: .4em .9em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; }

/* Concours */
.contests { display: grid; gap: 1.5rem; }
.contest { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; background: #fff; border: 1px solid var(--sable-2); border-radius: var(--radius); padding: 1.5rem; }
.contest-year { font-family: var(--display); color: var(--bleu); font-size: 2rem; line-height: 1; }
.contest-body h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.contest-meta { color: var(--cuir); font-weight: 600; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
@media (max-width: 640px) { .contest { grid-template-columns: 1fr; gap: .4rem; } }

/* Horaires et contact */
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-cols { grid-template-columns: 1fr; } }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; background: #fff; border-radius: 12px; overflow: hidden; }
.price-table th, .price-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--sable-2); text-align: left; }
.price-table th { font-weight: 500; }
.price-table td { text-align: right; font: 700 1.1rem var(--serif); color: var(--bleu-fonce); white-space: nowrap; }
.price-table tr:last-child > * { border-bottom: 0; }
.callout { background: var(--or); color: var(--nuit); font-weight: 700; padding: .9rem 1.1rem; border-radius: 10px; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.map-wide { margin-top: 2.5rem; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
.contact-card { background: var(--nuit); color: #dfe7ed; border-radius: var(--radius); padding: 1.8rem; }
.contact-card h2 { color: #fff; font-size: 1.3rem; }
.contact-card a:not(.btn) { color: var(--or); }
.contact-card .btn-outline { border-color: var(--or); color: var(--or); }
.contact-card .btn-outline:hover { background: var(--or); color: var(--nuit); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
.field-error { color: #b42318; font-size: .85rem; }
.has-error input, .has-error textarea { border-color: #b42318; }
.hp { position: absolute; left: -9999px; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin: 0; font-weight: 600; }
.alert-ok { background: #e7f6ec; color: #17633a; }
.alert-error { background: #fde7e7; color: #8a1c13; }

/* Bandeau d'appel */
.cta-band { background: var(--bleu) linear-gradient(110deg, var(--bleu-fonce), var(--bleu)); color: #fff; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .3rem; }
.cta-inner p { margin: 0; opacity: .9; }

/* Pied de page */
.site-footer { background: var(--nuit); color: #b9c5ce; padding: 3.5rem 0 1.5rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand img { width: 110px; margin-bottom: 1rem; }
.footer-title { color: #fff; font: 600 .82rem var(--sans); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.site-footer a { color: #dfe7ed; text-decoration: none; }
.site-footer a:hover { color: var(--or); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--or); color: var(--nuit); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Niveaux des cours */
.lvl { --c: #2f8f5b; --bg: #e4f4ea; display: inline-flex; align-items: center; gap: .45em; padding: .3em .75em .3em .6em; border-radius: 999px; background: var(--bg); color: var(--c); font: 700 .8rem/1.1 var(--sans); letter-spacing: .02em; white-space: nowrap; vertical-align: middle; }
.lvl-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.lvl-bars i { width: 4px; border-radius: 2px; background: currentColor; opacity: .22; }
.lvl-bars i:nth-child(1) { height: 5px; }
.lvl-bars i:nth-child(2) { height: 8px; }
.lvl-bars i:nth-child(3) { height: 12px; }
.lvl-bars i.on { opacity: 1; }
.lvl-1 .lvl, .lvl.lvl-1 { --c: #2f8f5b; --bg: #e4f4ea; }
.lvl.lvl-2 { --c: #b9821f; --bg: #fdf1d8; }
.lvl.lvl-3 { --c: #c0392b; --bg: #fde7e4; }
.lvl.lvl-0 { --c: var(--bleu); --bg: #e3f0f8; }
.lvl-sm { font-size: .7rem; padding: .22em .6em .22em .5em; }
.page-hero .lvl { font-size: .9rem; padding: .45em 1em .45em .8em; }
.hero-public { display: block; margin-top: .8rem; }

/* Menu : niveaux et archives */
.sub a { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.sub-strong a { font-weight: 700; color: var(--bleu); }
.sub-group { margin: .5rem .8rem .2rem; padding-top: .55rem; border-top: 1px solid var(--sable-2); font: 600 .68rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sub-muted a { font-size: .82rem; color: var(--muted); padding-top: .35em; padding-bottom: .35em; }
@media (max-width: 1060px) {
  .sub-group { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.45); }
  .sub-muted a { color: rgba(255,255,255,.55); }
  .sub-strong a { color: var(--or); }
}
.footer-muted a { color: #8796a2 !important; font-size: .85rem; }

/* Page « Nos cours de danse » */
.level-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 2rem; color: var(--muted); font-size: .92rem; }
.level-arrow { color: var(--sable-2); font-size: 1.4rem; line-height: 1; }
.level-sep { margin: 0 .2rem; }
.course-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.course-card { position: relative; display: flex; flex-direction: column; gap: .8rem; background: #fff; border: 1px solid var(--sable-2); border-top: 6px solid #2f8f5b; border-radius: var(--radius); padding: 1.5rem 1.4rem 1.4rem; box-shadow: 0 8px 24px rgba(14,29,41,.06); }
.course-card.lvl-2 { border-top-color: #e0a83e; }
.course-card.lvl-3 { border-top-color: #c0392b; }
.course-card.lvl-0 { border-top-color: var(--bleu); }
.course-card.is-start { box-shadow: 0 0 0 3px rgba(47,143,91,.25), 0 14px 34px rgba(14,29,41,.12); }
.course-ribbon { position: absolute; top: -14px; right: 1.2rem; margin: 0; background: #2f8f5b; color: #fff; font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .1em; padding: .35em .8em; border-radius: 999px; }
.course-top { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.course-when { font-weight: 700; font-size: .85rem; color: var(--cuir); }
.course-card h2 { font-size: 1.35rem; margin: 0; }
.course-card h2 a { color: var(--nuit); text-decoration: none; }
.course-card h2 a:hover { color: var(--bleu); }
.course-public { margin: 0; }
.course-facts { list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--muted); display: grid; gap: .2rem; }
.course-recent { margin: 0; font-size: .88rem; background: var(--sable); border-radius: 8px; padding: .55rem .75rem; }
.course-recent span { font-weight: 700; color: var(--cuir); }
.course-cta { margin-top: auto; align-self: flex-start; }
.course-help { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 2.5rem; background: var(--sable); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.course-help p { margin: 0; max-width: 60ch; }
.course-help div { display: flex; gap: .6rem; flex-wrap: wrap; }
.archives { margin-top: 3rem; border-top: 1px solid var(--sable-2); padding-top: 1rem; color: var(--muted); font-size: .92rem; }
.archives summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.archives summary:hover { color: var(--bleu); }
.archives ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .35rem; }
.archives a { color: var(--muted); }

/* Créneaux et pages de cours */
.slot-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.aside-stat { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 600; }
.page-hero.is-muted::before { background: linear-gradient(90deg, rgba(60,66,72,.95), rgba(60,66,72,.85)); }
.page-hero.is-muted .eyebrow { color: #c9d1d7; }
.archive-note { background: var(--sable); border-left: 4px solid var(--muted); border-radius: 8px; padding: .8rem 1rem; margin: 0 0 1.5rem; }

/* Légendes sous les vignettes (albums de photos retrouvées) */
.photo { position: relative; }
.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .55rem .45rem; background: linear-gradient(transparent, rgba(14,29,41,.85)); color: #fff; font-size: .72rem; line-height: 1.3; }
@media (max-width: 520px) { .photo-caption { font-size: .62rem; padding: 1rem .35rem .3rem; } }
