/* ================= Rougemont Triathlon ================= */
:root {
  --navy: #17306f;
  --navy-dark: #0f2150;
  --red: #d9141e;
  --blue: #2a73c9;
  --yellow: #f6c90e;
  --ink: #1d2433;
  --muted: #5d6576;
  --line: #e3e6ec;
  --bg-soft: #f4f6f9;
  --white: #fff;
  --radius: 6px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html { scroll-padding-top: 90px; }
body { font-family: var(--body); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
ul { list-style: none; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.1; color: var(--navy); }
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h3 { font-size: 1.45rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius);
  border: 2px solid transparent; font-family: var(--head); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn--sm { padding: 7px 16px; font-size: 1rem; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: #b80f18; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }

/* ---------- En-tête ---------- */
.topbar { background: var(--navy-dark); color: #cdd5e6; font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; gap: 26px; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
a.topbar__item:hover { color: var(--white); }
.topbar__social { margin-left: auto; display: flex; gap: 6px; }
.topbar__icon { color: #cdd5e6; display: grid; place-items: center; width: 28px; height: 28px; font-size: 1.05rem; }
.topbar__icon:hover { color: var(--white); }

.mainbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
#site-header { position: sticky; top: -38px; z-index: 50; }
.mainbar__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.brand span { display: flex; flex-direction: column; font-family: var(--head); text-transform: uppercase; line-height: 1; }
.brand strong { color: var(--navy); font-size: 1.55rem; letter-spacing: .02em; }
.brand em { color: var(--red); font-style: normal; font-weight: 700; letter-spacing: .32em; font-size: .9rem; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  font-family: var(--head); font-size: 1.12rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ink); text-decoration: none; padding: 8px 12px; border-bottom: 3px solid transparent;
}
.nav a:not(.btn):hover { color: var(--red); }
.nav a.active { color: var(--navy); border-bottom-color: var(--red); }
.nav .btn { margin-left: 12px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; }

/* ---------- Bannière d'accueil ---------- */
.hero { position: relative; color: var(--white); background: var(--navy-dark) center 62% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,33,80,.88) 0%, rgba(15,33,80,.6) 55%, rgba(15,33,80,.25) 100%); }
.hero__inner { position: relative; padding: 110px 0 120px; max-width: 640px; }
.hero__label { display: inline-block; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; padding-left: 14px; border-left: 3px solid var(--red); margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 6.5vw, 4.4rem); text-transform: uppercase; }
.hero p { font-size: 1.2rem; margin: 18px 0 32px; color: #e4e9f3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bandeau sous la bannière : prochain entraînement */
.nextbar { background: var(--white); border-bottom: 1px solid var(--line); }
.nextbar__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 18px 0; }
.next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.next__label { font-weight: 700; color: var(--red); text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; }
.next__when { font-family: var(--head); font-size: 1.5rem; font-weight: 700; color: var(--navy); text-transform: capitalize; }
.next__what { color: var(--muted); }
.info { background: #fff6d6; border-left: 4px solid var(--yellow); padding: 12px 16px; font-weight: 600; border-radius: 0 var(--radius) var(--radius) 0; }

/* En-tête des pages intérieures */
.pagehead { background: var(--navy) center / cover no-repeat; color: var(--white); position: relative; }
.pagehead::before { content: ""; position: absolute; inset: 0; background: rgba(15,33,80,.78); }
.pagehead__inner { position: relative; padding: 64px 0 56px; }
.pagehead h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.2rem); text-transform: uppercase; }
.pagehead p { color: #d6dcea; margin-top: 8px; max-width: 640px; }
.breadcrumb { font-size: .9rem; color: #b8c2d9; margin-bottom: 10px; }
.breadcrumb a { color: #fff; text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #dfe5f1; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.kicker { display: block; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: 8px; }
.section--navy .kicker { color: var(--yellow); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section__head p { color: var(--muted); max-width: 620px; margin-top: 8px; }
.prose p + p { margin-top: 14px; }
.prose h2 { margin-bottom: 18px; }
.lead { font-size: 1.15rem; }

.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.figure { position: relative; }
.figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 28px; }
.facts div { padding: 18px 12px 0 0; }
.facts strong { display: block; font-family: var(--head); font-size: 2rem; color: var(--navy); line-height: 1; }
.facts span { color: var(--muted); font-size: .95rem; }

.team { margin-top: 24px; border-top: 1px solid var(--line); }
.team li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.team strong { color: var(--navy); }
.team span { color: var(--muted); }

/* Disciplines */
.disciplines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.discipline { background: var(--white); border-top: 4px solid var(--blue); padding: 28px 26px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 1px 3px rgba(16,30,70,.08); }
.discipline:nth-child(2) { border-color: var(--red); }
.discipline:nth-child(3) { border-color: var(--navy); }
.discipline__num { font-family: var(--head); font-weight: 700; color: var(--line); font-size: 3rem; line-height: 1; display: block; color: #d3d9e5; }
.discipline h3 { margin: 6px 0 10px; text-transform: uppercase; }
.discipline p { color: var(--muted); }

/* Groupes d'âge */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); overflow: hidden; }
.group { padding: 30px 28px; border-right: 1px solid rgba(255,255,255,.18); }
.group:last-child { border-right: 0; }
.group__age { font-family: var(--head); font-size: 2.2rem; font-weight: 700; color: var(--yellow); line-height: 1; }
.group h3 { margin: 10px 0 8px; }

/* Valeurs */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.value { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.value__n { font-family: var(--head); font-size: 1.5rem; font-weight: 700; color: var(--red); }
.value h3 { font-size: 1.35rem; margin-bottom: 4px; }
.value p { color: var(--muted); }

/* Actualités */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.4rem; margin: 6px 0 8px; }
.news-card h3 a { color: var(--navy); text-decoration: none; }
.news-card h3 a:hover { color: var(--red); }
.news-card p { color: var(--muted); }
.meta { display: flex; gap: 12px; align-items: center; font-size: .85rem; color: var(--muted); }
.cat { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--navy); text-decoration: none; }
.more::after { content: " →"; }
.more:hover { color: var(--red); }

.article { max-width: 780px; }
.article__img { border-radius: var(--radius); width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 30px; }
.article__text { font-size: 1.1rem; margin-bottom: 36px; }
.article__text p + p { margin-top: 16px; }

/* Photos */
.photo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; }
.photo-strip a:first-child { grid-row: span 2; }
.photo-strip a:nth-child(n+6) { display: none; }
.photo-strip a { overflow: hidden; border-radius: var(--radius); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-strip a:hover img { transform: scale(1.04); }
.album + .album { margin-top: 60px; }
.album__head { display: flex; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.album__head span { color: var(--muted); }
.album__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.album__item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.album__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: var(--white); font-size: .92rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .2s; }
.album__item:hover img { transform: scale(1.04); }
.album__item:hover span { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(8,14,32,.94); z-index: 100; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { text-align: center; }
.lightbox img { max-height: 84vh; max-width: 92vw; border-radius: 4px; }
.lightbox figcaption { color: #dfe5f1; margin-top: 10px; }
.lightbox__close { position: absolute; top: 12px; right: 22px; background: none; border: 0; color: var(--white); font-size: 2.6rem; cursor: pointer; }

/* Entraînements */
.board { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--navy); color: var(--white); padding: 16px 24px; }
.board__head h2 { color: var(--white); font-size: 1.6rem; text-transform: uppercase; }
.board__head span { color: #c6cfe2; font-size: .9rem; }
.session { display: grid; grid-template-columns: 190px 1fr 280px; gap: 20px; padding: 20px 24px; border-top: 1px solid var(--line); align-items: center; }
.session:first-child { border-top: 0; }
.session__day strong { display: block; font-family: var(--head); font-size: 1.45rem; text-transform: capitalize; color: var(--navy); line-height: 1.1; }
.session__day span { color: var(--red); font-weight: 700; }
.session__body h3 { font-family: var(--body); font-size: 1.1rem; font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.session__body p { color: var(--muted); }
.session__place span { display: flex; gap: 6px; align-items: flex-start; font-weight: 600; }
.session__place svg { color: var(--red); margin-top: 5px; }
.session__place small { display: block; color: var(--muted); margin-top: 2px; padding-left: 22px; }
.session.is-next { background: #fffbea; box-shadow: inset 4px 0 0 var(--yellow); }
.session.is-cancel > * { opacity: .5; }
.session.is-cancel .session__body { opacity: 1; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 3px; background: var(--blue); color: var(--white); }
.tag--red { background: var(--red); }
.tag--yellow { background: var(--yellow); color: var(--ink); }
.planning { width: 100%; border-collapse: collapse; background: var(--white); }
.planning thead th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 20px; border-bottom: 2px solid var(--line); }
.planning td, .planning__day { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.planning tbody:first-of-type tr:first-child > * { border-top: 0; }
.planning__day { font-family: var(--head); font-size: 1.4rem; font-weight: 700; color: var(--navy); text-transform: uppercase; width: 150px; background: var(--bg-soft); }
.planning tbody + tbody .planning__day, .planning tbody + tbody tr:first-child td { border-top: 2px solid var(--line); }
.planning__time { color: var(--red); font-weight: 700; white-space: nowrap; }
.planning td strong { color: var(--ink); }
.planning small { display: block; color: var(--muted); font-size: .88rem; }
.planning tr.is-cancel td:not(:nth-child(3)) { opacity: .45; text-decoration: line-through; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.side-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.side-note div { border-top: 3px solid var(--navy); padding-top: 14px; }
.side-note h3 { font-size: 1.25rem; margin-bottom: 6px; }
.side-note p { color: var(--muted); }

/* Réseaux sociaux */
.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 14px; }
.social-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.social-card:hover { border-color: var(--navy); }
.social-card strong { display: block; color: var(--navy); }
.social-card small { color: var(--muted); }
.social { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: 1.3rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); color: var(--navy); display: grid; place-items: center; font-size: 1.2rem; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-list a { color: var(--navy); font-weight: 700; text-decoration: none; word-break: break-word; }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 260px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { background: var(--bg-soft); padding: 32px; border-radius: var(--radius); }
.form h2 { font-size: 1.8rem; margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #cfd5df; border-radius: 4px;
  font: inherit; background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form small { display: block; color: var(--muted); margin-top: 10px; }
.choice { border: 0; margin-bottom: 14px; }
.choice legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0 22px 0 0; cursor: pointer; }
.choice input { width: auto; margin: 0; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.btn:disabled { opacity: .6; cursor: wait; }
.form__status { margin-top: 16px; padding: 12px 14px; border-radius: 4px; font-weight: 600; }
.form__status.is-ok { background: #e5f5ea; color: #1d6b38; border-left: 4px solid #2e9c55; }
.form__status.is-error { background: #fdecec; color: #9b1c1c; border-left: 4px solid var(--red); }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: s; border-top: 3px solid var(--red); padding-top: 14px; }
.steps li::before { content: "Étape " counter(s); display: block; font-weight: 700; color: var(--red); text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; margin-bottom: 4px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* Bandeau sponsors défilant */
.sponsor-band { padding: 48px 0 40px; border-top: 1px solid var(--line); background: var(--white); overflow: hidden; }
.sponsor-band__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.sponsor-band__head .more { padding: 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: defile 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: 0 0 auto; display: grid; place-items: center; height: 90px; padding: 0 36px; text-decoration: none; }
.marquee__item img { height: 56px; max-width: 170px; width: auto; object-fit: contain; filter: grayscale(.15); transition: filter .2s; }
.marquee__item:hover img { filter: none; }
.marquee__item span { font-family: var(--head); font-size: 1.4rem; font-weight: 700; color: var(--navy); text-transform: uppercase; white-space: nowrap; }
@keyframes defile { from { transform: translateX(-50%); } to { transform: translateX(0); } } /* de gauche à droite */
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Page sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.sponsor-card > * { min-width: 0; }
.sponsor-card h3, .sponsor-card .cat { overflow-wrap: anywhere; }
.sponsor-card { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); }
.sponsor-card__logo { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 12px; background: var(--white); text-align: center; }
.sponsor-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.sponsor-card__logo span { font-family: var(--head); font-weight: 700; color: var(--navy); text-transform: uppercase; }
.sponsor-card h3 { font-size: 1.35rem; }
.sponsor-card .cat { margin: 2px 0 8px; display: block; }
.sponsor-card p { color: var(--muted); }
.sponsor-card .more { display: inline-block; }
.sponsor-card--empty { border-style: dashed; background: var(--bg-soft); }
.sponsor-card--empty .sponsor-card__logo { border-style: dashed; background: transparent; }
.sponsor-card--empty .sponsor-card__logo span { color: var(--muted); font-size: .95rem; }
.maillot img { width: 100%; border-radius: var(--radius); max-height: 520px; object-fit: contain; background: var(--white); }
.maillot__empty { aspect-ratio: 4 / 3; border: 2px dashed #cfd5df; border-radius: var(--radius); display: grid; place-items: center; align-content: center; gap: 14px; background: var(--white); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.maillot__empty img { width: 140px; opacity: .35; filter: grayscale(1); }

/* Appel final */
.cta-band { background: var(--red); color: var(--white); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px 0; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #ffe1e3; }

/* ---------- Pied de page ---------- */
#site-footer { background: var(--navy-dark); color: #b9c3d9; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer__logo { width: 120px; background: var(--white); border-radius: var(--radius); padding: 6px; margin-bottom: 14px; }
#site-footer h4 { color: var(--white); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .05em; margin-bottom: 12px; }
#site-footer li { margin-bottom: 6px; }
#site-footer a { color: #dfe5f1; text-decoration: none; }
#site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__social { display: flex; gap: 10px; }
.footer__social .social { background: rgba(255,255,255,.1); }
.footer__social a.social:hover { background: var(--red); text-decoration: none; }
.admin-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); color: #dfe5f1 !important; font-weight: 600; text-decoration: none !important; }
.admin-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 26px; font-size: .85rem; align-items: center; }

/* ---------- Tablette ---------- */
@media (max-width: 1180px) {
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); display: none; padding: 6px 16px 16px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--line); color: var(--red); }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .mainbar__inner { position: relative; }
}
@media (max-width: 980px) {
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); display: none; padding: 6px 16px 16px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--line); color: var(--red); }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .mainbar__inner { position: relative; }
  .two-cols, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .news-grid, .disciplines { grid-template-columns: 1fr 1fr; }
  .groups { grid-template-columns: 1fr; }
  .group { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .group:last-child { border-bottom: 0; }
  .session { grid-template-columns: 150px 1fr; }
  .session__place { grid-column: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .topbar__mail { display: none; }
}
/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .topbar__inner { gap: 16px; }
  .topbar__inner > span.topbar__item { display: none; }
  .brand img { height: 48px; }
  .brand strong { font-size: 1.3rem; }
  .hero__inner { padding: 70px 0 80px; }
  .nextbar__inner { grid-template-columns: 1fr; }
  .news-grid, .disciplines, .values, .side-note, .steps, .facts { grid-template-columns: 1fr; }
  .facts div { padding-top: 12px; }
  .planning thead { display: none; }
  .planning, .planning tbody, .planning tr, .planning td, .planning__day { display: block; width: 100%; }
  .planning__day { border-top: 0; padding: 10px 16px; font-size: 1.25rem; }
  .planning tr { padding: 12px 16px; border-top: 1px solid var(--line); }
  .planning tr:has(.planning__day) { padding: 0 0 12px; }
  .planning tr:has(.planning__day) td { padding-inline: 16px; }
  .planning td { border: 0 !important; padding: 2px 0; }
  .session { grid-template-columns: 1fr; gap: 8px; }
  .session__place { grid-column: auto; }
  .photo-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 130px 130px; }
  .photo-strip a:first-child { grid-row: auto; grid-column: span 2; }
  .socials { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr; }
  .sponsor-card { grid-template-columns: 90px 1fr; gap: 14px; }
  .marquee__item { height: 70px; padding: 0 22px; }
  .marquee__item img { max-height: 58px; }
  .form { padding: 22px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
.sponsor-card--empty:only-child { grid-column: 1 / -1; max-width: 680px; }
.trifonction-3d { position: relative; aspect-ratio: 4 / 5; max-height: 560px; width: 100%; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, #ffffff 0%, #e9eef7 70%, #dde4f0 100%); overflow: hidden; }
.trifonction-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.trifonction-3d:not(.is-ready)::after { content: "Chargement de la 3D…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.maillot figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.maquettes { grid-column: 1 / -1; margin-top: 8px; }
.maquettes a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: zoom-in; }
.maquettes img { width: 100%; max-height: 560px; object-fit: contain; margin: 0 auto; }
.maquettes figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; text-align: center; }

/* Horaires pas encore confirmés */
.horaires-vide { padding: 26px 24px; text-align: center; background: var(--white); }
.horaires-vide strong { display: block; font-size: 1.15rem; color: var(--navy); }
.horaires-vide p { color: var(--muted); margin: 6px 0 16px; }
.horaires-vide .hero__actions { justify-content: center; }
.nav .btn.is-active { background: var(--navy); }

/* Accueil : 4 disciplines, valeurs, citation */
.disciplines--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.disciplines--4 .discipline:nth-child(4) { border-color: var(--yellow); }
.note-natation { margin-top: 18px; color: var(--muted); font-size: .95rem; font-style: italic; }
.valeurs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.valeur { padding: 20px 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.valeur h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 4px; }
.valeur:nth-child(4n+1) h3 { color: var(--red); }
.valeur p { color: var(--muted); font-size: .97rem; }
.checks--light li::before { background: var(--yellow); color: var(--navy); }
.quote-block { display: grid; grid-template-columns: 140px 1fr auto; gap: 28px; align-items: center; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 26px 30px; }
.quote-block__logo { width: 140px; }
.quote-block blockquote p { font-family: var(--head); font-size: 1.55rem; line-height: 1.25; color: var(--navy); font-style: italic; }
.quote-block blockquote footer { margin-top: 8px; color: var(--muted); font-weight: 600; }
@media (max-width: 980px) {
  .disciplines--4 { grid-template-columns: 1fr 1fr; }
  .valeurs { grid-template-columns: 1fr 1fr; }
  .quote-block { grid-template-columns: 1fr; text-align: left; }
  .quote-block__logo { width: 110px; }
}
@media (max-width: 640px) {
  .disciplines--4, .valeurs { grid-template-columns: 1fr; }
}

/* Page Le club : projet du président */
.president { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.president__aside { position: sticky; top: 100px; }
.president__aside figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.president__aside figcaption strong { color: var(--navy); }
.president__logo { width: 150px; margin-top: 22px; }
.lettre { max-width: 720px; }
.lettre h3 { font-size: 1.45rem; text-transform: uppercase; margin: 30px 0 10px; color: var(--navy); }
.lettre .signature { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.lettre .signature em { color: var(--red); }

/* Page Nos disciplines */
.discipline-list { display: grid; gap: 64px; }
.disc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.disc-row--rev .figure { order: 2; }
.disc-row .kicker { font-family: var(--head); font-size: 1.6rem; letter-spacing: 0; }
.box-natation { border: 1px dashed #b8c2d6; border-radius: var(--radius); padding: 22px 26px; background: var(--bg-soft); }
.box-natation h3 { margin-bottom: 6px; }
.box-natation p { color: var(--muted); }

@media (max-width: 980px) {
  .president { grid-template-columns: 1fr; gap: 30px; }
  .president__aside { position: static; display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: end; }
  .disc-row { grid-template-columns: 1fr; gap: 24px; }
  .disc-row--rev .figure { order: 0; }
}
@media (max-width: 640px) {
  .president__aside { grid-template-columns: 1fr; }
}

/* Page Rejoindre */
.profils { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.profil { border-top: 4px solid var(--navy); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); padding: 18px; box-shadow: 0 1px 3px rgba(16,30,70,.08); }
.profil:nth-child(2) { border-color: var(--red); }
.profil:nth-child(3) { border-color: var(--blue); }
.profil:nth-child(4) { border-color: var(--yellow); }
.profil h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 6px; }
.profil p { color: var(--muted); font-size: .97rem; }
.a-confirmer { margin-top: 36px; background: #fff8dc; border-left: 5px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; }
.a-confirmer strong { color: var(--navy); font-size: 1.08rem; }
.a-confirmer p { color: var(--muted); margin: 6px 0 14px; }
@media (max-width: 980px) { .profils { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .profils { grid-template-columns: 1fr; } }

.footer__fftri { margin-top: 10px; font-weight: 700; color: var(--white); font-size: .88rem; }
