/* Intersociétés de Farvagny : présentation uniquement (aucune logique ici).
   Couleur de marque : bleu-violet du logo. Police : Montserrat variable, auto-hébergée. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-950: #16143d;
  --brand-900: #1e1c50;
  --brand-800: #28256a;
  --brand-700: #332f82;
  --brand: #3f3b94;
  --brand-400: #7471c4;
  --brand-200: #d3d3f1;
  --brand-100: #e8e8f8;
  --brand-50: #f4f4fc;

  --ink: #17172b;
  --ink-2: #4a4b62;
  --line: #e3e3ee;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;

  --amber-bg: #fff4d9;
  --amber-ink: #7d4b00;
  --red-bg: #fdeaea;
  --red-ink: #a01d1d;
  --orange-bg: #ffecdf;
  --orange-ink: #9a3b00;
  --green-bg: #e6f6ec;
  --green-ink: #17663a;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow: 0 1px 2px rgb(22 20 61 / .06), 0 8px 24px -8px rgb(22 20 61 / .14);
  --wrap: 1160px;
  --gutter: max(16px, env(safe-area-inset-left));
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --dur: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { color: var(--brand-700); text-decoration-thickness: 2px; } }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
p { margin: 0 0 1em; }
h1, h2, h3, .h3 { line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--brand-950); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3, .h3 { font-size: 1.15rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; }
small { font-size: .85em; }
table { border-collapse: collapse; }
.muted { color: var(--ink-2); font-size: .95rem; }
.nowrap { white-space: nowrap; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.eyebrow-light { color: var(--brand-200); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 62ch; line-height: 1.6; }
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform var(--dur) var(--ease-out), background-color var(--dur), color var(--dur);
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .btn:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; text-decoration: none; }
  .btn:hover .icon { transform: translateX(2px); }
}
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand-200); }
@media (hover: hover) { .btn-ghost:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-400); } }
.btn-light { background: #fff; color: var(--brand-800); border-color: #fff; }
@media (hover: hover) { .btn-light:hover { background: var(--brand-100); color: var(--brand-900); border-color: var(--brand-100); } }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; }
.link-arrow .icon { transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) { .link-arrow:hover { text-decoration: underline; } .link-arrow:hover .icon:last-child { transform: translateX(3px); } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner { display: flex; padding-block: 8px; align-items: center; justify-content: space-between; gap: 16px; min-height: 100px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-900); }
.brand img { width: auto; height: 80px; }
@media (max-width: 1099px) { .brand img { height: 64px; } }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink);
  font-size: .95rem; font-weight: 550; transition: background-color var(--dur), color var(--dur);
}
@media (hover: hover) { .nav a:not(.btn):hover { background: var(--brand-50); color: var(--brand-800); } }
.nav a[aria-current="page"]:not(.btn) { color: var(--brand); background: var(--brand-50); font-weight: 650; }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--brand-900); font: inherit; font-weight: 650; cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1099px) {
  .header-inner { min-height: 84px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -16px rgb(22 20 61 / .25);
    max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 2px; }
  .nav a:not(.btn) { padding: 12px 14px; border-radius: var(--radius-s); font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Accueil ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 10%, var(--brand-100), transparent 70%),
    radial-gradient(700px 380px at 0% 100%, var(--brand-50), transparent 70%),
    #fff;
  padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero-visual {
  background: #fff; border-radius: var(--radius-l); padding: clamp(16px, 3vw, 32px);
  box-shadow: var(--shadow); border: 1px solid var(--line); transform: rotate(1.2deg);
}
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 5vw, 56px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats li { padding: 20px 24px; color: var(--ink-2); font-size: .95rem; line-height: 1.35; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 2rem; font-weight: 750; color: var(--brand); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 4px; }
@media (max-width: 859px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; } /* logo déjà dans l'en-tête */
}
@media (max-width: 599px) {
  .stats { grid-template-columns: 1fr; }
  .stats li { padding: 14px 20px; display: flex; align-items: baseline; gap: 12px; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }
  .stats strong { display: inline; font-size: 1.5rem; margin: 0; min-width: 2ch; }
}

/* ---------- Bandeau des pages intérieures ---------- */
.page-hero {
  background: radial-gradient(800px 300px at 90% 0%, var(--brand-100), transparent 70%), var(--brand-50);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
}
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { margin: 0; }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: var(--ink); transition: transform var(--dur) var(--ease-out), border-color var(--dur); }
.card-link::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--shadow);
  opacity: 0; transition: opacity var(--dur) var(--ease-out); pointer-events: none;
}
.card-link p { color: var(--ink-2); margin-bottom: 0; padding-right: 28px; }
.card-more { position: absolute; right: 22px; bottom: 22px; color: var(--brand); transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) {
  .card-link:hover { transform: translateY(-3px); border-color: var(--brand-200); color: var(--ink); text-decoration: none; }
  .card-link:hover::after { opacity: 1; }
  .card-link:hover .card-more { transform: translateX(3px); }
}
.card-link:active { transform: scale(.99); }
.card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 13px; background: var(--brand-50); color: var(--brand); margin-bottom: 16px;
}
.card-icon .icon { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.split-top { margin-top: clamp(32px, 5vw, 48px); gap: clamp(20px, 4vw, 40px); }
@media (max-width: 759px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--brand-50); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.panel .card-icon { background: #fff; }
.panel-brand { background: var(--brand-800); color: var(--brand-100); }
.panel-brand h2, .panel-brand .h3 { color: #fff; }
.panel-brand .card-icon { background: rgb(255 255 255 / .12); color: #fff; }

.band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px;
  background: var(--brand-800); color: var(--brand-100); border-radius: var(--radius-l);
  padding: clamp(28px, 5vw, 56px);
  background-image: radial-gradient(600px 300px at 100% 0%, rgb(116 113 196 / .45), transparent 70%);
}
.band h2 { color: #fff; }
.band p { max-width: 60ch; }
.band p:last-child { margin-bottom: 0; }
.band-soft { background: var(--brand-50); background-image: none; color: var(--ink); }
.band-soft h2, .band-soft .h3 { color: var(--brand-950); }
@media (max-width: 759px) { .band { grid-template-columns: 1fr; } }

/* ---------- Manifestations ---------- */
.date-tile {
  display: grid; justify-items: center; align-content: center; width: 64px; min-height: 70px; flex: none;
  border-radius: 14px; background: var(--brand-50); color: var(--brand-900); line-height: 1; padding: 8px 4px;
  font-variant-numeric: tabular-nums;
}
.dt-wd { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.dt-d { font-size: 1.6rem; font-weight: 750; letter-spacing: -.03em; margin: 4px 0 3px; }
.dt-m { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.event-list { display: grid; }
.event { display: flex; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event:first-child { padding-top: 0; }
.event-list > .event:last-child { border-bottom: 0; }
.event-body p { margin: 0; }
.event-date { font-size: .9rem; color: var(--ink-2); }
.event-date time::first-letter { text-transform: uppercase; }
.event-title { font-weight: 650; font-size: 1.08rem; color: var(--brand-950); line-height: 1.35; margin-top: 2px !important; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; color: var(--ink-2); margin-top: 4px !important; }
.event-meta .icon { margin-right: 4px; color: var(--brand-400); }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.tag {
  display: inline-block; vertical-align: .1em; padding: 2px 9px; border-radius: 999px; margin-right: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--brand-100); color: var(--brand-800);
}
.tag-loto { background: var(--amber-bg); color: var(--amber-ink); }
.event[data-past] { opacity: .55; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background-color var(--dur), border-color var(--dur), color var(--dur);
  touch-action: manipulation;
}
@media (hover: hover) { .chip:hover { border-color: var(--brand-400); color: var(--brand-800); text-decoration: none; } }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.months { display: grid; gap: clamp(28px, 4vw, 44px); }
.month-title {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand);
  padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid var(--brand-100);
}
.empty-state, .empty-card { background: var(--bg-soft); border: 1px dashed var(--brand-200); border-radius: var(--radius); padding: 24px; color: var(--ink-2); }
.empty-card { display: flex; gap: 14px; align-items: center; }
.empty-card .icon { width: 28px; height: 28px; color: var(--brand-400); }
.empty-card p { margin: 0; }

/* ---------- Sociétés ---------- */
.search { position: relative; flex: 1 1 280px; max-width: 380px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.search input[type="search"] { padding-left: 46px; border-radius: 999px; }
.cat + .cat { margin-top: clamp(40px, 5vw, 56px); }
.cat-title { display: flex; align-items: center; gap: 14px; }
.cat-title .card-icon { margin: 0; }
.count { font-size: .85rem; font-weight: 700; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 2px 10px; }
.soc h3 { font-size: 1.08rem; }
.soc-person { color: var(--ink-2); margin-bottom: 14px; }
.soc-contact { display: grid; gap: 6px; font-size: .95rem; }
.soc-contact a, .person-contact a, .contact-line a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 550; min-height: 32px; max-width: 100%;
}
.soc-contact a span, .person-contact a span { overflow-wrap: anywhere; }
.soc-contact .icon, .person-contact .icon, .contact-line .icon { color: var(--brand-400); }
@media (hover: hover) { .soc-contact a:hover, .person-contact a:hover { text-decoration: underline; } }
.contact-line { display: flex; align-items: center; gap: 8px; }

/* ---------- L'Intersociétés ---------- */
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px 32px; counter-reset: but; }
.goals li { display: flex; gap: 16px; align-items: flex-start; padding: 8px 0; }
.goals .card-icon { margin: 0; }
.goals p { margin: 0; color: var(--ink-2); }
.goals strong { display: block; color: var(--brand-950); font-size: 1.05rem; margin-bottom: 2px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-bottom: 24px; }
.person { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.avatar {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--brand-100); color: var(--brand-800); font-weight: 750; letter-spacing: .02em;
}
.person p, .contact p, .contact-list p { margin: 0; }
.person-name { font-weight: 700; color: var(--brand-950); }
.person-role { color: var(--ink-2); font-size: .93rem; margin-bottom: 6px !important; line-height: 1.45; }
.contact-list { display: grid; gap: 18px; margin-top: 24px; }
.contact-list .person-role { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 2px !important; }

/* ---------- Lotos ---------- */
.highlight {
  display: flex; gap: 22px; align-items: center; margin-bottom: clamp(40px, 5vw, 56px);
  background: var(--brand-800); color: var(--brand-100); border-radius: var(--radius-l); padding: clamp(20px, 3.5vw, 32px);
  background-image: radial-gradient(500px 240px at 100% 0%, rgb(116 113 196 / .5), transparent 70%);
}
.highlight .date-tile { background: #fff; width: 76px; min-height: 84px; }
.highlight .dt-d { font-size: 2rem; }
.highlight .eyebrow { color: var(--brand-200); margin-bottom: 6px; }
.highlight p { margin: 0; }
.highlight-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 6px !important; }
.highlight strong { color: #fff; }
.loto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-bottom: 20px; }
.loto { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff; }
.loto p { margin: 0; }
.loto .date-tile { width: 58px; min-height: 62px; }
.loto .dt-d { font-size: 1.35rem; }
.loto-soc { font-weight: 650; color: var(--brand-950); line-height: 1.3; }
.loto-date { font-size: .85rem; color: var(--ink-2); }
.loto-date time::first-letter { text-transform: uppercase; }
.loto.is-past { background: var(--bg-soft); }
.loto.is-past .date-tile, .loto.is-past .loto-soc { opacity: .55; }
.loto.is-next { border: 2px solid var(--brand); padding: 11px; }
.loto.is-next .date-tile { background: var(--brand); }
.loto.is-next .date-tile * { color: #fff; }

.legend { display: flex; gap: 8px; flex-wrap: wrap; }
.lot { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin: 2px 8px 2px 0; }
.lot-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.lot-kind { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .78rem; font-weight: 650; }
.lot-viande { background: var(--red-bg); color: var(--red-ink); }
.lot-fromage { background: var(--amber-bg); color: var(--amber-ink); }
.lot-migros { background: var(--orange-bg); color: var(--orange-ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.table { width: 100%; font-size: .96rem; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--bg-soft); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.is-past td { color: var(--ink-2); opacity: .6; }
.lots-table th[scope="row"] { width: 64px; text-align: center; font-weight: 750; color: var(--brand); font-variant-numeric: tabular-nums; }
.lots-table tr.is-big { background: #fffaf0; }
.lots-table tr.bingo td { background: var(--brand-800); color: #fff; text-align: center; font-weight: 550; padding-block: 14px; }

/* ---------- Organiser un loto ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 56px); background: var(--brand-50); border-color: var(--brand-100); }
.calc .h3 { display: flex; align-items: center; gap: 10px; }
.calc p { margin: 0; color: var(--ink-2); }
.calc-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 759px) { .calc, .calc-fields { grid-template-columns: 1fr; } }
.timeline { position: relative; display: grid; gap: 14px; margin-bottom: 36px; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 12px; bottom: 12px; width: 2px; background: var(--brand-100); }
.timeline li { position: relative; display: flex; gap: 18px; align-items: flex-start; }
.tl-badge {
  flex: none; display: grid; place-items: center; width: 64px; height: 36px; border-radius: 999px; z-index: 1;
  background: var(--brand); color: #fff; font-weight: 750; font-size: .9rem; font-variant-numeric: tabular-nums;
  border: 3px solid #fff;
}
.tl-body { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.tl-body p, .checks p { margin: 0; }
.tl-title { font-weight: 700; color: var(--brand-950); }
.tl-who { color: var(--ink-2); font-size: .95rem; }
.tl-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px !important; font-size: .9rem; color: var(--ink-2); }
.tl-when .icon { color: var(--brand-400); }
.tl-due:empty { display: none; }
.tl-due { padding: 2px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green-ink); font-size: .85rem; }
.tl-due.is-soon { background: var(--amber-bg); color: var(--amber-ink); }
.tl-due.is-late { background: var(--red-bg); color: var(--red-ink); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-bottom: 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.checks > li > .icon { color: var(--green-ink); margin-top: 3px; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--amber-bg); color: var(--amber-ink); border-radius: var(--radius); padding: 16px 20px; margin: 0; }
.notice .icon { margin-top: 3px; }
.free-dates { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.free-dates .date-tile { background: #fff; border: 1.5px dashed var(--brand-200); }
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.contact { padding: 18px 20px; }
.docs { display: grid; gap: 10px; margin-bottom: 20px; max-width: 640px; }
.docs a {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-weight: 650; transition: border-color var(--dur), background-color var(--dur);
}
.docs a > .icon:first-child { color: var(--brand); width: 26px; height: 26px; }
.docs a span { flex: 1; display: flex; flex-direction: column; }
.docs small { font-weight: 500; color: var(--ink-2); }
.docs .icon-end { color: var(--brand-400); }
@media (hover: hover) { .docs a:hover { border-color: var(--brand-200); background: var(--brand-50); text-decoration: none; color: var(--ink); } }

/* ---------- Location ---------- */
.price-card .h3 { margin-bottom: 14px; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; margin: 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.1rem; color: var(--brand-950); font-variant-numeric: tabular-nums; }
.price span { font-size: .9rem; font-weight: 550; color: var(--ink-2); }
.price-card .muted { margin: 12px 0 0 !important; font-size: .9rem; }
.price-main { border: 2px solid var(--brand); }
.mt-l { margin-top: clamp(32px, 5vw, 48px); }
.table-narrow { max-width: 640px; }
.tarifs-table th[scope="row"] { font-weight: 600; color: var(--brand-950); }
.tarifs-table td.num { font-weight: 700; color: var(--brand-950); }
.degressif { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.degressif strong { color: var(--brand-950); }
.included { margin-top: 28px; background: var(--brand-50); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.included h3 { margin-bottom: 12px; }
.included-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px 24px; }
.included-list li { display: flex; gap: 10px; align-items: flex-start; }
.included-list .icon { color: var(--green-ink); margin-top: 4px; }
.price-on-request { font-size: 1.1rem; font-weight: 700; color: var(--brand); padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }

/* ---------- Formulaires ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 859px) { .form-layout { grid-template-columns: 1fr; } }
.form-intro h2 { margin-bottom: .5em; }
.form { box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 599px) { .fields { grid-template-columns: 1fr; } }
label, legend { font-weight: 650; font-size: .95rem; color: var(--brand-950); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 8px; }
.req { color: var(--red-ink); }
.opt { font-weight: 500; color: var(--ink-2); font-size: .85rem; }
input:not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #d4d4e2; border-radius: var(--radius-s);
  transition: border-color var(--dur), box-shadow var(--dur);
}
textarea { resize: vertical; min-height: 110px; }
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233f3b94' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
[aria-invalid="true"] { border-color: var(--red-ink) !important; }
.checkgroup { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; cursor: pointer;
  border: 1.5px solid #d4d4e2; border-radius: 999px; font-weight: 550;
}
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-800); }
.form-note { font-size: .85rem; color: var(--ink-2); }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--green-ink); background: var(--green-bg); padding: 12px 16px; border-radius: var(--radius-s); }
.form-status.is-err { color: var(--red-ink); background: var(--red-bg); padding: 12px 16px; border-radius: var(--radius-s); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brand-950); color: #c9c9e6; font-size: .95rem; padding-bottom: env(safe-area-inset-bottom); }
.site-footer a { color: #fff; text-decoration: none; }
@media (hover: hover) { .site-footer a:hover { color: #fff; text-decoration: underline; } }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 56px 40px; }
.footer-brand img { width: 160px; height: auto; margin-bottom: 18px; background: #fff; border-radius: 12px; padding: 10px 14px; box-sizing: content-box; }
.footer-brand strong { color: #fff; }
.footer-title { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-200); margin-bottom: 14px; }
.site-footer li + li { margin-top: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgb(255 255 255 / .12); padding-block: 20px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 859px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media print {
  .site-header, .site-footer, .toolbar, .calc, .form, .band, .actions { display: none !important; }
  .section { padding-block: 16px; }
}
