/* =========================================================
   Tir Club Fréjusien — feuille de style principale
   Palette claire et chaleureuse, fidèle au logo :
   jaune identitaire, bleu nuit, blanc cassé, touches tricolores.
   ========================================================= */

:root {
  --yellow: #f6c312;        /* jaune du logo */
  --yellow-soft: #fdf1c4;
  --yellow-dark: #c99a00;
  --navy: #1b2a41;          /* bleu nuit : textes, footer */
  --navy-soft: #34465f;
  --cream: #fffaf0;         /* fond principal */
  --sand: #f7efdf;          /* fond des sections alternées */
  --white: #ffffff;
  --muted: #6b7280;
  --border: #ece3d0;
  --fr-blue: #0055a4;
  --fr-red: #e1000f;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(27, 42, 65, .08);
  --shadow-hover: 0 12px 32px rgba(27, 42, 65, .14);
  --container: 1400px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Montserrat", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fr-blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, .card-body h3, .quick-card strong { text-wrap: balance; }
p, li, figcaption, .quick-card > span:last-child, .agenda-info { text-wrap: pretty; }
html { hyphens: manual; -webkit-hyphens: manual; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 72px 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--yellow-dark); margin-bottom: .5em;
}
.tricolor { display: flex; width: 64px; height: 4px; border-radius: 2px; overflow: hidden; margin: 10px 0 18px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--fr-blue); }
.tricolor span:nth-child(2) { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tricolor span:nth-child(3) { background: var(--fr-red); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: #ffd23a; color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-soft); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: rgba(255,255,255,.9); color: var(--navy); }
.btn-sm { padding: .5em 1.1em; font-size: .85rem; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--navy); }
.link-arrow::after { content: " →"; color: var(--yellow-dark); }

/* ---------- Bandeau d'informations importantes ---------- */
.announce { font-size: .92rem; padding: 10px 0; }
.announce .container { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.announce strong { white-space: nowrap; }
.announce--info { background: var(--yellow-soft); }
.announce--warning { background: var(--yellow); }
.announce--alert { background: var(--fr-red); color: var(--white); }
.announce--alert a { color: var(--white); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 240, .95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img, .brand svg { height: 62px; width: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(27,42,65,.12); }
.brand-name { font-family: var(--font-title); font-weight: 800; font-size: 1.1rem; line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font); font-weight: 500; font-size: .75rem; text-transform: none; color: var(--muted); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a, .main-nav .nav-drop > span {
  display: block; padding: .55em .7em; border-radius: var(--radius-sm); text-decoration: none;
  color: var(--navy); font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active, .nav-drop:hover > span { background: var(--yellow-soft); }
.nav-drop { position: relative; }
.nav-drop ul {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column;
  align-items: stretch; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 6px;
}
.nav-drop:hover ul, .nav-drop:focus-within ul { display: flex; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--navy); }
@media (max-width: 1440px) and (min-width: 1281px) {
  .brand-name small { display: none; }
  .main-nav a, .main-nav .nav-drop > span { font-size: .9rem; padding: .5em .6em; }
  .header-actions .btn { padding-left: 1em; padding-right: 1em; }
}

/* ---------- Hero (grande photo + voile bleu nuit) ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; color: #fff;
  background: var(--navy) var(--hero-photo) center 40% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,36,.92) 0%, rgba(15,23,36,.78) 38%, rgba(15,23,36,.25) 70%, rgba(15,23,36,.1) 100%);
}
.hero::after {  /* léger fondu en bas */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, rgba(15,23,36,0), rgba(15,23,36,.35));
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; padding: 70px 0 130px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero .title-name { color: var(--yellow); }
.hero-content p { font-size: 1.18rem; color: rgba(255,255,255,.88); }
.title-name { display: block; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-motto {
  position: absolute; right: max(32px, calc((100vw - var(--container)) / 2 + 32px)); bottom: 110px; z-index: 1; margin: 0;
  font-family: var(--font-title); font-style: italic; font-weight: 700; font-size: 1.25rem; line-height: 1.35;
  color: #fff; text-align: right; text-shadow: 0 2px 12px rgba(0,0,0,.45); transform: rotate(-4deg);
}
.eyebrow--light { color: var(--yellow); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn .icon { flex-shrink: 0; }

/* ---------- Accès rapides (tuiles sous le bandeau) ---------- */
.quick-links { margin-top: -78px; position: relative; z-index: 2; }
.quick-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); background: var(--white); border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 18px 50px rgba(27, 42, 65, .14); overflow: hidden;
}
.quick-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px 24px;
  text-decoration: none; color: var(--navy); border-right: 1px solid var(--border); position: relative;
  transition: background .15s;
}
.quick-card:last-child { border-right: 0; }
.quick-card::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--yellow); transform: scaleX(0); transition: transform .2s;
}
.quick-card:hover { background: #fffcf3; color: var(--navy); }
.quick-card:hover::after { transform: scaleX(1); }
.quick-icon {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--yellow-soft); color: var(--navy);
}
.quick-card strong { font-size: 1rem; }
.quick-card > span:last-child {
  font-size: .82rem; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Cartes ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: center; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--sand); }
.card-img--placeholder {
  display: grid; place-items: center; font-size: 2.5rem;
  background: linear-gradient(135deg, var(--yellow-soft), var(--sand));
}
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h3 a:hover { color: var(--fr-blue); }
.card-body p { color: var(--navy-soft); font-size: .95rem; flex: 1; }
.meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: var(--yellow-soft); color: var(--navy);
}
.badge--blue { background: #e3edf8; color: var(--fr-blue); }
.badge--red { background: #fde4e6; color: var(--fr-red); }
.badge--navy { background: var(--navy); color: var(--white); }

/* ---------- Événements ---------- */
.event-list { display: grid; gap: 14px; }
.event-item {
  display: flex; gap: 18px; align-items: center; background: var(--white); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--navy);
  transition: transform .15s;
}
.event-item:hover { transform: translateX(4px); color: var(--navy); }
.event-date {
  flex: 0 0 72px; text-align: center; background: var(--yellow); border-radius: var(--radius-sm);
  padding: 8px 4px; line-height: 1.1; font-family: var(--font-title);
}
.event-date .day { display: block; font-size: 1.7rem; font-weight: 800; }
.event-date .month { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.event-info h3 { margin: 0 0 4px; font-size: 1.05rem; }
.event-info .meta { margin: 0; }

/* ---------- Actualités + agenda ---------- */
.news-events { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.grid-3--compact { gap: 20px; }
.grid-3--compact .card-body { padding: 16px 18px 20px; }
.grid-3--compact .card-body h3 { font-size: 1.02rem; }
.card-media { position: relative; display: block; overflow: hidden; }
.card-media .card-img { transition: transform .4s; }
.card:hover .card-media .card-img { transform: scale(1.04); }
.card-tag {
  position: absolute; left: 12px; top: 12px; background: var(--yellow); color: var(--navy); font-size: .72rem;
  font-weight: 800; padding: .3em .8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}

.agenda-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 100px; }
.agenda-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; background: var(--navy); color: #fff; }
.agenda-head span { color: var(--yellow); display: grid; }
.agenda-head h2 { color: #fff; font-size: 1.15rem; margin: 0; }
.agenda-list { padding: 6px 0; }
.agenda-item {
  display: flex; gap: 14px; align-items: center; padding: 14px 22px; text-decoration: none; color: var(--navy);
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.agenda-item:last-child { border-bottom: 0; }
.agenda-item:hover { background: #fffcf3; color: var(--navy); }
.agenda-date {
  flex: 0 0 54px; text-align: center; line-height: 1.05; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  color: var(--muted); border-right: 2px solid var(--yellow); padding-right: 10px;
}
.agenda-date b { display: block; font-family: var(--font-title); font-size: 1.6rem; color: var(--navy); }
.agenda-info { flex: 1; display: grid; gap: 1px; font-size: .84rem; color: var(--muted); }
.agenda-info strong { font-size: .95rem; color: var(--navy); }
.agenda-arrow { color: var(--yellow-dark); flex-shrink: 0; }
.agenda-empty { padding: 22px; color: var(--muted); margin: 0; }
.agenda-all {
  display: flex; justify-content: center; align-items: center; gap: 6px; padding: 14px; font-weight: 700; font-size: .9rem;
  text-decoration: none; color: var(--navy); background: var(--cream); border-top: 1px solid var(--border);
}
.agenda-all:hover { background: var(--yellow-soft); color: var(--navy); }

/* ---------- Bandeau « Le club » ---------- */
.club-band {
  position: relative; color: #fff; padding: 96px 0;
  background: var(--navy) var(--band-photo) center / cover no-repeat;
}
.club-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,36,.94) 0%, rgba(15,23,36,.82) 50%, rgba(15,23,36,.6) 100%);
}
.club-band__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.club-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.club-band p { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 520px; margin-bottom: 26px; }
.club-band__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.club-band__stats div { border-left: 3px solid var(--yellow); padding-left: 18px; }
.club-band__stats strong { display: block; font-family: var(--font-title); font-size: 2.6rem; line-height: 1; color: #fff; }
.club-band__stats span { color: rgba(255,255,255,.75); font-size: .95rem; }
.club-band__values { display: grid; gap: 16px; }
.club-band__values div {
  display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 18px 20px;
  backdrop-filter: blur(6px);
}
.club-band__values .icon { grid-row: span 2; color: var(--yellow); width: 52px; height: 52px; padding: 10px;
  background: rgba(246,195,18,.12); border-radius: 50%; }
.club-band__values strong { font-size: 1.05rem; }
.club-band__values span { color: rgba(255,255,255,.75); font-size: .9rem; }

/* ---------- Accès rapide (cartes du bas) ---------- */
.section--tight { padding: 56px 0 72px; }
.section-title-line { display: flex; align-items: center; gap: 14px; font-size: 1.5rem; margin-bottom: 24px; }
.section-title-line::before { content: ""; width: 34px; height: 3px; background: var(--yellow); border-radius: 2px; }
.access-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.access-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--navy); border: 1px solid transparent;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.access-card:hover { transform: translateY(-3px); border-color: var(--yellow); box-shadow: var(--shadow-hover); color: var(--navy); }
.access-card > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.access-card strong { font-size: 1rem; }
.access-card > span:nth-child(2) span { font-size: .84rem; color: var(--muted); }
.access-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); flex-shrink: 0; }
.access-arrow { color: var(--yellow-dark); }

/* ---------- Stands de tir ---------- */
.stands-section { padding-bottom: 24px; }
.stands-intro { margin-bottom: 36px; }
.stand-list { display: grid; gap: 40px; }
.stand {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center;
  background: var(--white); border-radius: calc(var(--radius) + 4px); padding: 26px; box-shadow: var(--shadow);
}
.stand:nth-child(even) .stand-media { order: 2; }
.stand { border: 2px solid var(--yellow); }
.stand--highlight { box-shadow: 0 14px 40px rgba(246,195,18,.22); }
.stand-media { position: relative; }
.stand-photo { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); display: block; }
.stand-photo--empty { display: grid; place-items: center; background: var(--sand); color: var(--muted); }
.stand-photo-2 {
  position: absolute; right: -18px; bottom: -18px; width: 38%; aspect-ratio: 3/2; object-fit: cover;
  border-radius: 12px; border: 5px solid var(--white); box-shadow: var(--shadow-hover);
}
.stand:nth-child(even) .stand-photo-2 { right: auto; left: -18px; }
.stand-badge {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .82rem; letter-spacing: .02em;
  padding: .45em 1em; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.18); text-transform: uppercase;
}
.stand-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: 14px; }
.stand-specs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.stand-specs li {
  display: inline-flex; align-items: center; gap: 8px; padding: .5em .95em; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--border); font-size: .92rem;
}
.stand-specs .icon { color: var(--yellow-dark); flex-shrink: 0; }
.stand-summary { font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.prose--compact { font-size: 1rem; max-width: none; }
.prose--compact h2 { font-size: 1.1rem; margin-top: 1.2em; }
.section--after-stands { padding-top: 32px; }

/* ---------- Mise en avant d'un stand sur l'accueil ---------- */
.feature__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature__media { position: relative; padding-bottom: 28px; }
.feature__photo { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-hover); display: block; }
.feature__photo-2 {
  position: absolute; right: -24px; bottom: 0; width: 40%; aspect-ratio: 3/2; object-fit: cover;
  border-radius: 14px; border: 6px solid var(--white); box-shadow: var(--shadow-hover);
}
.feature__lead { font-size: 1.15rem; color: var(--navy-soft); }
.feature .stand-specs { margin: 22px 0 28px; }

/* ---------- Vidéo et document joint d'une actualité ---------- */
.video { margin: 2em 0; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.attachment { margin: 2em 0; background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.attachment img { width: 100%; border-radius: 6px; margin: 0; }
.attachment figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Galerie photos d'une page ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 2em 0; }
.gallery-item { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin: 0; border-radius: 0; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item a { display: block; overflow: hidden; }
.gallery-item figcaption { padding: 8px 12px 10px; font-size: .85rem; color: var(--muted); }

/* ---------- Blocs des pages structurées (bureau, horaires, tarifs, accès, services) ---------- */
.block-section { padding-bottom: 24px; }
.block-intro { margin-bottom: 30px; max-width: 720px; }
.block-intro--center { text-align: center; margin-left: auto; margin-right: auto; }
.block-intro--sub { margin-top: 56px; }
.block-intro h2 { margin-bottom: 8px; }

/* Bureau */
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.people-grid--small { grid-template-columns: repeat(auto-fit, minmax(190px, 260px)); }
.person {
  background: var(--white); border-radius: calc(var(--radius) + 2px); padding: 30px 20px 26px; text-align: center;
  box-shadow: var(--shadow); border-top: 4px solid var(--yellow); display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.person--vacant { border-top-color: var(--border); background: var(--cream); }
.person-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.person-initials {
  display: grid; place-items: center; background: var(--navy); color: var(--yellow);
  font-family: var(--font-title); font-weight: 800; font-size: 1.9rem; letter-spacing: .02em;
}
.person--vacant .person-initials { background: var(--sand); color: var(--muted); }
.person-role { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-dark); }
.person-name { font-family: var(--font-title); font-size: 1.15rem; }
.person--vacant .person-name { color: var(--muted); font-weight: 600; font-style: italic; }
.person-note { font-size: .86rem; color: var(--muted); }
.person--small { padding: 22px 16px; border-top-width: 3px; }
.person--small .person-photo { width: 64px; height: 64px; font-size: 1.3rem; }
.person--small .person-role { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: .85rem; }
.cta-strip {
  margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 26px;
}
.cta-strip > div { display: flex; gap: 14px; align-items: center; max-width: 780px; }
.cta-strip .icon { color: var(--yellow); flex-shrink: 0; }
.cta-strip strong { color: var(--yellow); }

/* Horaires */
.hours-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.hours-card { background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); overflow: hidden; }
.hours-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 28px; border-bottom: 1px solid var(--border); }
.hours-head h2 { margin: 0; font-size: 1.5rem; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 999px; background: #fde4e6; color: #b3000c; font-weight: 700; font-size: .9rem; }
.open-badge i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.open-badge--open { background: #e3f4e8; color: #1e6b37; }
.open-badge--open i { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hours-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours-table th, .hours-table td { padding: 15px 28px; border-bottom: 1px solid var(--border); text-align: left; font-variant-numeric: tabular-nums; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 700; width: 38%; }
.hours-table tr.is-today { background: #fffbea; box-shadow: inset 4px 0 0 var(--yellow); }
.hours-table tr.is-closed th, .hours-table tr.is-closed td { color: var(--muted); }
.today-tag { display: inline-block; margin-left: 10px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--yellow); color: var(--navy); padding: .2em .6em; border-radius: 999px; vertical-align: middle; }
.closed-tag { display: inline-block; font-size: .85rem; font-weight: 700; background: var(--sand); padding: .25em .8em; border-radius: 999px; }
.info-stack { display: grid; gap: 14px; }
.info-tile { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.info-tile strong { display: block; margin-bottom: 2px; }
.info-tile div span { font-size: .92rem; color: var(--navy-soft); }
.info-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow-soft); color: var(--navy); flex-shrink: 0; }

/* Tarifs */
.tariff-group-title { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin: 40px 0 18px; }
.tariff-group-title::before { content: ""; width: 26px; height: 3px; background: var(--yellow); border-radius: 2px; flex-shrink: 0; }
.tariff-columns {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin-top: 10px;
  grid-template-rows: auto repeat(var(--tariff-rows, 3), auto);
}
/* Sous-grille : les cartes d'une même rangée ont la même hauteur dans les trois colonnes */
.tariff-column { display: grid; grid-row: span calc(var(--tariff-rows, 3) + 1); grid-template-rows: subgrid; row-gap: 20px; }
.tariff-column .tariff { height: 100%; }
.tariff-column-title { font-size: 1.02rem; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 3px solid var(--yellow); min-height: 3.4em; display: flex; align-items: flex-end; }
.tariff {
  position: relative; background: var(--white); border-radius: calc(var(--radius) + 4px); padding: 28px 26px; box-shadow: var(--shadow);
  border: 2px solid transparent; display: flex; flex-direction: column;
}
.tariff--highlight { border-color: var(--yellow); box-shadow: 0 14px 40px rgba(246,195,18,.2); }
.tariff-flag { position: absolute; top: -12px; left: 24px; background: var(--yellow); color: var(--navy); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .35em .9em; border-radius: 999px; }
.tariff h4 { font-family: var(--font-title); font-size: 1.1rem; margin: 0 0 12px; }
.tariff-price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 16px; color: var(--navy); }
.tariff-price b { font-family: var(--font-title); font-size: 2.8rem; line-height: 1; font-weight: 800; }
.tariff-price span { font-size: 1.4rem; font-weight: 800; }
.tariff-price small { margin-left: 6px; color: var(--muted); font-size: .9rem; }
.tariff-details { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: .92rem; color: var(--navy-soft); }
.tariff-details li { position: relative; padding-left: 24px; }
.tariff-details li::before { content: "✓"; position: absolute; left: 0; color: var(--yellow-dark); font-weight: 800; }
.steps { margin-top: 20px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-list li { background: var(--white); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; font-size: .93rem; color: var(--navy-soft); }
.step-list li > span { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; flex-shrink: 0; }
.step-list strong { display: block; color: var(--navy); margin-bottom: 2px; }
.deadline { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; background: var(--yellow-soft); border-radius: var(--radius); padding: 16px 20px; }
.deadline .icon { flex-shrink: 0; margin-top: 2px; }

/* Accès */
.access-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.map-card { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-hover); min-height: 440px; background: var(--sand); }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { position: absolute; right: 12px; bottom: 12px; background: var(--white); color: var(--navy); font-weight: 700; font-size: .85rem; padding: .5em 1em; border-radius: 999px; box-shadow: var(--shadow); text-decoration: none; }
.access-info { display: grid; gap: 16px; align-content: start; }
.address-card { background: var(--white); border-radius: calc(var(--radius) + 4px); padding: 26px; box-shadow: var(--shadow); border-left: 5px solid var(--yellow); }
.address-card h2 { font-size: 1.3rem; line-height: 1.4; margin: 4px 0 6px; }
.nav-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feature-list { display: grid; gap: 10px; }
.feature-list > div { display: flex; gap: 14px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.feature-list strong { display: block; }
.feature-list > div > span:last-child { font-size: .92rem; color: var(--navy-soft); display: grid; }

/* Services en ligne */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.service-card {
  display: flex; gap: 18px; align-items: center; background: var(--white); border-radius: calc(var(--radius) + 2px); padding: 18px 20px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--navy); border: 1px solid transparent; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--yellow); box-shadow: var(--shadow-hover); color: var(--navy); }
.service-logo { width: 104px; height: 78px; flex-shrink: 0; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.service-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.service-body { display: grid; gap: 3px; }
.service-body strong { font-size: 1.02rem; }
.service-body span { font-size: .88rem; color: var(--navy-soft); }
.service-body em { font-style: normal; font-size: .78rem; color: var(--yellow-dark); font-weight: 700; }

@media (max-width: 1080px) {
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tariff-columns { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 32px; }
  .tariff-column { grid-row: auto; grid-template-rows: none; }
  .tariff-column-title { min-height: 0; }
}
@media (max-width: 900px) {
  .hours-layout, .access-layout { grid-template-columns: 1fr; }
  .map-card { min-height: 320px; }
  .hours-table th, .hours-table td { padding: 13px 16px; }
}
@media (max-width: 560px) {
  .step-list, .service-grid { grid-template-columns: 1fr; }
  .hours-table { font-size: .92rem; }
  .hours-table td { display: block; padding-top: 0; border-bottom: 0; }
  .hours-table th { width: auto; display: block; border-bottom: 0; padding-bottom: 4px; }
  .hours-table tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .service-logo { width: 80px; height: 64px; }
}

/* ---------- QCM FFTir ---------- */
.qcm-home { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.qcm-start { background: var(--white); border-radius: calc(var(--radius) + 4px); padding: 34px; box-shadow: var(--shadow); border-top: 5px solid var(--yellow); }
.qcm-facts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.qcm-facts li { display: flex; gap: 14px; align-items: flex-start; }
.qcm-facts .icon { color: var(--yellow-dark); flex-shrink: 0; margin-top: 2px; }
.qcm-facts strong { display: block; }
.qcm-facts span span, .qcm-facts li > span { color: var(--navy-soft); font-size: .95rem; }
.qcm-note { font-size: .88rem; margin-top: 14px; }
.qcm-last { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--border); display: grid; gap: 6px; justify-items: start; font-size: .92rem; }
.qcm-docs .tariff-group-title { margin-top: 0; }
.qcm-tip { margin-top: 18px; }

.qcm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: start; }
.qcm-section { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin: 10px 0 18px; }
.qcm-section::before { content: ""; width: 26px; height: 3px; background: var(--yellow); border-radius: 2px; }
.qcm-section small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.qcm-section:not(:first-of-type) { margin-top: 44px; }
.qcm-question { border: 0; margin: 0 0 18px; padding: 22px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.qcm-question legend, .qcm-open-label { display: flex; gap: 14px; align-items: flex-start; font-weight: 700; font-size: 1.05rem; padding: 0; float: left; width: 100%; margin-bottom: 14px; }
.qcm-question legend + * { clear: both; }
.qcm-num { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-family: var(--font-title); font-size: .9rem; font-weight: 800; flex-shrink: 0; }
.qcm-hint { clear: both; margin: 0 0 10px 46px; font-size: .82rem; font-weight: 700; color: var(--yellow-dark); text-transform: uppercase; letter-spacing: .05em; }
.qcm-choices { clear: both; display: grid; gap: 8px; padding-left: 46px; }
.qcm-choice { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); cursor: pointer; transition: background .12s, border-color .12s; }
.qcm-choice:hover { background: var(--cream); }
.qcm-choice input { position: absolute; opacity: 0; pointer-events: none; }
.qcm-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--navy-soft); flex-shrink: 0; display: grid; place-items: center; transition: background .12s; }
.qcm-choice input:checked + .qcm-box { background: var(--yellow); border-color: var(--yellow-dark); }
.qcm-choice input:checked + .qcm-box::after { content: "✓"; font-weight: 800; color: var(--navy); font-size: .85rem; }
.qcm-choice:has(input:checked) { border-color: var(--yellow); background: #fffbea; }
.qcm-choice input:focus-visible + .qcm-box { outline: 3px solid var(--yellow-soft); outline-offset: 2px; }
.qcm-question textarea { width: 100%; padding: .75em 1em; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: var(--cream); }
.qcm-submit { margin-top: 26px; display: grid; gap: 10px; justify-items: start; }
#qcm-unanswered { color: #b3000c; font-weight: 600; }
.qcm-progress-card { position: sticky; top: 100px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 6px; }
.qcm-progress-card strong { font-family: var(--font-title); font-size: 1.8rem; }
.qcm-progress-card > span { color: var(--muted); font-size: .9rem; }
.qcm-bar { height: 8px; background: var(--sand); border-radius: 4px; overflow: hidden; margin: 8px 0 14px; }
.qcm-bar i { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .25s; }
.qcm-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qcm-dots a { display: grid; place-items: center; height: 32px; border-radius: 8px; background: var(--cream); border: 1px solid var(--border); text-decoration: none; color: var(--navy); font-size: .82rem; font-weight: 700; }
.qcm-dots a.is-done { background: var(--navy); color: var(--yellow); border-color: var(--navy); }

.qcm-result-head { padding-bottom: 0; }
.qcm-score { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; background: var(--white); border-radius: calc(var(--radius) + 6px); padding: 32px 34px; box-shadow: var(--shadow-hover); border-left: 8px solid var(--navy); margin-top: 10px; }
.qcm-score--ok { border-left-color: #1e7e34; }
.qcm-score--ko { border-left-color: var(--fr-red); }
.qcm-score-main { max-width: 640px; }
.qcm-score h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.qcm-score--ok .eyebrow { color: #1e7e34; }
.qcm-score--ko .eyebrow { color: var(--fr-red); }
.qcm-gauges { display: flex; gap: 16px; }
.qcm-gauge { width: 130px; height: 130px; border-radius: 50%; border: 8px solid #1e7e34; display: grid; place-content: center; text-align: center; }
.qcm-gauge.is-ko { border-color: var(--fr-red); }
.qcm-gauge--neutral { border-color: var(--yellow); }
.qcm-gauge b { font-family: var(--font-title); font-size: 2.1rem; line-height: 1; }
.qcm-gauge small { font-size: 1rem; color: var(--muted); }
.qcm-gauge span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.qcm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.qcm-review > * { max-width: 920px; }
.qcm-jump { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 600; margin-bottom: 24px; }
.qcm-jump a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fde4e6; color: #b3000c; text-decoration: none; font-weight: 800; font-size: .85rem; }
.qcm-review-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 16px; border-left: 5px solid var(--border); scroll-margin-top: 110px; }
.qcm-review-item.is-ok { border-left-color: #1e7e34; }
.qcm-review-item.is-ko { border-left-color: var(--fr-red); }
.qcm-review-item header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.qcm-review-item h3 { flex: 1; margin: 4px 0 0; font-size: 1.02rem; }
.qcm-answers { list-style: none; padding: 0 0 0 46px; margin: 0 0 14px; display: grid; gap: 6px; }
.qcm-answers li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .95rem; flex-wrap: wrap; }
.qcm-answers i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .8rem; border: 2px solid var(--border); flex-shrink: 0; }
.qcm-answers em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.a-good { background: #e3f4e8; color: #1e6b37; } .a-good i { background: #1e7e34; border-color: #1e7e34; color: #fff; }
.a-missed { background: #fff4d6; color: #8a6500; } .a-missed i { border-color: #c99a00; color: #8a6500; }
.a-wrong { background: #fde4e6; color: #b3000c; text-decoration: line-through; } .a-wrong em { text-decoration: none; } .a-wrong i { background: var(--fr-red); border-color: var(--fr-red); color: #fff; }
.a-neutral { color: var(--muted); }
.qcm-explain { display: flex; gap: 10px; margin: 0 0 0 46px; padding: 12px 14px; background: var(--cream); border-radius: var(--radius-sm); font-size: .93rem; color: var(--navy-soft); }
.qcm-explain .icon { color: var(--yellow-dark); flex-shrink: 0; margin-top: 2px; }
.qcm-open-answer { margin: 0 0 12px 46px; padding: 12px 16px; border-left: 3px solid var(--yellow); background: var(--cream); font-style: italic; }
.qcm-history { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

@media (max-width: 900px) {
  .qcm-home, .qcm-layout { grid-template-columns: 1fr; }
  .qcm-progress-card { position: static; order: -1; }
  .qcm-choices, .qcm-answers, .qcm-explain, .qcm-hint, .qcm-open-answer { padding-left: 0; margin-left: 0; }
  .qcm-answers em { margin-left: 32px; width: 100%; }
}

/* ---------- Disciplines ---------- */
.disc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.disc-card { background: var(--white); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--yellow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.disc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.disc-media { position: relative; aspect-ratio: 16/8; background: var(--sand); overflow: hidden; }
.disc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.disc-card:hover .disc-media img { transform: scale(1.04); }
.disc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,36,0) 50%, rgba(15,23,36,.55)); }
.disc-distance { position: absolute; left: 16px; bottom: 14px; z-index: 1; display: inline-flex; gap: 6px; align-items: center; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: .88rem; padding: .45em 1em; border-radius: 999px; }
.disc-badge { position: absolute; right: 14px; top: 14px; z-index: 1; background: var(--yellow); color: var(--navy); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .4em .9em; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.disc-body { padding: 24px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.disc-body h3 { font-family: var(--font-title); font-size: 1.35rem; margin-bottom: 8px; }
.disc-body > p { color: var(--navy-soft); }
.disc-items { list-style: none; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.disc-items li { background: var(--cream); border: 1px solid var(--border); border-radius: 999px; padding: .4em .95em; font-size: .88rem; font-weight: 600; }
.disc-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.disc-equip { display: inline-flex; gap: 6px; align-items: center; font-size: .86rem; color: var(--muted); }
.disc-equip .icon { color: var(--yellow-dark); flex-shrink: 0; }
.disc-tar { margin: 44px 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; background: var(--navy) url('../images/photos/club-galerie-tir.jpg') center / cover; position: relative; border-radius: calc(var(--radius) + 4px); padding: 36px 40px; color: #fff; overflow: hidden; }
.disc-tar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,36,.95), rgba(15,23,36,.75)); }
.disc-tar > * { position: relative; }
.disc-tar > div { max-width: 700px; }
.disc-tar h2 { color: #fff; margin-bottom: 8px; }
.disc-tar p { color: rgba(255,255,255,.85); margin: 0; }
.step-list--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .disc-grid, .step-list--3 { grid-template-columns: 1fr; }
  .disc-tar { padding: 28px 24px; }
}

/* ---------- Carnet de tir ---------- */
.lb-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; margin-bottom: 32px; }
.lb-stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; display: grid; gap: 4px; align-content: start; }
.lb-stat > span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lb-stat strong { font-family: var(--font-title); font-size: 2.2rem; line-height: 1.1; }
.lb-stat strong small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.lb-stat ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: .92rem; }
.lb-stat li { display: flex; justify-content: space-between; gap: 10px; }
.lb-stat--main { border-left: 5px solid var(--yellow); }
.lb-stat--main.is-ok { border-left-color: #1e7e34; }
.lb-stat--main.is-ok .qcm-bar i { background: #1e7e34; }
.lb-stat em { font-style: normal; font-size: .88rem; font-weight: 600; color: var(--navy-soft); }
.lb-stat--main .qcm-bar { margin: 6px 0 4px; }
.lb-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lb-head .tariff-group-title { margin: 0; }
.lb-tools { display: flex; gap: 8px; align-items: center; }
.lb-tools select { padding: .45em .8em; border-radius: 999px; border: 1px solid var(--border); font: inherit; background: var(--white); }
.lb-list { display: grid; gap: 10px; }
.lb-item { display: flex; gap: 16px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; }
.lb-info { flex: 1; display: grid; gap: 2px; font-size: .9rem; color: var(--muted); }
.lb-info strong { color: var(--navy); font-size: 1rem; }
.lb-info em { font-size: .85rem; }
.lb-edit { font-weight: 700; font-size: .85rem; }
.lb-form { position: sticky; top: 100px; }
.lb-delete { margin-left: auto; border-color: var(--fr-red); color: var(--fr-red); }
.lb-delete:hover { background: var(--fr-red); color: #fff; }

/* ---------- Inscriptions, résultats ---------- */
.reg-card { margin: 2.2em 0; background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: 26px 28px; border-top: 5px solid var(--yellow); scroll-margin-top: 100px; }
.reg-card h2 { margin-top: 0 !important; }
.reg-card h2::before { display: none; }
.reg-form .form-row ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.reg-form .form-row ul li { position: static; padding: 0; margin: 0; }
.reg-form .form-row ul li::before { display: none; }
.reg-form .form-row ul label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; padding: .5em .9em; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; }
.reg-form .form-row ul input, .reg-form input[type=checkbox] { width: auto !important; }
.alert--ok-strong { background: #e3f4e8; border-color: #1e7e34; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.results-table { width: 100%; border-collapse: collapse; margin: .5em 0 1.5em; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.results-table th, .results-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.results-table th { background: var(--navy); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.results-table .podium td:first-child b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.results-table .podium-1 td:first-child b { background: #f6c312; }
.results-table .podium-2 td:first-child b { background: #d6dbe4; }
.results-table .podium-3 td:first-child b { background: #e8b98a; }

.prose .stand-specs li { padding-left: .95em; margin: 0; }
.prose .stand-specs li::before { display: none; }
.reg-form .form-row > div:has(input[type=checkbox]) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.reg-form .form-row > div:has(input[type=checkbox]) > div label { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; padding: .55em 1em; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; background: var(--cream); margin: 0; }
.reg-form .form-row > div:has(input[type=checkbox]) > div label:has(input:checked) { border-color: var(--yellow); background: #fffbea; }
.reg-form input[type=checkbox] { width: 18px !important; height: 18px; accent-color: var(--yellow-dark); }
.reg-form .form-row:has(> input[type=checkbox]) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 12px; }
.reg-form .form-row:has(> input[type=checkbox]) label { font-weight: 500; margin: 0; }

/* ---------- Galerie photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1em 0 2em; }
.photo-grid-item { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 1; background: var(--sand); }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .35s; }
.photo-grid-item:hover img { transform: scale(1.06); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.album { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--navy); transition: transform .15s, box-shadow .15s; }
.album:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--navy); }
.album-cover { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover span { position: absolute; right: 10px; bottom: 10px; background: rgba(15,23,36,.8); color: #fff; font-size: .8rem; font-weight: 700; padding: .3em .8em; border-radius: 999px; }
.album-body { padding: 14px 18px 18px; display: grid; gap: 2px; }
.album-body time { font-size: .82rem; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,14,22,.94); display: grid; place-items: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: var(--yellow); color: var(--navy); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 26px; left: 24px; color: rgba(255,255,255,.7); font-size: .9rem; }

@media (max-width: 900px) {
  .lb-stats, .lb-layout { grid-template-columns: 1fr; }
  .lb-form { position: static; }
  .lightbox { padding: 60px 10px; }
}

/* ---------- Petites annonces ---------- */
.ad-hero { background: linear-gradient(135deg, #fff3c8 0%, var(--cream) 75%); padding: 40px 0 22px; border-bottom: 1px solid var(--border); }
.ad-hero-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ad-hero-head h1 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.ad-hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ad-search { display: grid; grid-template-columns: minmax(0, 1fr) 260px auto; gap: 10px; background: var(--white); padding: 10px; border-radius: 16px; box-shadow: var(--shadow-hover); }
.ad-search-q { display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--cream); border-radius: 10px; }
.ad-search-q .icon { color: var(--muted); flex-shrink: 0; }
.ad-search input, .ad-search select { border: 0; background: transparent; font: inherit; padding: .8em 0; width: 100%; color: var(--navy); outline: none; }
.ad-search select { background: var(--cream); border-radius: 10px; padding: .8em 1em; }
.ad-cats { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: thin; }
.ad-cats a { white-space: nowrap; padding: .45em 1em; border-radius: 999px; background: var(--white); border: 1px solid var(--border); text-decoration: none; color: var(--navy); font-size: .88rem; font-weight: 600; }
.ad-cats a.active, .ad-cats a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.ad-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.ad-filters { position: sticky; top: 100px; display: grid; gap: 14px; }
.ad-filters form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 8px; }
.ad-filters h3 { margin: 0 0 4px; font-size: 1rem; }
.ad-filters label { font-size: .82rem; font-weight: 700; color: var(--muted); margin-top: 6px; }
.ad-filters select, .ad-filters input { width: 100%; padding: .55em .8em; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; background: var(--cream); }
.ad-price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.ad-reset { font-size: .85rem; text-align: center; }
.ad-tabs { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; }
.ad-tabs a { padding: 12px 16px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .92rem; border-bottom: 1px solid var(--border); }
.ad-tabs a:last-child { border-bottom: 0; }
.ad-tabs a.active { background: #fffbea; box-shadow: inset 4px 0 0 var(--yellow); }
.ad-legal { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--navy-soft); background: var(--yellow-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.ad-legal .icon { flex-shrink: 0; color: var(--yellow-dark); margin-top: 1px; }
.ad-legal--box { font-size: .92rem; padding: 16px 18px; margin: 20px 0; }
.ad-legal--box div { display: grid; gap: 4px; }
.ad-results { font-weight: 700; margin: 0 0 14px; }

.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; }
.ad-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ad-card { position: relative; display: flex; flex-direction: column; }
.ad-card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.ad-card-img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.ad-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ad-card:hover .ad-card-img img { transform: scale(1.05); }
.ad-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.ad-count { position: absolute; left: 8px; bottom: 8px; background: rgba(15,23,36,.75); color: #fff; font-size: .75rem; font-weight: 700; padding: .25em .6em; border-radius: 6px; }
.ad-sold { position: absolute; left: 8px; top: 8px; background: var(--fr-red); color: #fff; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .3em .7em; border-radius: 6px; z-index: 2; }
.ad-sold--big { font-size: .95rem; left: 14px; top: 14px; }
.ad-hidden { background: var(--navy); }
.ad-reported { background: var(--yellow); color: var(--navy); }
.ad-moderation { border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 10px; }
.ad-moderation h3 { font-size: 1rem; margin: 0; }
.ad-moderation .muted { font-size: .85rem; margin: 0; }
.ad-moderation form { display: grid; gap: 8px; }
.ad-moderation input[type=text] { padding: .6em .8em; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; background: var(--cream); }
.ad-moderation .btn { width: 100%; justify-content: center; }
.ad-card.is-sold .ad-card-img img { filter: grayscale(.7); opacity: .75; }
.ad-fav { position: absolute; top: 8px; right: 8px; z-index: 2; }
.ad-fav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: #c9ced6; font-size: 1.15rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .15s, color .15s; }
.ad-fav button:hover { transform: scale(1.1); color: var(--fr-red); }
.ad-fav button.is-on { color: var(--fr-red); }
.ad-card-body { padding: 10px 2px 0; display: grid; gap: 2px; }
.ad-card-body h3 { margin: 0; font-family: var(--font); font-size: .98rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-price { margin: 2px 0; font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.ad-price small { font-weight: 600; font-size: .75rem; color: var(--muted); }
.ad-meta { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.ad-empty { grid-column: 1 / -1; }

.ad-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; margin-bottom: 40px; }
.ad-gallery { position: relative; display: grid; gap: 8px; }
.ad-gallery-main { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #111; }
.ad-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.ad-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ad-thumbs a { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sand); }
.ad-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.ad-thumbs a:hover img { opacity: .85; }
.ad-head { padding: 22px 0 6px; border-bottom: 1px solid var(--border); }
.ad-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.ad-price--big { font-size: 1.7rem; margin: 0 0 6px; }
.ad-section { padding: 18px 0; border-bottom: 1px solid var(--border); }
.ad-section h2 { font-size: 1.15rem; margin-bottom: 12px; }
.ad-criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.ad-criteria div { background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); }
.ad-criteria dt { font-size: .78rem; color: var(--muted); }
.ad-criteria dd { margin: 0; font-weight: 700; }
.ad-description { font-size: 1rem; line-height: 1.7; }
.ad-report button { background: none; border: 0; color: var(--muted); font-size: .85rem; cursor: pointer; padding: 10px 0; text-decoration: underline; }
.ad-side { position: sticky; top: 100px; display: grid; gap: 14px; background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: 22px; }
.ad-seller { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ad-seller div { display: grid; }
.ad-seller span:not(.ad-avatar) { font-size: .85rem; color: var(--muted); }
.ad-avatar { width: 52px; height: 52px; margin: 0; font-size: 1.1rem; }
.ad-owner { display: grid; gap: 10px; }
.ad-owner form, .ad-owner .btn, .ad-side > form .btn, .ad-contact .btn { width: 100%; justify-content: center; }
.ad-owner form button { width: 100%; justify-content: center; }
.ad-stats { margin: 0; font-weight: 600; }
.ad-contact h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ad-contact .muted { font-size: .8rem; margin: 10px 0 0; }
.ad-phone summary { list-style: none; width: 100%; justify-content: center; }
.ad-phone summary::-webkit-details-marker { display: none; }
.ad-phone a { display: block; text-align: center; font-size: 1.3rem; font-weight: 800; padding: 10px; }
.ad-fav-btn.is-on { color: var(--fr-red); border-color: var(--fr-red); }

.ad-form-wrap { max-width: 860px; }
.ad-form { display: grid; gap: 18px; }
.ad-form h2 { font-size: 1.2rem; }
.ad-form h2 small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.ad-errors { background: #fde4e6; padding: 12px 16px !important; border-radius: var(--radius-sm); }
.ad-photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ad-photo-slot { border: 2px dashed var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; align-content: start; background: var(--cream); }
.ad-photo-slot img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.ad-photo-label { font-weight: 700; font-size: .88rem; }
.ad-photo-slot input[type=file] { font-size: .8rem; width: 100%; }
.ad-charter { display: grid; gap: 12px; }
.ad-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.ad-mine { display: grid; gap: 12px; }
.ad-mine-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px 12px 12px; }
.ad-mine-img { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--sand); display: block; }
.ad-mine-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-mine-body { display: grid; gap: 2px; }
.ad-mine-body a { color: var(--navy); text-decoration: none; }
.ad-mine-body .muted { font-size: .82rem; }

@media (max-width: 1080px) {
  .ad-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ad-layout, .ad-detail { grid-template-columns: 1fr; }
  .ad-filters, .ad-side { position: static; }
  .ad-search { grid-template-columns: 1fr; }
  .ad-photo-slots { grid-template-columns: 1fr; }
  .ad-mine-item { grid-template-columns: 72px minmax(0, 1fr); }
  .ad-mine-img { width: 72px; height: 72px; }
}
@media (max-width: 560px) {
  .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .ad-criteria { grid-template-columns: 1fr; }
}

/* ---------- Boutique ---------- */
.shop-hero { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.shop-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-hero--photo .shop-toolbar .btn-outline { border-color: rgba(255,255,255,.8); color: #fff; }
.page-hero--photo .shop-toolbar .btn-outline:hover { background: #fff; color: var(--navy); }
.shop-cart-btn b { background: var(--yellow); color: var(--navy); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .78rem; padding: 0 6px; }
.shop-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.shop-banner { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius); background: #e3edf8; color: var(--navy); margin-bottom: 16px; }
.shop-banner .icon { flex-shrink: 0; color: var(--fr-blue); }
.shop-banner--closed { background: #fde4e6; }
.shop-banner--closed .icon { color: var(--fr-red); }
.shop-banner--info { background: var(--yellow-soft); }
.shop-banner--info .icon { color: var(--yellow-dark); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin-top: 10px; }
.shop-card { background: var(--white); border-radius: calc(var(--radius) + 2px); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.shop-card-img { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; border-bottom: 1px solid var(--border); }
.shop-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .35s; }
.shop-card:hover .shop-card-img img { transform: scale(1.04); }
.shop-card.is-out .shop-card-img img { opacity: .5; filter: grayscale(.6); }
.shop-tag { position: absolute; left: 12px; top: 12px; background: var(--yellow); color: var(--navy); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .35em .8em; border-radius: 999px; }
.shop-tag--out { background: var(--navy); color: #fff; }
.shop-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.shop-cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow-dark); }
.shop-card-body h3 { margin: 0; font-size: 1.05rem; }
.shop-card-body h3 a { color: var(--navy); text-decoration: none; }
.shop-card-body p { font-size: .88rem; color: var(--muted); margin: 0; }
.shop-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.shop-price { font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.shop-price--big { font-size: 2.1rem; margin: 4px 0 10px; }
.shop-stock { font-size: .8rem; font-weight: 700; color: #1e7e34; }
.shop-stock--low { color: #b8860b; }
.shop-card-btn { margin-top: 12px; justify-content: center; }
.shop-howto { margin-top: 40px; }

.shop-product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 30px; }
.shop-main-photo { background: #fff; border: 1px solid var(--border); }
.shop-main-photo img { object-fit: contain; }
.shop-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 4px; }
.shop-lead { font-size: 1.05rem; color: var(--navy-soft); }
.shop-availability { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 18px; }
.shop-buy { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 10px; margin-bottom: 16px; }
.shop-buy > label { font-weight: 700; font-size: .9rem; }
.shop-variants { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-variant { position: relative; cursor: pointer; }
.shop-variant input { position: absolute; opacity: 0; }
.shop-variant span { display: inline-grid; place-items: center; min-width: 54px; padding: .6em 1em; border: 2px solid var(--border); border-radius: 10px; font-weight: 700; background: var(--cream); }
.shop-variant input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--yellow); }
.shop-variant input:focus-visible + span { outline: 3px solid var(--yellow-soft); }
.shop-variant small { display: block; text-align: center; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.shop-variant.is-out span { text-decoration: line-through; opacity: .45; cursor: not-allowed; }
.shop-qty-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.shop-qty-row input { width: 80px; padding: .7em .8em; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; text-align: center; }
.shop-login { background: var(--yellow-soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.shop-login p { margin: 0 0 10px; font-weight: 600; }
.shop-pay { margin-top: 6px; }
.shop-description { max-width: 820px; margin-bottom: 30px; }
.shop-grid--small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shop-mini { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; text-decoration: none; color: var(--navy); display: grid; gap: 4px; }
.shop-mini img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.shop-mini span { font-weight: 600; font-size: .92rem; }

.shop-cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.shop-cart-lines { display: grid; gap: 12px; justify-items: start; }
.shop-line { width: 100%; display: grid; grid-template-columns: 84px minmax(0, 1fr) 80px 100px 36px; gap: 16px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.shop-line-img { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.shop-line-img img { width: 100%; height: 100%; object-fit: contain; }
.shop-line-info { display: grid; gap: 2px; font-size: .9rem; }
.shop-line-info a { color: var(--navy); text-decoration: none; }
.shop-line input { width: 70px; padding: .5em; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; text-align: center; }
.shop-line-total { text-align: right; }
.shop-remove { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.shop-remove:hover { background: #fde4e6; color: var(--fr-red); }
.shop-summary { position: sticky; top: 100px; background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 10px; border-top: 5px solid var(--yellow); }
.shop-summary h2 { font-size: 1.2rem; margin: 0; }
.shop-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--border); }
.shop-total strong { font-family: var(--font-title); font-size: 1.7rem; }
.shop-summary label { font-weight: 700; font-size: .85rem; }
.shop-summary textarea { width: 100%; padding: .6em .8em; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; background: var(--cream); }
.shop-summary .btn { justify-content: center; }
.shop-summary .muted { font-size: .82rem; margin: 0; }

.shop-order { max-width: 900px; }
.shop-order-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-order-head h1 { margin: 0; }
.shop-next { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: #e3f4e8; border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.shop-next > div { display: flex; gap: 14px; align-items: flex-start; max-width: 560px; }
.shop-next .icon { color: #1e7e34; flex-shrink: 0; }
.shop-next strong { display: block; }
.shop-table tfoot td { font-weight: 800; background: var(--cream); }
.shop-order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.shop-order-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; text-decoration: none; color: var(--navy); }
.shop-order-row:hover { box-shadow: var(--shadow-hover); color: var(--navy); }

@media (max-width: 900px) {
  .shop-product, .shop-cart { grid-template-columns: 1fr; }
  .shop-summary { position: static; }
  .shop-grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-line { grid-template-columns: 64px minmax(0, 1fr) 64px; }
  .shop-line-img { width: 64px; height: 64px; }
  .shop-line-total { grid-column: 2; text-align: left; }
  .shop-order-row { grid-template-columns: 1fr auto; }
}

/* ---------- Crédits photos ---------- */
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.credit { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.credit img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.credit figcaption { padding: 14px 18px 18px; display: grid; gap: 3px; font-size: .88rem; color: var(--muted); }
.credit strong { color: var(--navy); font-size: .92rem; }

/* ---------- Contenu de page ---------- */
.page-hero { background: linear-gradient(135deg, #fff3c8 0%, var(--cream) 70%); padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero p { color: var(--navy-soft); font-size: 1.1rem; max-width: 720px; margin: 0; }
.page-hero--photo {
  position: relative; color: #fff; border-bottom: 0; padding: 84px 0 64px;
  background: var(--navy) var(--hero-photo) center 40% / cover no-repeat;
}
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,36,.9) 0%, rgba(15,23,36,.72) 55%, rgba(15,23,36,.45) 100%);
}
.page-hero--photo .container { position: relative; }
.page-hero--photo h1 { color: #fff; }
.page-hero--photo p { color: rgba(255,255,255,.85); }
.page-hero--photo .breadcrumb, .page-hero--photo .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero--photo .meta { color: rgba(255,255,255,.75); }
.breadcrumb { font-size: .85rem; margin-bottom: 12px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.layout-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 48px; }
.prose { font-size: 1.05rem; max-width: 760px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose h2 { font-size: 1.45rem; margin: 1.8em 0 .6em; display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ""; width: 26px; height: 3px; background: var(--yellow); border-radius: 2px; flex-shrink: 0; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 1.4em 0 .5em; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.prose a { word-break: break-word; }
.sidebar-box { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar-box h3 { font-size: 1rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li a { display: block; padding: 6px 0; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--border); }
.sidebar-box li:last-child a { border: 0; }
.sidebar-box li a.active, .sidebar-box li a:hover { color: var(--yellow-dark); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters a { padding: .4em 1em; border-radius: 999px; background: var(--white); border: 1px solid var(--border); text-decoration: none; color: var(--navy); font-size: .9rem; font-weight: 600; }
.filters a.active, .filters a:hover { background: var(--yellow); border-color: var(--yellow); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: .5em 1em; border-radius: var(--radius-sm); background: var(--white); text-decoration: none; color: var(--navy); }
.pagination .current { background: var(--yellow); font-weight: 700; }

/* ---------- Documents ---------- */
.doc-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.doc-cats a { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 999px; background: var(--white);
  border: 1px solid var(--border); color: var(--navy); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm, 0 1px 3px rgba(27,42,65,.06)); }
.doc-cats a:hover { background: var(--yellow-soft); border-color: var(--yellow); }
.doc-cats span { background: var(--navy); color: #fff; border-radius: 999px; font-size: .75rem; padding: .1em .55em; }
.doc-group { scroll-margin-top: 110px; }
.doc-group { margin-bottom: 36px; }
.doc-list { display: grid; gap: 10px; }
.doc-item {
  display: flex; align-items: center; gap: 16px; background: var(--white); padding: 14px 18px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; color: var(--navy);
}
.doc-item:hover { color: var(--navy); box-shadow: var(--shadow-hover); }
.doc-ext {
  flex: 0 0 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--yellow-soft); font-weight: 800; font-size: .75rem;
}
.doc-item .doc-info { flex: 1; }
.doc-item .doc-info strong { display: block; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: .75em 1em; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; background: var(--cream); color: var(--navy);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--yellow); background: var(--white); box-shadow: 0 0 0 3px var(--yellow-soft); }
.form-row .helptext, .form-row .help { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-row .helptext ul { margin: 4px 0 0; padding-left: 18px; }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--fr-red); font-size: .85rem; }
.auth-wrap { max-width: 460px; margin: 0 auto; }

.messages { list-style: none; padding: 0; margin: 20px 0 0; }
.messages li { padding: 14px 18px; border-radius: var(--radius-sm); background: #e6f5ea; color: #1e6b37; font-weight: 600; }
.messages li.error { background: #fde4e6; color: var(--fr-red); }

/* ---------- Tableau de bord adhérent ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.dash-tile {
  background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--navy); border-left: 5px solid var(--yellow);
}
.dash-tile:hover { color: var(--navy); box-shadow: var(--shadow-hover); }
.dash-tile .icon { font-size: 1.8rem; }
.dash-tile.soon { opacity: .6; border-left-color: var(--border); }

/* ---------- Espace adhérent : statuts, fiche, badge, notifications ---------- */
.status { display: inline-block; padding: .2em .75em; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.status--ok { background: #e3f4e8; color: #1e6b37; }
.status--warning { background: var(--yellow-soft); color: #8a6500; }
.status--danger { background: #fde4e6; color: #b3000c; }
.status--pending { background: #e3edf8; color: var(--fr-blue); }
.status--none { background: #eef0f3; color: var(--muted); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 14px; border-left: 5px solid; }
.alert--warning { background: var(--yellow-soft); border-color: var(--yellow); }
.alert--danger, .alert--none { background: #fde4e6; border-color: var(--fr-red); }
.alert--pending { background: #e3edf8; border-color: var(--fr-blue); }
.alert a { font-weight: 700; margin-left: 6px; }

.member-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.member-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--yellow); flex-shrink: 0; }
.member-photo--empty { display: grid; place-items: center; background: var(--sand); font-size: 2.2rem; }
.sheet { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; align-items: center; }
.sheet dt { color: var(--muted); font-size: .9rem; }
.sheet dd { margin: 0; font-weight: 600; }
.check { display: flex !important; gap: 10px; align-items: center; font-weight: 500 !important; }
.check input { width: auto !important; }

.bell { position: relative; font-size: 1.25rem; text-decoration: none; padding: 4px; }
.bell span { position: absolute; top: -4px; right: -6px; background: var(--fr-red); color: #fff; font-size: .7rem;
  font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

.notif-list { display: grid; gap: 10px; }
.notif { display: flex; gap: 14px; align-items: flex-start; background: var(--white); padding: 14px 18px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); text-decoration: none; color: var(--navy); border-left: 4px solid transparent; }
.notif:hover { color: var(--navy); box-shadow: var(--shadow-hover); }
.notif--unread { border-left-color: var(--yellow); background: #fffdf5; }
.notif--unread strong::after { content: " •"; color: var(--fr-red); }
.notif__icon { font-size: 1.4rem; }
.notif__body { display: grid; gap: 2px; font-size: .93rem; }
.notif__body time { font-size: .8rem; }

.badge-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; margin-top: 12px; }
.member-badge { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-hover); max-width: 380px; width: 100%; }
.member-badge__top { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 16px 20px; }
.member-badge__top img { height: 44px; width: auto; border-radius: 3px; }
.member-badge__top strong { display: block; font-family: var(--font-title); text-transform: uppercase; letter-spacing: .02em; }
.member-badge__top span { font-size: .8rem; color: var(--yellow); }
.member-badge__body { display: flex; gap: 16px; padding: 20px; align-items: center; }
.member-badge__photo { width: 96px; height: 120px; border-radius: 10px; object-fit: cover; border: 3px solid var(--yellow); flex-shrink: 0; }
.member-badge__info { display: grid; gap: 3px; font-size: .9rem; }
.member-badge__name { font-size: 1.15rem; }
.member-badge__qr { padding: 0 48px 20px; }
.member-badge__qr svg { width: 100%; height: auto; display: block; }
.member-badge--inactive .member-badge__qr { opacity: .35; }

.verify { text-align: center; border-radius: var(--radius); padding: 40px 24px; color: #fff; }
.verify h1 { color: #fff; font-size: 2rem; margin: 10px 0; }
.verify p { margin: 0; font-size: 1.1rem; }
.verify--ok { background: #1e7e34; }
.verify--danger { background: #c0392b; }
.verify__icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: rgba(255,255,255,.2);
  display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; }

@media (max-width: 900px) {
  .badge-wrap { grid-template-columns: 1fr; justify-items: center; }
}
@media print {
  .site-header, .site-footer, .announce, .no-print, .messages { display: none !important; }
  body { background: #fff; }
  .member-badge { box-shadow: none; border: 1px solid #ccc; }
  .badge-wrap { display: block; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #d6dbe4; padding: 60px 0 0; margin-top: 0; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1em; }
.site-footer a { color: #d6dbe4; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.footer-bottom {
  margin-top: 48px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-flag { height: 4px; display: flex; }
.footer-flag span { flex: 1; }
.footer-flag span:nth-child(1) { background: var(--fr-blue); }
.footer-flag span:nth-child(2) { background: var(--white); }
.footer-flag span:nth-child(3) { background: var(--fr-red); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-weight: 700; transition: background .15s, color .15s; }
.socials a:hover { background: var(--yellow); color: var(--navy); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff !important; }
.footer-brand img { height: 72px; width: auto; border-radius: 6px; }
.footer-brand span { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--yellow); flex-shrink: 0; margin-top: 3px; }

.empty { text-align: center; padding: 40px; background: var(--white); border-radius: var(--radius); color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-card:nth-child(3n) { border-right: 0; }
  .quick-card:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .news-events { grid-template-columns: 1fr; }
  .agenda-panel { position: static; }
  .access-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-motto { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1280px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--border); padding: 12px 20px 20px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .nav-drop ul { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; background: none; }
}
@media (max-width: 900px) {
  .club-band__inner { grid-template-columns: 1fr; gap: 36px; }
  .stand, .feature__inner { grid-template-columns: 1fr; gap: 28px; }
  .stand:nth-child(even) .stand-media { order: 0; }
  .stand-photo-2, .feature__photo-2 { right: 10px !important; left: auto !important; bottom: -14px; width: 34%; }
  .stand { padding: 18px; }
  .hero::before { background: linear-gradient(180deg, rgba(15,23,36,.85), rgba(15,23,36,.7)); }
  .grid-3, .grid-2, .layout-sidebar, .dash-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .header-actions .btn-label { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .quick-card:nth-child(2n) { border-right: 0; }
  .quick-card { border-bottom: 1px solid var(--border); }
  .access-grid { grid-template-columns: 1fr; }
  .club-band { padding: 64px 0; }
  .club-band__stats strong { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { min-height: 480px; }
  .brand-name small { display: none; }
}

/* ---------- Finitions : mise en page, mouvements, accessibilité ---------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
#contenu { flex: 1 0 auto; }
::selection { background: var(--yellow); color: var(--navy); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

.site-header { transition: box-shadow .25s, background .25s; }
.site-header .header-inner { transition: min-height .25s; }
.site-header .brand img { transition: height .25s; }
.site-header.is-scrolled { background: rgba(255, 250, 240, .98); box-shadow: 0 6px 24px rgba(27, 42, 65, .10); }
.site-header.is-scrolled .header-inner { min-height: 62px; }
.site-header.is-scrolled .brand img { height: 48px; }

.reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.in { opacity: 1; translate: 0 0; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--navy); color: var(--yellow); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 22px rgba(27, 42, 65, .28); opacity: 0; translate: 0 12px; pointer-events: none;
  transition: opacity .25s, translate .25s, background .2s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: #24375a; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .to-top { display: none; } }

/* ---------- Contact ---------- */
.layout-sidebar:has(.contact-aside) { grid-template-columns: 1fr 340px; gap: 36px; }
@media (max-width: 1080px) { .layout-sidebar:has(.contact-aside) { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; border-top: 4px solid var(--yellow); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.contact-lines { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.contact-lines a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--yellow-soft); }
.contact-lines a:hover { border-color: var(--yellow); }
.contact-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow-soft); color: var(--navy); display: grid; place-items: center; }
.contact-card .btn svg { vertical-align: -3px; }
.open-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: #b3000c;
  background: #fde4e6; border-radius: 999px; padding: .3em .9em; margin: 0 0 14px; }
.open-state span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-state.is-open { color: #1e6b37; background: #e3f4e8; }
.open-state.is-open span { box-shadow: 0 0 0 0 rgba(30,107,55,.5); animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 7px rgba(30,107,55,0); } 100% { box-shadow: 0 0 0 0 rgba(30,107,55,0); } }
.contact-hours { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.contact-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); }
.contact-hours li + li { border-top: 1px solid var(--border); }
.contact-hours li span:first-child { font-weight: 600; }
.contact-hours li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.contact-hours li.is-closed { color: var(--muted); }
.contact-hours li.is-today { background: var(--yellow-soft); border-color: transparent; }
.contact-hours li.is-today + li { border-color: transparent; }

/* ---------- Actualités : article à la une ---------- */
.news-featured { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 32px; transition: box-shadow .3s; }
.news-featured:hover { box-shadow: var(--shadow-hover); }
.news-featured__media { position: relative; display: block; overflow: hidden; min-height: 340px; }
.news-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-featured:hover .news-featured__media img { transform: scale(1.04); }
.news-featured__flag { position: absolute; left: 18px; top: 18px; background: var(--navy); color: var(--yellow); font-weight: 800;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .45em 1em; border-radius: 999px; }
.news-featured__body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  border-left: 5px solid var(--yellow); }
.news-featured__body .meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.news-featured__body h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 12px; }
.news-featured__body h2 a { color: var(--navy); text-decoration: none; }
.news-featured__body h2 a:hover { color: var(--yellow-dark); }
.news-featured__body p { color: #43506a; margin: 0 0 22px; }
.news-featured__body .btn { align-self: flex-start; }
.card-tag--inline { position: static; }
@media (max-width: 900px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured__media { min-height: 230px; }
  .news-featured__body { padding: 26px 24px; border-left: 0; border-top: 5px solid var(--yellow); }
}

/* ---------- Agenda : lignes d'événement ---------- */
.event-item { position: relative; gap: 22px; padding: 14px 18px 14px 14px; overflow: hidden; align-items: stretch;
  transition: transform .2s, box-shadow .25s; border: 1px solid transparent; }
.event-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--yellow-soft); }
.event-date { flex: 0 0 82px; display: flex; flex-direction: column; justify-content: center; padding: 12px 4px;
  box-shadow: inset 0 -4px 0 rgba(27,42,65,.12); }
.event-date .day { font-size: 2rem; }
.event-date .year { display: block; font-size: .7rem; font-weight: 600; opacity: .7; margin-top: 2px; }
.event-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.event-info h3 { font-size: 1.12rem; margin: 0; }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.badge--green { background: #e3f4e8; color: #1e6b37; }
.event-countdown { font-size: .75rem; font-weight: 800; color: var(--navy); background: var(--yellow-soft); border-radius: 999px; padding: .25em .8em; }
.event-summary { margin: 0; color: #43506a; font-size: .93rem; }
.event-info .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .86rem; }
.event-info .meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-info .meta svg { color: var(--yellow-dark); }
.event-thumb { flex: 0 0 170px; border-radius: var(--radius-sm); background: center / cover no-repeat var(--cream); }
.event-go { align-self: center; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: var(--navy); transition: background .2s, transform .2s; }
.event-item:hover .event-go { background: var(--yellow); transform: translateX(3px); }
.event-list--past .event-item { filter: grayscale(.6); opacity: .8; }
.event-list--past .event-item:hover { filter: none; opacity: 1; }
.event-list--past .event-date { background: #e7e1d3; }
@media (max-width: 760px) {
  .event-thumb, .event-go { display: none; }
  .event-date { flex-basis: 68px; }
  .event-date .day { font-size: 1.6rem; }
}
/* La ligne d'événement s'adapte à la largeur de sa colonne (accueil adhérent, barre latérale…) */
.event-list { container-type: inline-size; }
@container (max-width: 640px) {
  .event-item { gap: 14px; padding: 12px; }
  .event-thumb, .event-go, .event-summary { display: none; }
  .event-date { flex-basis: 64px; padding: 8px 4px; }
  .event-date .day { font-size: 1.5rem; }
  .event-info h3 { font-size: 1rem; }
  .event-info .meta { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---------- Réservations des postes ---------- */
.page-hero--compact { padding: 40px 0 30px; }
.page-hero--compact h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3em; }
.container--wide { max-width: 1760px; }
.btn-success { background: #1e8a4c; color: #fff; }
.btn-success:hover { background: #18733f; color: #fff; }
.btn-danger { background: var(--fr-red, #e1000f); color: #fff; }
.btn-danger:hover { background: #b3000c; color: #fff; }

.resa-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 22px; padding: 6px; background: var(--white);
  border-radius: 14px; box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.resa-subnav a { display: inline-flex; align-items: center; gap: 8px; padding: .55em 1.05em; border-radius: 10px; color: var(--navy);
  font-weight: 600; text-decoration: none; font-size: .93rem; }
.resa-subnav a:hover { background: var(--cream); }
.resa-subnav a.active { background: var(--navy); color: #fff; }
.resa-subnav a.active svg { color: var(--yellow); }
.resa-subnav__admin { color: var(--muted) !important; }

.resa-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 14px;
  background: #e8f0fb; color: #173e74; border-left: 5px solid var(--fr-blue, #0055a4); }
.resa-banner svg { flex: none; margin-top: 2px; }
.resa-banner--warning { background: #fff5d6; color: #6b4d00; border-color: var(--yellow); }
.resa-banner--urgent { background: #fde4e6; color: #8a0009; border-color: var(--fr-red, #e1000f); }
.resa-banner a { color: inherit; font-weight: 700; }

.resa-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.resa-daynav { display: flex; align-items: center; gap: 12px; }
.resa-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--white);
  color: var(--navy); box-shadow: var(--shadow); transition: background .2s, transform .2s; flex: none; }
.resa-arrow svg { transform: rotate(180deg); }
.resa-arrow--next svg { transform: none; }
.resa-arrow:hover { background: var(--yellow); color: var(--navy); }
.resa-date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.resa-date h2 { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
.resa-today-tag { background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; padding: .3em .8em; border-radius: 999px; }
.resa-tools { display: flex; align-items: center; gap: 10px; }
.resa-datepick { font: inherit; padding: .5em .8em; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--navy); }
.resa-hint { color: var(--muted); font-size: .9rem; margin: 0 0 14px; line-height: 1.9; }
.resa-hint svg { vertical-align: -3px; margin-right: 4px; }
.resa-hint svg { color: var(--yellow-dark); }




.resa-empty { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 56px 24px; text-align: center; color: var(--muted); }
.resa-empty svg { color: var(--yellow-dark); }
.resa-empty h3 { color: var(--navy); margin: 12px 0 6px; }
.resa-empty--small { padding: 30px 24px; }

.resa-selbar, .resa-movebar { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 60; width: min(720px, calc(100% - 32px));
  background: var(--navy); color: #fff; border-radius: 18px; box-shadow: 0 18px 40px rgba(27,42,65,.35); border-bottom: 4px solid var(--yellow);
  animation: resa-up .25s ease; }
.resa-selbar[hidden], .resa-movebar[hidden] { display: none; }
.resa-movebar { background: #1d4ed8; border-color: #93c5fd; }
.resa-selbar__in { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 22px; flex-wrap: wrap; }
.resa-selbar__in > span:first-child { flex: 1; min-width: 180px; }
.resa-selbar__count b { color: var(--yellow); font-size: 1.25rem; margin-right: 4px; }
.resa-selbar .btn-outline, .resa-movebar .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
@keyframes resa-up { from { translate: -50% 30px; opacity: 0; } }
body.has-selbar .to-top, body.is-moving .to-top { bottom: 100px; }

.resa-modal { border: 0; border-radius: 18px; padding: 0; width: min(620px, calc(100% - 24px)); max-height: calc(100vh - 40px);
  box-shadow: 0 30px 70px rgba(27,42,65,.35); color: var(--navy); }
.resa-modal::backdrop { background: rgba(15,24,40,.55); backdrop-filter: blur(3px); }
.resa-modal[open] { animation: resa-pop .2s ease; }
@keyframes resa-pop { from { transform: scale(.96); opacity: 0; } }
#resa-modal-body { padding: 26px 28px 22px; }
#resa-modal-body h3 { margin: 0 0 12px; font-size: 1.3rem; padding-right: 30px; }
.resa-modal__close { position: absolute; top: 10px; right: 12px; margin: 0; }
.resa-modal__close button { border: 0; background: var(--cream); width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--navy); }
.resa-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.resa-modal__actions [data-close] { margin-right: auto; }
.resa-sel-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.resa-sel-list li { background: #eef4ff; border-left: 4px solid #2563eb; border-radius: 8px; padding: 7px 12px; font-size: .9rem; font-weight: 600; }
.resa-tabs { display: flex; gap: 4px; background: var(--cream); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.resa-tabs button { flex: 1; border: 0; background: transparent; padding: .6em; border-radius: 9px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.resa-tabs button.is-active { background: var(--white); box-shadow: var(--shadow); }
.resa-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.resa-input { width: 100%; font: inherit; padding: .65em .85em; border: 1px solid var(--border); border-radius: 10px; background: #fffdf7; color: var(--navy); }
.resa-input:focus { border-color: var(--yellow); outline: 3px solid var(--yellow-soft); }
.resa-results { display: grid; gap: 6px; margin: 8px 0; max-height: 220px; overflow: auto; }
.resa-result { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; font: inherit; background: var(--white);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; cursor: pointer; color: var(--navy); }
.resa-result:hover { border-color: var(--yellow); background: #fffbea; }
.resa-result span { font-size: .8rem; color: var(--muted); }
.resa-result.is-blocked span { color: #b3000c; }
.resa-guest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.resa-guest-grid label { font-size: .84rem; font-weight: 600; display: grid; gap: 4px; }
.resa-guest-grid .span-2 { grid-column: span 2; }
.resa-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-top: 14px; }
.resa-chosen { margin: 14px 0 0; background: #e3f4e8; color: #1e6b37; border-radius: 10px; padding: 10px 14px; }
.resa-chosen.is-blocked { background: #fde4e6; color: #8a0009; }
.resa-muted { color: var(--muted); font-size: .9rem; }
.resa-loading { text-align: center; color: var(--muted); padding: 30px 0; }
.resa-detail__head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.resa-detail__head h3 { margin: 0 0 6px !important; }
.resa-detail__head .badge { margin-right: 4px; }
.resa-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--yellow); }
.resa-avatar--empty { display: grid; place-items: center; background: var(--cream); color: var(--muted); }
.resa-dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; font-size: .93rem; }
.resa-dl dt { color: var(--muted); }
.resa-dl dd { margin: 0; font-weight: 500; }
.resa-note { display: flex; gap: 8px; align-items: center; background: #fff5d6; border-radius: 10px; padding: 10px 14px; margin: 16px 0 0; font-size: .9rem; }
.resa-toast { position: fixed; top: 96px; left: 50%; translate: -50% -20px; opacity: 0; z-index: 2000; background: #b3000c; color: #fff;
  padding: 12px 20px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-weight: 600; max-width: calc(100% - 32px);
  transition: opacity .25s, translate .25s; }
.resa-toast.show { opacity: 1; translate: -50% 0; }

.resa-week-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.resa-week { width: 100%; border-collapse: collapse; min-width: 760px; }
.resa-week th, .resa-week td { padding: 8px; text-align: center; border-bottom: 1px solid var(--border); }
.resa-week thead th { background: var(--navy); font-weight: 600; }
.resa-week thead th a { color: #fff; text-decoration: none; display: grid; line-height: 1.1; font-size: .78rem; text-transform: uppercase; }
.resa-week thead th a b { font-size: 1.4rem; font-family: var(--font-title); }
.resa-week thead th.is-today { background: var(--yellow); }
.resa-week thead th.is-today a { color: var(--navy); }
.resa-week thead th:first-child { text-align: left; color: #fff; }
.resa-week tbody th { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.resa-week th:first-child { width: 150px; }
.resa-week td { width: calc((100% - 150px) / 7); }
.resa-week-cell { position: relative; display: grid; gap: 1px; padding: 10px 6px 12px; border-radius: 10px; background: #f3fbf5; color: #1e6b37;
  text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.resa-week-cell:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(27,42,65,.12); color: #1e6b37; }
.resa-week-cell b { font-size: 1.2rem; }
.resa-week-cell span { font-size: .72rem; opacity: .85; }
.resa-week-cell i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--ratio); background: currentColor; opacity: .55; }
.resa-week-cell.is-busy { background: #fff5d6; color: #8a6400; }
.resa-week-cell.is-full { background: #fde4e6; color: #b3000c; }
.resa-week-cell.is-past { opacity: .5; }
.resa-week-closed { color: #b5ad9c; font-size: .82rem; }

.resa-mine-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.resa-mine-head h2, .resa-mine-title { margin: 0; font-size: 1.35rem; }
.resa-mine-title { margin-top: 40px; margin-bottom: 14px; }
.resa-mine-list { display: grid; gap: 12px; margin-bottom: 14px; }
.resa-mine-card { display: flex; gap: 18px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px 14px 14px; }
.resa-mine-card.is-present { border-left: 5px solid #1e8a4c; }
.resa-mine-info { flex: 1; min-width: 0; }
.resa-mine-info h3 { margin: 0 0 2px; font-size: 1.1rem; }
.resa-mine-info p { margin: 0 0 6px; color: #43506a; display: flex; align-items: center; gap: 8px; }
.resa-stand-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.resa-mine-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.resa-mine-actions form { margin: 0; }
.resa-history { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .92rem; }
.resa-history th, .resa-history td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.resa-history th { background: var(--cream); font-size: .8rem; text-transform: uppercase; color: var(--muted); }
.resa-status { font-weight: 700; font-size: .82rem; }
.resa-status--present { color: #1e6b37; }
.resa-status--cancelled { color: #9ca3af; }
.resa-status--noshow { color: #b3000c; }
.resa-status--booked { color: #2563eb; }

@media (max-width: 760px) {
  .resa-mine-card { flex-wrap: wrap; }
  .resa-mine-actions { width: 100%; justify-content: flex-start; }
  .resa-guest-grid { grid-template-columns: 1fr; }
  .resa-guest-grid .span-2 { grid-column: auto; }
  #resa-modal-body { padding: 22px 18px 18px; }
}
.dash-tile--accent { border-left-color: #1e8a4c; background: linear-gradient(135deg, #fff 60%, #f1faf3); }
body.has-selbar #contenu, body.is-moving #contenu { padding-bottom: 96px; }

/* Fenêtre de détail : actions sur une ligne, suppression à part */
.resa-modal { width: min(660px, calc(100% - 24px)); }
.resa-modal__actions { align-items: center; }
.resa-modal__actions .btn { padding: .65em 1.15em; font-size: .92rem; }
.resa-modal__actions .btn-danger { background: transparent; color: #b3000c; border: 2px solid #f3c2c7; }
.resa-modal__actions .btn-danger:hover { background: #fde4e6; border-color: #e1000f; color: #b3000c; }

/* Planning : reprise fidèle du visuel de Resalibre (cartes-poste, cadre coloré, pause hachurée) */
.rl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; margin-bottom: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,.05); }
.rl-left, .rl-right { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.rl-left h2 { margin: 0; font-family: var(--font); font-size: 1.25rem; font-weight: 700; color: #0f172a; }
.rl-nav { display: grid; place-items: center; width: 40px; height: 34px; border-radius: .5rem; background: #f1f5f9; color: #0f172a; }
.rl-nav:hover { background: #e2e8f0; color: #0f172a; }
.rl-date { font: inherit; font-size: .88rem; padding: .35rem .6rem; border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; color: #0f172a; }
.rl-today { font-size: .88rem; color: #2563eb; text-decoration: none; }
.rl-today:hover { text-decoration: underline; color: #1d4ed8; }
.rl-btn { display: inline-flex; align-items: center; gap: 6px; padding: .4rem .8rem; border-radius: .5rem; background: #f1f5f9; color: #0f172a;
  font-size: .88rem; text-decoration: none; }
.rl-btn:hover { background: #e2e8f0; color: #0f172a; }
.rl-refresh { font-size: .75rem; color: #64748b; }

.resa-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: #64748b; margin-bottom: 12px; }
.resa-legend span { display: inline-flex; align-items: center; gap: 6px; }
.resa-legend .lg { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.08); }
.lg-free { background: #f0fdf4; }
.lg-selected { background: #3b82f6; }
.lg-mine { background: #fde68a; box-shadow: inset 0 0 0 2px #f59e0b; }
.lg-booked { background: #fef3c7; }
.lg-present { background: #16a34a; }
.lg-fdo { background: #dbeafe; }

.resa-board { --cell-h: 88px; display: grid; gap: 1.5rem; overflow-x: auto; padding-bottom: 6px; }
.resa-row { display: grid; grid-template-columns: repeat(var(--cols), minmax(90px, 1fr)); gap: .4rem; align-items: stretch;
  min-width: calc(var(--cols) * 94px); }
.resa-post { display: flex; flex-direction: column; background: #fff; border-radius: .5rem; overflow: hidden; min-width: 0;
  border: 2px solid var(--stand-border, color-mix(in srgb, var(--stand-color, #94a3b8) 65%, #000)); }
.resa-post__head { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding: .4rem .25rem;
  text-align: center; line-height: 1.15; color: #1e293b; border-bottom: 1px solid #e2e8f0; }
.resa-post__head strong { display: block; font-size: 1rem; font-weight: 700; font-family: var(--font); }
.resa-post__head small, .resa-post__head span { display: block; font-size: .65rem; font-weight: 500; opacity: .8; margin-top: .1rem;
  overflow-wrap: anywhere; }
.resa-post__head span { text-transform: uppercase; }
.resa-half { display: grid; grid-template-rows: repeat(var(--n), 1fr); flex-shrink: 0; }
.resa-half--am { height: calc(var(--am) * var(--cell-h)); }
.resa-half--pm { height: calc(var(--pm) * var(--cell-h)); }
.resa-pause { height: .85rem; flex-shrink: 0; border-top: 1px solid #f59e0b; border-bottom: 1px solid #f59e0b;
  background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 5px, #fde68a 5px, #fde68a 10px); }

.resa-cell { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 0;
  padding: .3rem .25rem; border: 0; border-top: 1px solid #e2e8f0; border-radius: 0; background: #f0fdf4; font: inherit;
  font-size: .7rem; line-height: 1.1; color: #475569; overflow: hidden; word-break: break-word; position: relative;
  transition: background .15s; user-select: none; }
.resa-half .resa-cell:first-child { border-top: 0; }
button.resa-cell { cursor: pointer; }
.resa-cell__time { display: block; font-size: .7rem; font-weight: 600; line-height: 1.1; margin-bottom: .15rem; }
.resa-cell__name { display: block; font-size: .78rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.resa-cell__past { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-style: italic; }
.resa-cell__ext { display: inline-block; font-size: .55rem; font-weight: 700; background: #7c3aed; color: #fff; padding: .05rem .3rem;
  border-radius: .25rem; margin-top: .15rem; letter-spacing: .05em; }
.resa-cell.is-free { background: #f0fdf4; color: #166534; }
.resa-cell.is-free:hover { background: #dcfce7; }
.resa-cell.is-past { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }
.resa-cell.is-selected, .resa-cell.is-selected:hover { background: #3b82f6; color: #fff; font-weight: 700; box-shadow: inset 0 0 0 3px #1d4ed8; }
.resa-cell.is-booked { background: #fef3c7; color: #854d0e; font-weight: 600; }
.resa-cell.is-present { background: #16a34a; color: #fff; font-weight: 700; }
.resa-cell.is-fdo { background: #dbeafe; color: #1e40af; font-weight: 600; }
.resa-cell.is-mine { background: #fde68a; color: #713f12; box-shadow: inset 0 0 0 3px #f59e0b; }
.resa-cell.is-mine.is-present { background: #16a34a; color: #fff; box-shadow: inset 0 0 0 3px #0f7a35; }
button.resa-cell:not(.is-free):hover { filter: brightness(.97); }
.is-readonly .resa-cell.is-free { cursor: not-allowed; }
.is-readonly .resa-cell.is-free:hover { background: #f0fdf4; }
body.is-moving .resa-cell.is-free { animation: resa-blink 1.4s infinite; }
@keyframes resa-blink { 50% { background: #dbeafe; } }
@media (max-width: 760px) {
  .resa-board { --cell-h: 64px; }
  .resa-row { grid-template-columns: repeat(var(--cols), 88px); min-width: 0; }
  .rl-left h2 { font-size: 1.05rem; }
}

/* Mode accueil (équipe du club) : planning plein écran, barre de dates toujours visible */
.resa-page--compact { padding-top: 14px; }
.resa-page--compact .resa-subnav { margin-bottom: 12px; }
.resa-page--compact .rl-toolbar { position: sticky; top: 64px; z-index: 30; padding: .7rem 1rem; }

/* Fenêtre de confirmation (tcfConfirm) */
.tcf-confirm { border: 0; border-radius: 18px; padding: 28px 28px 22px; width: min(440px, calc(100% - 32px)); text-align: center;
  color: var(--navy); box-shadow: 0 30px 70px rgba(27,42,65,.4); }
.tcf-confirm::backdrop { background: rgba(15,24,40,.55); backdrop-filter: blur(3px); }
.tcf-confirm[open] { animation: resa-pop .18s ease; }
.tcf-confirm__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.6rem/1 var(--font-title); background: var(--yellow-soft); color: var(--yellow-dark); }
.tcf-confirm.is-danger .tcf-confirm__icon { background: #fde4e6; color: #c0000d; }
.tcf-confirm h3 { margin: 0 0 8px; font-size: 1.2rem; }
.tcf-confirm p { margin: 0; color: #43506a; }
.tcf-confirm__actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.tcf-confirm__actions .btn { min-width: 130px; justify-content: center; }
.btn-danger-solid { background: #e1000f; color: #fff; }
.btn-danger-solid:hover { background: #b3000c; color: #fff; }

/* Message d'erreur affiché dans la fenêtre ouverte */
.resa-modal-error { display: flex; gap: 10px; align-items: flex-start; background: #fde4e6; color: #8a0009; border: 1px solid #f5b5bb;
  border-left: 5px solid #e1000f; border-radius: 10px; padding: 10px 14px; margin: 14px 0 0; font-weight: 600; font-size: .92rem;
  animation: resa-shake .35s ease; }
.resa-modal-error::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #e1000f; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
@keyframes resa-shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.resa-setup { text-align: left; max-width: 640px; margin: 18px auto 20px; background: #eef4ff; color: #173e74; border-left: 5px solid #2563eb;
  border-radius: 10px; padding: 14px 18px; font-size: .92rem; }
.resa-setup ol { margin: 8px 0 0; padding-left: 20px; }
.resa-setup li + li { margin-top: 4px; }
.resa-setup a { color: #1d4ed8; font-weight: 600; }

.resa-mine-head p { margin: 2px 0 0; }

/* ---------- Historique des réservations (administrateurs) ---------- */
.hist-period { background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .82rem; padding: .3em .8em; border-radius: 999px; }
.hist-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: .75rem; padding: 14px 18px; margin-bottom: 16px; }
.hist-mode { display: flex; background: #f1f5f9; border-radius: 10px; padding: 3px; }
.hist-mode input { position: absolute; opacity: 0; pointer-events: none; }
.hist-mode span { display: block; padding: .45em .9em; border-radius: 8px; font-size: .88rem; font-weight: 600; color: #475569; cursor: pointer; }
.hist-mode input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.hist-mode input:focus-visible + span { outline: 3px solid var(--yellow); }
.hist-field { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.hist-field select, .hist-field input { font: inherit; font-size: .92rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: #0f172a;
  padding: .45rem .7rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; min-width: 150px; }
.hist-field--grow { flex: 1; min-width: 220px; }
.hist-field--grow input { width: 100%; }

.hist-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.hist-kpis div { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; padding: 14px 16px; border-top: 4px solid var(--navy); }
.hist-kpis b { display: block; font: 800 1.7rem/1.1 var(--font-title); color: var(--navy); }
.hist-kpis span { font-size: .82rem; color: #64748b; }
.hist-kpis .is-green { border-top-color: #16a34a; } .hist-kpis .is-green b { color: #15803d; }
.hist-kpis .is-blue { border-top-color: #2563eb; } .hist-kpis .is-blue b { color: #1d4ed8; }
.hist-kpis .is-red { border-top-color: #e1000f; } .hist-kpis .is-red b { color: #b3000c; }
.hist-kpis .is-grey { border-top-color: #94a3b8; } .hist-kpis .is-grey b { color: #64748b; }

.hist-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; overflow-x: auto; }
.hist-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hist-table th, .hist-table td { padding: 9px 12px; border-bottom: 1px solid #eef2f7; text-align: left; white-space: nowrap; }
.hist-table thead th { background: #f8fafc; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: #475569; position: sticky; top: 0; }
.hist-table thead a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.hist-table thead a:hover { color: var(--navy); }
.hist-table thead a.is-sorted { color: var(--navy); }
.hist-table thead a.is-sorted::after { content: "▼"; font-size: .6rem; color: var(--yellow-dark); }
.hist-table tbody tr:hover { background: #fffbea; }
.hist-table tbody tr.is-current { background: #fff3c4; }
.hist-name a { font-weight: 700; color: var(--navy); text-decoration: none; }
.hist-name a:hover { text-decoration: underline; }
.hist-name small { display: block; color: #94a3b8; font-size: .75rem; }
.hist-num { text-align: center !important; font-variant-numeric: tabular-nums; }
.hist-summary thead .hist-num a { justify-content: center; }
td.is-zero { color: #cbd5e1; }
td.is-green { color: #15803d; font-weight: 800; }
td.is-red { color: #b3000c; font-weight: 700; }
.hist-table tfoot th { background: var(--navy); color: #fff; font-size: .88rem; border: 0; }
.hist-detail { background: #fff; border: 2px solid var(--yellow); border-radius: .75rem; margin-bottom: 18px; overflow: hidden; }
.hist-detail header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px;
  background: linear-gradient(90deg, #fff6d6, #fff); border-bottom: 1px solid #f1e6bf; }
.hist-detail h3 { margin: 0; font-size: 1.15rem; }
.hist-detail header p { margin: 2px 0 0; color: #64748b; font-size: .86rem; }
.hist-detail__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hist-detail .table-wrap { overflow-x: auto; }
.hist-detail > p { padding: 16px 18px; margin: 0; }
@media (max-width: 900px) { .hist-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pages d'erreur (404, 403…) ---------- */
.error-page { position: relative; min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 70px 0 90px;
  background: linear-gradient(160deg, rgba(27,42,65,.88), rgba(27,42,65,.62)), var(--error-photo) center / cover no-repeat; }
.error-card { position: relative; max-width: 620px; margin: 0 auto; text-align: center; background: var(--white); border-radius: 22px;
  padding: 40px 38px 40px; box-shadow: 0 30px 70px rgba(0,0,0,.35); border-top: 6px solid var(--yellow); }
.error-code { display: flex; align-items: center; justify-content: center; gap: .08em; margin-bottom: 8px;
  font: 800 clamp(4.5rem, 12vw, 7.5rem)/1 var(--font-title); color: var(--navy); letter-spacing: -.02em; }
.error-target { width: .86em; height: .86em; filter: drop-shadow(0 8px 16px rgba(27,42,65,.22));
  animation: error-pop .7s cubic-bezier(.2,.9,.3,1.25); }
.error-impact { transform-origin: 96px 31px; animation: error-hit .35s .55s both ease-out; }
@keyframes error-pop { from { transform: scale(.5) rotate(-40deg); opacity: 0; } }
@keyframes error-hit { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.35); } }
.error-card h1 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 6px 0 10px; }
.error-card p { color: #43506a; margin: 0 auto 18px; max-width: 470px; }
.error-tri { width: 110px; height: 4px; margin: 0 auto 26px; border-radius: 4px;
  background: linear-gradient(90deg, var(--fr-blue) 33%, #e5e7eb 33% 66%, var(--fr-red) 66%); }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
