/* ==========================================================================
   Les A'Cros de la Tech — feuille de style
   Charte issue du logo, du flyer et du synopsis :
   bande 4 couleurs (bleu / vert / jaune / orange), fond papier, encre marine,
   titres condensés, étiquettes en chasse fixe.
   ========================================================================== */

/* --- Polices auto-hébergées (aucun appel à un service externe) ------------ */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/anton-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/space-mono-700.woff2') format('woff2'); }

/* --- Variables ------------------------------------------------------------ */
:root {
  --ink: #111827;
  --ink-2: #1d2939;
  --paper: #f5f5f2;
  --paper-2: #ebebe5;
  --white: #ffffff;
  --line: #d8d8cf;
  --muted: #566070;

  --blue: #1f4fd8;
  --blue-dark: #173ea9;
  --green: #0f9d84;
  --yellow: #f2b512;
  --orange: #ee6338;

  /* variantes lisibles en texte sur fond clair */
  --green-txt: #0a7563;
  --yellow-txt: #8a6400;
  --orange-txt: #c2461f;

  --f-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --f-sans: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'Space Mono', 'Consolas', 'Courier New', monospace;

  --wrap: 1180px;
  --radius: 4px;
}

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 32px 20px 72px; }
.main-full { padding: 0; }

/* --- Titres --------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .5em; }
h1 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: .005em; color: var(--ink);
  margin-bottom: .45em;
}
h2 {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--f-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .015em;
  font-size: 1.2rem; line-height: 1.2; margin: 2.4rem 0 1.1rem; color: var(--ink);
}
h2::after { content: ''; flex: 1; height: 2px; background: var(--ink); min-width: 24px; }
h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }

.eyebrow {
  display: block; margin: 0 0 .9rem;
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.eyebrow.green { color: var(--green-txt); }
.eyebrow.orange { color: var(--orange-txt); }
.eyebrow.yellow { color: var(--yellow-txt); }

/* --- Bande 4 couleurs (signature du flyer) -------------------------------- */
.stripe { display: flex; height: 8px; }
.stripe i { flex: 1; display: block; }
.stripe i:nth-child(1) { background: var(--blue); }
.stripe i:nth-child(2) { background: var(--green); }
.stripe i:nth-child(3) { background: var(--yellow); }
.stripe i:nth-child(4) { background: var(--orange); }

/* --- En-tête -------------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 56px; height: 56px; display: block; }
.brand-name { display: flex; flex-direction: column; font-family: var(--f-display); font-size: 1.5rem; line-height: .95; letter-spacing: .01em; }
.brand-name span:last-child { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a:not(.btn) {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); padding: 10px 11px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.nav a:not(.btn):hover { border-bottom-color: var(--line); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); font-weight: 700; }
.nav-account { display: flex; align-items: center; gap: 6px; margin-left: 14px; padding-left: 14px; border-left: 2px solid var(--ink); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; background: transparent; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer; padding: 0; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ''; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle-bars::after { left: 0; right: 0; top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Barre espace membre */
.member-bar { background: var(--ink); color: #d5dbe5; }
.member-row { display: flex; align-items: center; gap: 12px 22px; min-height: 46px; }
.member-label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); white-space: nowrap; }
.member-nav { display: flex; flex-wrap: wrap; gap: 0 4px; flex: 1; min-width: 0; }
.member-nav::-webkit-scrollbar { display: none; }
.member-nav a { color: #e8ecf2; text-decoration: none; font-size: .9rem; font-weight: 500; padding: 12px 10px; white-space: nowrap; border-bottom: 3px solid transparent; }
.member-nav a:hover { color: #fff; border-bottom-color: #4b5668; }
.member-nav a[aria-current="page"] { border-bottom-color: var(--yellow); color: #fff; }
.member-nav a.member-admin { color: #ffb59f; }
.member-user { display: flex; align-items: center; gap: 12px; font-size: .88rem; white-space: nowrap; }
.member-pseudo { color: #fff; font-weight: 500; }
.member-logout { color: #b9c2d0; }
.member-logout:hover { color: #fff; }

/* --- Boutons -------------------------------------------------------------- */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-sans); font-weight: 700; font-size: .95rem; line-height: 1.1; letter-spacing: .01em;
  background: var(--blue); color: #fff; text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: .8em 1.3em; margin-top: 14px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s;
}
.btn:hover { background: var(--blue-dark); color: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled], .btn:disabled { background: #a8afba; color: #eef0f3; cursor: not-allowed; box-shadow: none; transform: none; border-color: #8c94a1; }
.btn.btn-secondary, button.btn.btn-secondary { background: var(--white); color: var(--ink); }
.btn.btn-secondary:hover, button.btn.btn-secondary:hover { background: var(--paper-2); color: var(--ink); }
.btn.btn-danger, button.btn.btn-danger { background: var(--orange); color: #fff; }
.btn.btn-danger:hover, button.btn.btn-danger:hover { background: #d34f28; }
.btn.btn-yellow, button.btn.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn.btn-yellow:hover { background: #ffc72e; color: var(--ink); }
.btn-lg { font-size: 1.05rem; padding: .95em 1.6em; }
.btn-xs { padding: .4em .8em; font-size: .8rem; margin-top: 0; box-shadow: 2px 2px 0 var(--ink); }
.btn-xs:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn-sm { padding: .55em 1em; font-size: .82rem; margin-top: 0; box-shadow: 2px 2px 0 var(--ink); }
.btn-sm:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn-small { background: var(--blue); color: #fff; padding: 5px 10px; border-radius: var(--radius); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn-row .btn { margin-top: 6px; }
.arr { flex-shrink: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.on-dark .btn-secondary { background: transparent; color: #fff; border-color: #fff; box-shadow: 3px 3px 0 var(--yellow); }
.on-dark .btn-secondary:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ==========================================================================
   PAGES PUBLIQUES
   ========================================================================== */

/* --- Accueil : hero ------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 2px solid var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(17,24,39,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,39,.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(3.6rem, 9.4vw, 7.6rem); line-height: .88; letter-spacing: -.005em; margin: 0 0 .3em; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--blue); }
.hero-lead { font-size: 1.2rem; max-width: 36rem; color: var(--ink-2); margin-bottom: 1.4em; }
.hero-lead strong { color: var(--ink); }
.hero-badge { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; }
.hero-badge img { position: relative; z-index: 2; width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 24px rgba(17,24,39,.22)); }
.hero-badge::before {
  content: ''; position: absolute; inset: -14px; border-radius: 50%; z-index: 1;
  border: 2px dashed var(--ink); opacity: .55;
}
.hero-badge::after {
  content: ''; position: absolute; z-index: 0; width: 46%; aspect-ratio: 1; right: -8%; bottom: -6%; border-radius: 50%; background: var(--yellow);
}
.hero-dots { position: absolute; z-index: 3; display: flex; gap: 6px; left: 2%; top: 4%; }
.hero-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.hero-dots i:nth-child(1) { background: var(--blue); } .hero-dots i:nth-child(2) { background: var(--green); }
.hero-dots i:nth-child(3) { background: var(--yellow); } .hero-dots i:nth-child(4) { background: var(--orange); }

/* --- Bandeau d'infos pratiques ------------------------------------------- */
.facts { background: var(--ink); color: #e6eaf0; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 28px 28px 30px 0; border-right: 1px solid #2e3a4d; }
.fact + .fact { padding-left: 28px; }
.fact:last-child { border-right: 0; }
.fact-label { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: .7rem; }
.fact-big { font-family: var(--f-display); font-size: 2.1rem; line-height: 1; text-transform: uppercase; color: #fff; margin: 0 0 .35rem; }
.fact-sub { margin: 0; font-size: .95rem; color: #b7c0cf; }
.fact-sub strong { color: #fff; font-weight: 500; }
.tag-live { display: inline-block; margin-left: .5rem; padding: 2px 7px; background: var(--green); color: #fff; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }

/* --- Sections ------------------------------------------------------------- */
.section { padding: 80px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #dfe4ec; }
.section.dark h2 { color: #fff; }
.section.dark h2::after { background: #3a475b; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; flex: 1 1 300px; }
.section-head p { margin: 0; max-width: 30rem; color: var(--muted); }
.sec-num { font-family: var(--f-mono); font-weight: 700; font-size: .8rem; background: var(--ink); color: var(--yellow); padding: 3px 7px; letter-spacing: .05em; }
.section.dark .sec-num { background: var(--yellow); color: var(--ink); }

.page-hero { background: var(--paper); border-bottom: 2px solid var(--ink); padding: 56px 0 44px;
  background-image: linear-gradient(rgba(17,24,39,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(17,24,39,.04) 1px, transparent 1px); background-size: 32px 32px; }
.page-hero h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); margin-bottom: .25em; }
.page-hero p { max-width: 42rem; font-size: 1.15rem; color: var(--ink-2); margin: 0; }

/* --- Familles d'animations ------------------------------------------------ */
.fam-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fam {
  --c: var(--blue); --ct: var(--blue);
  position: relative; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--c);
  padding: 22px 20px 24px; display: flex; flex-direction: column;
}
.fam:nth-child(4n+2) { --c: var(--green); --ct: var(--green-txt); }
.fam:nth-child(4n+3) { --c: var(--orange); --ct: var(--orange-txt); }
.fam:nth-child(4n+4) { --c: var(--yellow); --ct: var(--yellow-txt); }
.fam .ico { color: var(--c); margin-bottom: 14px; width: 34px; height: 34px; }
.fam:nth-child(4n+4) .ico { color: #d69800; }
.fam-tag { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ct); margin: 0 0 .5rem; }
.fam h3 { font-size: 1.12rem; margin-bottom: .55rem; }
.fam p { font-size: .95rem; color: #3b4453; margin: 0; }
.fam-more { margin-top: 28px; padding: 20px 24px; border: 1.5px dashed #9aa1ad; background: transparent; font-size: 1rem; }
.fam-more strong { font-weight: 700; }

/* Version détaillée (page Animations) */
.fam-list { display: grid; gap: 0; }
.fam-row { --c: var(--blue); --ct: var(--blue); display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px; padding: 32px 0; border-top: 2px solid var(--ink); align-items: start; }
.fam-row:last-child { border-bottom: 2px solid var(--ink); }
.fam-row:nth-child(4n+2) { --c: var(--green); --ct: var(--green-txt); }
.fam-row:nth-child(4n+3) { --c: var(--orange); --ct: var(--orange-txt); }
.fam-row:nth-child(4n+4) { --c: var(--yellow); --ct: var(--yellow-txt); }
.fam-row .fam-icon { width: 72px; height: 72px; display: grid; place-items: center; background: var(--c); color: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.fam-row:nth-child(4n+4) .fam-icon { color: var(--ink); }
.fam-row .ico { width: 34px; height: 34px; }
.fam-row h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1.05; text-transform: uppercase; margin: 0; }
.fam-row .fam-tag { margin-bottom: .6rem; }
.fam-row p { margin: 0; font-size: 1.05rem; color: #2b3442; max-width: 40rem; }

/* --- Séances / adhésion --------------------------------------------------- */
.seances-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid #3a475b; }
.seance-col { padding: 30px; border-right: 2px solid #3a475b; }
.seance-col:last-child { border-right: 0; }
.seance-col h3 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1.2rem; font-weight: 700; }
.jour { margin-bottom: 1.3rem; }
.jour:last-child { margin-bottom: 0; }
.jour b { display: block; font-size: 1.35rem; font-weight: 700; color: inherit; }
.jour span { font-family: var(--f-mono); font-size: .95rem; color: var(--muted); display: block; }
.seance-col .jour b { color: #fff; }
.seance-col .jour span { color: #b7c0cf; }
.prix { font-family: var(--f-display); font-size: 4.2rem; line-height: 1; color: #fff; margin: 0 0 .4rem; }
.prix small { font-size: 1.6rem; color: var(--yellow); margin-left: 4px; }
.seance-col p { color: #b7c0cf; margin: 0 0 .8rem; font-size: .98rem; }
.seance-col p strong { color: #fff; font-weight: 500; }

.prochaines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prochaines li { display: flex; align-items: center; gap: 14px; }
.date-chip { width: 54px; flex-shrink: 0; background: var(--yellow); color: var(--ink); text-align: center; padding: 6px 0 5px; border: 2px solid #fff; line-height: 1; }
.date-chip b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; }
.date-chip span { font-family: var(--f-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.prochaines .txt { font-size: .98rem; color: #fff; line-height: 1.3; }
.prochaines .txt small { display: block; color: #b7c0cf; font-family: var(--f-mono); font-size: .8rem; }

.special-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.special { --c: var(--green); border-left: 5px solid var(--c); background: var(--white); padding: 18px 20px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.special.blue { --c: var(--blue); } .special.yellow { --c: var(--yellow); }
.special h3 { font-size: 1.05rem; margin-bottom: .35rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.special p { margin: 0; font-size: .95rem; color: #3b4453; }
.pill { display: inline-block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 400; }
.pill.live { background: var(--green); border-color: var(--green); color: #fff; }

/* --- Organisation (3 collèges) ------------------------------------------- */
.colleges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.college { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--blue); padding: 24px 22px 26px; }
.college:nth-child(2) { border-top-color: var(--green); }
.college:nth-child(3) { border-top-color: var(--yellow); }
.college .eyebrow { margin-bottom: .4rem; }
.college:nth-child(2) .eyebrow { color: var(--green-txt); }
.college:nth-child(3) .eyebrow { color: var(--yellow-txt); }
.college h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; }
.college p { font-size: .98rem; color: #3b4453; margin: 0; }

/* --- Animateurs ----------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 22px 0 0; border-top: 2px solid var(--ink); }
.member-mono { width: 64px; height: 64px; display: grid; place-items: center; font-family: var(--f-display); font-size: 1.7rem; background: var(--blue); color: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.member:nth-child(2) .member-mono { background: var(--green); }
.member:nth-child(3) .member-mono { background: var(--yellow); color: var(--ink); }
.member h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.member p { margin: 0; font-size: .95rem; color: #3b4453; }
.section.dark .member { border-top-color: #3a475b; }
.section.dark .member p { color: #b7c0cf; }
.section.dark .member h3 { color: #fff; }
.section.dark .member-mono { border-color: #fff; box-shadow: 3px 3px 0 #000; }

/* --- Événements ----------------------------------------------------------- */
.events { display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 16px 22px 16px 16px; }
.event.past { opacity: .6; background: transparent; }
.event-date { background: var(--ink); color: #fff; text-align: center; padding: 12px 0 10px; line-height: 1; }
.event-date b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.7rem; }
.event-date span { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-top: 6px; }
.event-date small { display: block; font-family: var(--f-mono); font-size: .68rem; color: #9aa6b8; margin-top: 3px; }
.event h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.event .meta { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin: 0 0 .5rem; }
.event p { margin: 0; font-size: .98rem; color: #333c4a; }
.events-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.events-mini .event { grid-template-columns: 76px 1fr; gap: 16px; padding: 14px; align-items: start; }
.events-mini .event-date b { font-size: 2.1rem; }
.events-mini .event h3 { font-size: 1.05rem; }

/* --- Actualités ----------------------------------------------------------- */
.posts { display: grid; gap: 0; }
.post { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding: 30px 0; border-top: 2px solid var(--ink); }
.post:last-child { border-bottom: 2px solid var(--ink); }
.post-date { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-date b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; color: var(--ink); letter-spacing: 0; line-height: 1; margin-bottom: .2rem; }
.post h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.post p { margin: 0 0 .8em; max-width: 46rem; color: #262f3d; }
.post .by { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.empty { padding: 32px; border: 2px dashed #a9afba; text-align: center; color: var(--muted); background: transparent; }

/* --- Bandeau final / contact --------------------------------------------- */
.cta { background: var(--blue); color: #fff; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px 20px; }
.cta-grid > :only-child { grid-column: 1 / -1; }
.cta h2 { display: block; margin: 0 0 .6rem; color: #fff; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.04; letter-spacing: .005em; }
.cta h2::after { display: none; }
.cta h2 em { font-style: normal; color: var(--yellow); }
.cta p { font-size: 1.15rem; max-width: 34rem; margin: 0 0 1rem; color: #e3e9fb; }
.cta .btn { border-color: var(--ink); }
.coord-card { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 24px 26px; }
.coord-card h3 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1rem; color: var(--blue); }
.coord { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: baseline; }
.coord dt { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.coord dd { margin: 0; overflow-wrap: anywhere; }
.coord-card a { color: var(--blue); font-weight: 700; }
.cta .coord-card p, .coord-empty { margin: 0; color: var(--ink); font-size: 1rem; max-width: none; }

/* --- Étapes (Nous rejoindre) --------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); padding: 26px 22px 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--f-display); font-size: 3.2rem; line-height: 1; color: var(--blue); margin-bottom: .5rem; }
.steps li:nth-child(2)::before { color: var(--green); } .steps li:nth-child(3)::before { color: var(--orange); }
.steps h3 { margin-bottom: .4rem; }
.steps p { margin: 0; font-size: .98rem; color: #3b4453; }
.tarifs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tarif { background: var(--white); border: 2px solid var(--ink); padding: 26px 26px 24px; position: relative; box-shadow: 5px 5px 0 var(--ink); }
.tarif.b { box-shadow: 5px 5px 0 var(--green); }
.tarif .eyebrow { margin-bottom: .3rem; }
.tarif.b .eyebrow { color: var(--green-txt); }
.tarif .prix { color: var(--blue); font-size: 4rem; }
.tarif.b .prix { color: var(--green-txt); }
.tarif .prix small { color: var(--muted); }
.tarif p { margin: 0; color: #3b4453; }
.callout { border-left: 5px solid var(--yellow); background: var(--white); padding: 20px 24px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.callout p { margin: 0; }
.callout p + p { margin-top: .6em; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }

/* ==========================================================================
   CONNEXION / INSCRIPTION
   ========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; border: 2px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 var(--ink); max-width: 1000px; margin: 12px auto 0; }
.auth-side { background: var(--ink); color: #dfe4ec; padding: 40px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.auth-side img { width: 150px; height: 150px; display: block; }
.auth-side h2 { display: block; margin: 0 0 .6rem; font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: .95; color: #fff; text-transform: uppercase; }
.auth-side h2::after { display: none; }
.auth-side h2 em { font-style: normal; color: var(--yellow); }
.auth-side p { margin: 0; color: #b7c0cf; font-size: 1rem; }
.auth-side ul { margin: 0; padding: 0; list-style: none; font-size: .95rem; color: #c8d0dc; display: grid; gap: 8px; }
.auth-side li { padding-left: 22px; position: relative; }
.auth-side li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--yellow); }
.auth-main { padding: 40px 40px 36px; }
.auth-main h1 { font-size: 2.6rem; }
.auth-main form { margin: 0; }
.auth-main form.card { border: 0; padding: 0; background: transparent; margin: 0; max-width: none !important; border-left: 0; }
.auth-alt { margin-top: 28px; padding-top: 22px; border-top: 2px dashed var(--line); }
.auth-alt h2 { font-size: 1rem; margin: 0 0 .8rem; }
.auth-alt h2::after { display: none; }
.auth-foot { margin: 20px 0 0; font-size: .98rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }

/* ==========================================================================
   ESPACE MEMBRE / ADMINISTRATION (composants historiques conservés)
   ========================================================================== */
.back-link { display: inline-block; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; margin-bottom: 14px; color: var(--muted); }
.back-link:hover { color: var(--blue); }
.section-membre .container > h1:first-of-type, .section-admin .container > h1:first-of-type { padding-bottom: .35em; border-bottom: 2px solid var(--ink); margin-bottom: .7em; }

.alert { padding: 13px 18px; margin: 0 0 18px; border: 1px solid; border-left-width: 6px; background: var(--white); font-size: .98rem; }
.alert-success { border-color: var(--green); color: #075243; background: #e6f6f2; }
.alert-danger { border-color: var(--orange); color: #7c2410; background: #fdece6; }
.alert-info { border-color: var(--blue); color: #14337e; background: #e9eefc; }
.flash-wrap { padding-top: 22px; }
.container > .alert { }

.card { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--blue); padding: 22px 24px; margin-bottom: 20px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-bottom: 20px; }
.card-grid > .card { margin-bottom: 0; }
.card-grid > .card:nth-child(4n+2) { border-left-color: var(--green); }
.card-grid > .card:nth-child(4n+3) { border-left-color: var(--orange); }
.card-grid > .card:nth-child(4n+4) { border-left-color: var(--yellow); }
.card-grid > .card > strong { font-size: 1.12rem; display: block; margin-bottom: .4rem; }

table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); margin-bottom: 20px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .94rem; vertical-align: middle; }
th { background: var(--ink); color: #fff; font-family: var(--f-mono); font-weight: 400; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: #fafaf7; }

form label { display: block; margin-top: 14px; font-weight: 700; font-size: .9rem; }
form label:first-child { margin-top: 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=url], textarea, select {
  width: 100%; padding: 11px 12px; margin-top: 5px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 2px solid #b9bdc6; border-radius: var(--radius);
  transition: border-color .12s, box-shadow .12s;
}
input:hover, textarea:hover, select:hover { border-color: #8d94a1; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,79,216,.22); }
textarea { min-height: 120px; resize: vertical; }
input[type=checkbox] { accent-color: var(--blue); width: 1.05rem; height: 1.05rem; vertical-align: middle; margin-right: .4rem; }
label:has(> input[type=checkbox]) { font-weight: 500; }
.field-hint { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }
.inline-form { display: inline; }
td .btn-xs, td form { margin: 2px 2px 2px 0; }

.tag-list { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.tag { display: inline-block; background: var(--paper-2); border: 1px solid var(--line); padding: 1px 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; }
.tag-cat { display: inline-block; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .3rem; }
.badge { display: inline-block; padding: 2px 9px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; border-radius: 2px; line-height: 1.5; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-box { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--blue); padding: 18px 20px; }
.stat-box:nth-child(4n+2) { border-top-color: var(--green); }
.stat-box:nth-child(4n+3) { border-top-color: var(--yellow); }
.stat-box:nth-child(4n+4) { border-top-color: var(--orange); }
.stat-box .num { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.stat-box .label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }

.chat-box { background: var(--white); border: 1px solid var(--line); padding: 8px 20px; max-height: 520px; overflow-y: auto; margin-bottom: 16px; }
.chat-msg { padding: 14px 0; border-bottom: 1px dashed #c9c9c0; }
.chat-msg:last-child { border-bottom: 0; }
.chat-msg .meta, .meta { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); margin-top: 4px; }
.chat-msg.meta { margin: 0 0 1em; padding: 0; border: 0; font-family: var(--f-sans); font-size: .92rem; color: var(--muted); }
.card > p.chat-msg.meta, .post .chat-msg.meta { margin-top: 10px; }

.perm-matrix td, .perm-matrix th { text-align: center; }
.perm-matrix td:first-child, .perm-matrix th:first-child { text-align: left; }

code { background: var(--paper-2); border: 1px solid var(--line); padding: 2px 7px; font-family: var(--f-mono); font-weight: 700; letter-spacing: .08em; font-size: .9em; }
details { background: var(--white); border: 1px solid var(--line); padding: 10px 14px; }
summary { cursor: pointer; font-weight: 700; }
hr { border: 0; border-top: 2px solid var(--line); margin: 2rem 0; }

/* --- Pied de page --------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b7c0cf; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-top: 56px; padding-bottom: 44px; }
.footer-id { display: flex; align-items: center; gap: 20px; }
.footer-logo { width: 96px; height: 96px; flex-shrink: 0; }
.footer-name { margin: 0 0 .4rem; font-family: var(--f-display); font-size: 1.9rem; line-height: .98; text-transform: uppercase; color: #fff; }
.footer-name span:last-child { color: #6d94ff; }
.footer-name span { display: block; }
.footer-tag { margin: 0; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-h { display: block; margin: 0 0 .8rem; font-family: var(--f-mono); font-weight: 400; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.footer-h::after { display: none; }
.footer-col a { color: #dfe4ec; text-decoration: none; width: fit-content; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .coord dt { color: #8f9bb0; }
.footer-col .coord a { color: #fff; }
.footer-muted { margin: 0; font-size: .95rem; line-height: 1.7; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: .85rem; position: relative; }
.footer-legal::before { content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: #2b374a; }
.footer-legal a { color: #b7c0cf; }
.stripe-foot { height: 8px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  .member-label { display: none; }
}
@media (max-width: 1080px) {
  .fam-grid { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.btn) { padding: 10px 8px; font-size: .72rem; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink); padding: 8px 20px 20px; box-shadow: 0 14px 20px rgba(17,24,39,.15);
  }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: .82rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--blue); }
  .nav-account { margin: 12px 0 0; padding: 0; border: 0; gap: 12px; }
  .nav-account a:not(.btn) { border: 0; }
  .nav-account .btn { flex: 1; justify-content: center; padding: .8em 1em; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 56px; }
  .hero-badge { width: min(64%, 270px); order: -1; justify-self: start; margin: 12px 0 0 14px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 22px 0; border-right: 0; border-bottom: 1px solid #2e3a4d; }
  .fact:last-child { border-bottom: 0; }
  .seances-grid { grid-template-columns: 1fr; }
  .seance-col { border-right: 0; border-bottom: 2px solid #3a475b; padding: 26px 22px; }
  .seance-col:last-child { border-bottom: 0; }
  .colleges, .team, .special-grid, .steps, .events-mini { grid-template-columns: 1fr; }
  .team { gap: 28px; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .fam-row { grid-template-columns: 72px 1fr; gap: 18px; padding: 26px 0; }
  .fam-row > :nth-child(3) { grid-column: 1 / -1; }
  .fam-row .fam-icon { width: 64px; height: 64px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 30px 26px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .auth-side ul { display: none; }
  .auth-side img { width: 96px; height: 96px; }
  .auth-side h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .section { padding: 56px 0; }
  .header-row { min-height: 72px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-name { font-size: 1.3rem; }
  .fam-grid, .tarifs { grid-template-columns: 1fr; }
  .event { grid-template-columns: 76px 1fr; gap: 16px; padding: 14px; }
  .event > :last-child:not(:nth-child(2)) { grid-column: 1 / -1; }
  .event-date b { font-size: 2.2rem; }
  .post { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .post-date b { display: inline; margin-right: .5rem; font-size: 1.8rem; }
  .auth-main { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .member-row { gap: 0 12px; flex-wrap: wrap; padding-top: 8px; }
  .member-label { display: block; order: 1; }
  .member-user { order: 2; margin-left: auto; }
  .member-nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-box { padding: 14px 14px; }
  .stat-box .num { font-size: 2rem; }
  .member-user .member-pseudo, .member-user .badge { display: none; }
  .container { padding: 24px 16px 56px; }
  .wrap { padding: 0 16px; }
  .cta-grid { padding: 40px 16px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  td .btn-xs { margin-bottom: 4px; }
  .footer-legal { flex-direction: column; }
}

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

/* ==========================================================================
   INVENTAIRE & PARC, CALENDRIER, DONS, MISES A DISPOSITION
   ========================================================================== */
input[type=search], input[type=time], input[type=file] {
  width: 100%; padding: 11px 12px; margin-top: 5px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 2px solid #b9bdc6; border-radius: var(--radius);
}
input[type=file] { padding: 9px 10px; background: var(--paper); border-style: dashed; cursor: pointer; }
input[type=search]:focus, input[type=time]:focus, input[type=file]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,79,216,.22); }
[hidden] { display: none !important; }

.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.page-title-row h1 { margin-bottom: .15em; }
.lead-sm { margin: 0 0 1.2rem; color: var(--muted); max-width: 44rem; }
.h2-sm { font-size: 1rem; margin: 0 0 .9rem; }
.h3-sm { font-size: .78rem; font-family: var(--f-mono); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .6rem; }
.count { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin: 0 0 12px; }
.meta { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.cell-wrap { white-space: normal; min-width: 180px; }
td.nowrap { white-space: nowrap; }
.lignes-plus { margin-top: 10px; background: transparent; border: 0; padding: 0; }
.lignes-plus summary { font-weight: 700; color: var(--blue); padding: 8px 0; }
.ligne-annulee td { opacity: .5; text-decoration: line-through; }

/* Etiquettes d'etat */
.etat { display: inline-block; padding: 2px 9px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid; line-height: 1.5; white-space: nowrap; }
.etat-ok { color: #075243; border-color: var(--green); background: #e6f6f2; }
.etat-warn { color: #7a5200; border-color: var(--yellow); background: #fff6d9; }
.etat-ko { color: #7c2410; border-color: var(--orange); background: #fdece6; }
.etat-club { color: #075243; border-color: var(--green); background: #fff; }
.etat-info { color: #14337e; border-color: var(--blue); background: #e9eefc; }

/* Filtres */
.filtres { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--ink); padding: 16px 18px; margin-bottom: 22px; }
.filtres-champ { min-width: 150px; }
.filtres-champ label { margin-top: 0; font-size: .8rem; }
.filtres-q { flex: 1 1 240px; }
.filtres-check { display: flex; align-items: center; gap: .4rem; margin: 0 0 10px; font-weight: 500; }
.filtres .btn { margin-top: 0; }
.onglets { display: flex; gap: 0; border-bottom: 2px solid var(--ink); margin-bottom: 20px; }
.onglets a { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 10px 18px; color: var(--ink); border: 2px solid transparent; border-bottom: 0; margin-bottom: -2px; }
.onglets a[aria-current="page"] { background: var(--ink); color: #fff; }
.onglets a:hover:not([aria-current]) { background: var(--paper-2); }
.pager { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 30px 0 0; font-family: var(--f-mono); font-size: .85rem; }

/* Grille d'inventaire */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.inv-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.inv-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.inv-card.sorti { opacity: .6; }
.inv-photo { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.inv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-nophoto { color: #98a0ad; }
.inv-nophoto .ico { width: 56px; height: 56px; }
.inv-flag { position: absolute; left: 0; top: 10px; background: var(--blue); color: #fff; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; }
.inv-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.inv-num { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.inv-body h3 { margin: 0; font-size: 1.08rem; }
.qte { font-family: var(--f-mono); font-size: .8rem; font-weight: 400; color: var(--muted); }
.inv-meta { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.3em; }
.inv-foot { margin: auto 0 0; padding-top: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.inv-loc { color: var(--muted); }

/* Formulaires longs */
.form-fiche fieldset { border: 0; border-top: 2px solid var(--ink); margin: 0 0 26px; padding: 18px 0 0; min-width: 0; }
.form-fiche fieldset:first-of-type { border-top: 0; padding-top: 0; }
.form-fiche legend { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); padding: 0 0 12px; float: left; width: 100%; }
.form-fiche legend + * { clear: both; }
.form-fiche .form-grid { margin-top: 0; }
.form-grid > div { min-width: 0; }
.form-grid label:first-child { margin-top: 14px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0 0 6px; }
.radio, label.radio { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: 10px 16px; background: var(--white); border: 2px solid #b9bdc6; border-radius: var(--radius); font-weight: 500; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--paper-2); font-weight: 700; }
.radio.ok:has(input:checked) { border-color: var(--green); background: #e6f6f2; color: #075243; }
.radio.ko:has(input:checked) { border-color: var(--orange); background: #fdece6; color: #7c2410; }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin-top: 12px; }
label.check.danger { color: #7c2410; }
.photo-edit { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.photo-edit-item { width: 160px; }
.photo-edit-item img { width: 160px; height: 120px; object-fit: cover; border: 1px solid var(--line); display: block; }
.photo-edit-item label.check { margin-top: 6px; font-size: .85rem; }
.inline-add label { margin-top: 0; }
.inline-add-row { display: flex; gap: 10px; align-items: stretch; }
.inline-add-row input { flex: 1; margin-top: 5px; }
.inline-add-row .btn { margin-top: 5px; }
.zone-danger { margin-top: 36px; padding: 18px 20px; border: 1px dashed #b9bdc6; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.zone-danger .inline-add { flex: 1 1 360px; }

/* Lignes de materiel (mise a disposition) */
.ligne { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr) 70px minmax(0, 1fr) 100px; gap: 10px; padding: 12px 0; border-bottom: 1px dashed #c9c9c0; align-items: start; }
.ligne label { margin-top: 0; font-size: .75rem; font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.ligne input, .ligne select { margin-top: 3px; }
.ligne-c { grid-column: 1 / -1; }
.ligne-c label.check { margin-top: 0; text-transform: none; font-family: var(--f-sans); letter-spacing: 0; font-size: .88rem; color: var(--ink); }

/* Fiche objet */
.fiche-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.fiche-head h1 { margin: .15em 0 .25em; line-height: 1.05; }
.fiche-head .inv-num { margin-bottom: .3rem; }
.fiche-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.fiche-head .btn-row { margin: 0; }
.fiche-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.fiche-main { display: block; border: 1px solid var(--line); background: var(--paper-2); }
.fiche-main img { width: 100%; height: auto; display: block; }
.fiche-main.nophoto { display: grid; place-items: center; aspect-ratio: 4 / 3; color: #98a0ad; gap: 8px; align-content: center; text-align: center; }
.fiche-main.nophoto .ico { width: 64px; height: 64px; }
.fiche-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.fiche-thumbs img { width: 110px; height: 82px; object-fit: cover; border: 1px solid var(--line); display: block; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0 0 18px; border-top: 2px solid var(--ink); }
.spec dt, .spec dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec dt { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-right: 22px; display: flex; align-items: center; }
.fiche-h { font-family: var(--f-mono); font-size: .76rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 1.2rem 0 .3rem; }
.journal { list-style: none; margin: 14px 0 0; padding: 0; }
.journal li { display: grid; grid-template-columns: 150px 170px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px dashed #c9c9c0; font-size: .92rem; }
.journal-date { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.journal-type { font-weight: 700; }
.journal-vide { display: block !important; color: var(--muted); }

/* Calendrier */
.equipe { margin-bottom: 34px; }
.equipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.equipe-card { display: block; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.equipe-card:hover { box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }
.equipe-quand { margin: 0; font-weight: 700; }
.equipe-heure { margin: 0 0 8px; font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.equipe-l { margin: 4px 0 0; font-size: .9rem; }
.equipe-l span { display: inline-block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; color: #fff; margin-right: 4px; }
.equipe-l.ok span { background: var(--green-txt); } .equipe-l.ko span { background: var(--orange-txt); }
.equipe-l.vide { color: var(--orange-txt); font-weight: 500; }
.cal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-head .btn { margin: 0; }
.cal-titre { margin: 0; display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; text-transform: uppercase; letter-spacing: .01em; min-width: 9ch; }
.cal-titre::after { display: none; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 2px solid var(--ink); }
.cal-dow { background: var(--ink); color: #fff; text-align: center; padding: 8px 0; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.cal-vide { background: var(--paper-2); }
.cal-jour { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 108px; padding: 7px 8px; background: var(--white); text-decoration: none; color: var(--ink); }
.cal-jour:hover { background: #fffbea; color: var(--ink); }
.cal-jour.seance { background: #f4f7ff; }
.cal-jour.ferme { background-image: repeating-linear-gradient(135deg, rgba(238,99,56,.16) 0 7px, transparent 7px 14px); }
.cal-jour.auj .cal-num { background: var(--ink); color: #fff; }
.cal-jour.sel { outline: 3px solid var(--yellow); outline-offset: -3px; z-index: 1; }
.cal-num { align-self: flex-start; font-family: var(--f-display); font-size: 1.15rem; line-height: 1; padding: 3px 6px 2px; }
.cal-chip { display: inline-block; align-self: flex-start; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; line-height: 1.5; border: 1.5px solid var(--blue); color: var(--blue); background: var(--white); }
.cal-chip.fermee { background: var(--orange); border-color: var(--orange); color: #fff; }
.cal-chip.fermee.part { background: #fff; color: var(--orange-txt); border-color: var(--orange); }
.cal-chip.exc { background: var(--green); border-color: var(--green); color: #fff; }
.cal-gens { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.gens { display: inline-block; font-size: .72rem; line-height: 1.35; padding: 0 6px; border-left: 3px solid; background: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gens.dispo { border-color: var(--green); color: #075243; background: #e6f6f2; }
.gens.indispo { border-color: var(--orange); color: #7c2410; background: #fdece6; }
.gens.plus { border-color: #98a0ad; color: var(--muted); }
.cal-pts { display: none; gap: 4px; margin-top: auto; }
.pt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.pt.dispo { background: var(--green); } .pt.indispo { background: var(--orange); }
.cal-legende { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.jour-panel { margin-top: 36px; scroll-margin-top: 20px; }
.jour-panel h2 { margin-top: 0; }
.jour-creneaux { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.jour-creneaux li { padding: 10px 14px; border-left: 5px solid var(--blue); background: var(--white); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.jour-creneaux li.ferme { border-left-color: var(--orange); background: #fdf3ee; }
.jour-creneaux li.exc { border-left-color: var(--green); }
.jour-creneaux .btn { margin: 0 0 0 auto; }
.gens-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gens-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); }
.gens-liste .gens { font-size: .72rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; padding: 1px 8px; }
.gens-detail { color: var(--muted); font-size: .9rem; flex: 1 1 200px; }
.gens-liste form { margin-left: auto; }
.cal-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-top: 30px; align-items: start; }
.cal-forms .card { margin: 0; }
.card-club { border-left-color: var(--orange); }

/* Annonces publiques (fermetures) */
.annonces { background: #fff3ec; border-bottom: 2px solid var(--ink); }
.annonces .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; padding-top: 14px; padding-bottom: 14px; }
.annonces-titre { margin: 0; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-txt); font-weight: 700; }
.annonces ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.annonce-tag { display: inline-block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: 1px 7px; margin-right: 6px; background: var(--orange); color: #fff; }
.annonce.ouvert .annonce-tag { background: var(--green); }

/* Documents imprimables (convention, recu de don) */
.doc { position: relative; background: #fff; color: #111; max-width: 820px; margin: 0 auto 30px; padding: 44px 50px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); font-size: .95rem; line-height: 1.55; }
.doc p { margin: 0 0 .7em; }
.doc-entete { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid #111; padding-bottom: 14px; margin-bottom: 22px; }
.doc-asso { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; text-transform: uppercase; margin: 0 0 .3rem !important; }
.doc-sous { font-size: .82rem; color: #444; margin: 0 !important; }
.doc-num { text-align: right; border: 2px solid #111; padding: 6px 14px; align-self: flex-start; line-height: 1.2; }
.doc-num span { display: block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.doc-num strong { font-family: var(--f-mono); font-size: 1.05rem; }
.doc-titre { display: block; font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .02em; font-size: 1.25rem; margin: 0 0 1.2rem; text-align: center; }
.doc-titre::after { display: none; }
.doc-titre small { display: block; font-size: .78rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: #444; margin-top: .3rem; }
.doc-h { font-family: var(--f-mono); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 1.3rem 0 .4rem; padding-bottom: 3px; border-bottom: 1px solid #999; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-partie { border: 1px solid #999; padding: 12px 14px; }
.doc-role { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #444; margin: 0 0 .4rem !important; }
.doc-table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .9rem; background: #fff; border: 1px solid #111; }
.doc-table th, .doc-table td { border: 1px solid #111; padding: 6px 9px; text-align: left; font-size: .9rem; }
.doc-table th { background: #eee; color: #111; font-family: var(--f-sans); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: .82rem; }
.doc-table-kv th { width: 34%; }
.doc-table:not(.doc-table-kv) td:nth-child(2) { white-space: nowrap; }
.doc-mention { font-size: .85rem; color: #333; border-left: 3px solid #111; padding-left: 12px; margin: 1rem 0 !important; }
.doc-fait { margin-top: 1.6rem !important; }
.doc-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 8px; }
.doc-signatures > div { min-height: 110px; border-top: 1px solid #111; padding-top: 6px; }
.doc-signatures-sm > div { min-height: 60px; }
.doc-nom { font-weight: 700; margin: 0 !important; }
.doc-lu { font-size: .78rem; color: #555; margin: 0 !important; }
.doc-retour { margin-top: 1.4rem; padding-top: .4rem; border-top: 2px dashed #888; break-inside: avoid; }
.doc-pied { margin-top: 1.6rem; padding-top: 8px; border-top: 1px solid #bbb; font-size: .72rem; color: #555; }
.doc-filigrane { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 9rem; color: rgba(238,99,56,.22); transform: rotate(-24deg); pointer-events: none; letter-spacing: .05em; }
.doc-annule > *:not(.doc-filigrane) { opacity: .75; }
.card-retour { max-width: 760px; border-left-color: var(--green); }

@media (max-width: 960px) {
  .fiche-grid { grid-template-columns: 1fr; gap: 24px; }
  .ligne { grid-template-columns: 1fr 1fr; }
  .ligne-item, .ligne-des { grid-column: 1 / -1; }
  .journal li { grid-template-columns: 1fr; gap: 2px; }
  .doc { padding: 28px 22px; }
  .doc-parties, .doc-signatures { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cal-jour { min-height: 64px; padding: 5px; align-items: center; }
  .cal-gens { display: none; }
  .cal-pts { display: flex; }
  .cal-chip { font-size: .5rem; padding: 0 3px; letter-spacing: 0; }
  .cal-num { font-size: 1rem; align-self: center; }
  .cal-dow { font-size: .6rem; letter-spacing: 0; padding: 6px 0; }
  .inline-add-row { flex-direction: column; }
  .page-title-row .btn-row { width: 100%; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 0; border-bottom: 0; }
  .doc-filigrane { font-size: 5rem; }
}

@media print {
  @page { size: A4; margin: 15mm; }
  .stripe, .site-header, .member-bar, .site-footer, .no-print, .back-link, .skip, .alert, .annonces { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .container, .main-full { padding: 0 !important; max-width: none !important; }
  .doc { border: 0; box-shadow: none; padding: 0; margin: 0; max-width: none; font-size: 10pt; line-height: 1.42; }
  .doc p { margin-bottom: .5em; }
  .doc-h { margin: .9rem 0 .3rem; }
  .doc-entete { margin-bottom: 14px; padding-bottom: 10px; }
  .doc-signatures > div { min-height: 85px; }
  .doc-h { break-after: avoid; }
  .doc-fait { margin-top: 1rem !important; }
  .doc-pied { margin-top: 1rem; }
  .doc-parties, .doc-signatures { grid-template-columns: 1fr 1fr; }
  .doc-filigrane { font-size: 9rem; }
  .doc-entete, .doc-partie, .doc-table, .doc-retour { break-inside: avoid; }
  .doc-signatures > div { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .fiche-grid { grid-template-columns: 1fr 1fr; }
  .fiche-main img { max-height: 90mm; object-fit: contain; }
  .journal li { grid-template-columns: 130px 140px 1fr; }
  h1 { font-size: 22pt; }
}
/* To-do liste */
.todo-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.todo-nav { display: flex; flex-direction: column; gap: 4px; }
.todo-lien { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.todo-lien b { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.todo-lien.actif { border-left-color: var(--blue); background: #f0f4ff; font-weight: 700; }
.todo-sep { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.todo-nouvelle { margin-top: 10px; background: transparent; border: 1px dashed #98a0ad; padding: 10px 12px; }
.todo-nouvelle form { margin-top: 10px; }
.todo-titre { margin-top: 0; }
.todo-ajout { margin-top: 14px; }
.taches { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.tache { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.tache.haute { border-left-color: var(--orange); }
.tache.fait { opacity: .6; border-left-color: var(--green); }
.tache.fait .tache-titre { text-decoration: line-through; }
.tache-check { margin: 2px 0 0; }
.coche { width: 26px; height: 26px; border: 2px solid var(--ink); background: var(--white); border-radius: 3px; cursor: pointer; font-weight: 700; color: var(--green-txt); padding: 0; line-height: 1; }
.coche:hover { background: #e6f6f2; }
.tache-corps { flex: 1; min-width: 0; }
.tache-titre { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.tache-details { margin: 4px 0 0; color: #3b4453; font-size: .92rem; }
.tache-meta { margin: 8px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tache-par { font-size: .8rem; color: var(--muted); }
.taches-faites { margin-top: 22px; background: transparent; border: 0; padding: 0; }
.taches-faites summary { color: var(--muted); font-family: var(--f-mono); font-size: .8rem; }
.todo-gestion { margin-top: 28px; }
@media (max-width: 860px) { .todo-layout { grid-template-columns: 1fr; gap: 20px; } }
/* Tableau blanc */
.tableau { margin-top: 10px; }
.tableau-surface { position: relative; min-height: 460px; padding: 34px 30px 40px; display: flex; flex-wrap: wrap; gap: 30px 26px; align-content: flex-start;
  background: linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 35%), #fbfcfd;
  border: 14px solid #c9ced6; border-bottom-width: 10px; border-radius: 8px;
  box-shadow: inset 0 0 0 2px #9aa2ae, inset 0 6px 20px rgba(17,24,39,.12), 0 6px 0 #aeb5c0, 0 12px 26px rgba(17,24,39,.22); }
.tableau-vide { margin: auto; text-align: center; color: #98a0ad; font-size: 1.05rem; align-self: center; width: 100%; }
.tableau-plateau { position: relative; height: 26px; margin: 8px 40px 0; background: linear-gradient(#b9bfc9, #9aa2ae); border-radius: 0 0 10px 10px; box-shadow: 0 4px 10px rgba(17,24,39,.2); }
.feutre { position: absolute; top: -9px; height: 12px; border-radius: 6px; width: 84px; }
.feutre.f1 { left: 40px; background: #1f4fd8; } .feutre.f2 { left: 150px; background: #ee6338; } .feutre.f3 { left: 260px; background: #0f9d84; }
.brosse { position: absolute; right: 40px; top: -12px; width: 70px; height: 16px; background: #3b4453; border-radius: 4px; border-bottom: 6px solid #f2b512; }
.postit { --c: #fff176; position: relative; width: 215px; min-height: 190px; padding: 26px 16px 14px; background: var(--c); color: #1d2939;
  font-family: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', 'Chalkboard SE', cursive; box-shadow: 0 10px 14px -6px rgba(17,24,39,.35), 0 2px 3px rgba(17,24,39,.2);
  display: flex; flex-direction: column; transition: transform .15s ease; }
.postit::after { content: ''; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.12) 50%); }
.postit.r0 { transform: rotate(-2.2deg); } .postit.r1 { transform: rotate(1.6deg); } .postit.r2 { transform: rotate(-.8deg); }
.postit.r3 { transform: rotate(2.4deg); } .postit.r4 { transform: rotate(-1.5deg); }
.postit:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.aimant { position: absolute; top: -9px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a6b, #c2461f 70%); box-shadow: 0 3px 4px rgba(17,24,39,.35); }
.postit-texte { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.45; flex: 1; overflow-wrap: anywhere; }
.postit-pied { margin: 0; font-family: var(--f-sans); font-size: .72rem; line-height: 1.35; color: rgba(29,41,57,.75); }
.postit-qui { font-family: var(--f-mono); font-size: .66rem; }
.postit-actions { display: flex; gap: 10px; margin-top: 8px; font-family: var(--f-sans); font-size: .76rem; }
.postit-actions a, .postit-actions button { background: rgba(255,255,255,.55); border: 0; padding: 3px 9px; border-radius: 3px; color: #1d2939; text-decoration: none; cursor: pointer; font: inherit; }
.postit-actions a:hover, .postit-actions button:hover { background: #fff; }
.postit-actions form { margin: 0; }
.postit-form { max-width: 720px; margin-bottom: 26px; }
.compteur { font-weight: 400; color: var(--muted); font-family: var(--f-mono); font-size: .75rem; margin-left: 8px; }
.pastille { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 6px 0 0; cursor: pointer; font-weight: 400; }
.pastille input { position: absolute; opacity: 0; }
.pastille span { width: 46px; height: 46px; border-radius: 4px; border: 2px solid rgba(17,24,39,.25); box-shadow: 0 2px 3px rgba(17,24,39,.2); }
.pastille input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow), 0 2px 3px rgba(17,24,39,.2); }
.pastille input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.pastille em { font-style: normal; font-size: .72rem; color: var(--muted); }
.choix-personnes { margin: 8px 0 0; padding: 10px 14px; background: var(--paper); border: 1px dashed #98a0ad; display: flex; flex-wrap: wrap; gap: 4px 22px; }
@media (max-width: 720px) { .tableau-surface { border-width: 8px; padding: 26px 14px 30px; justify-content: center; } .postit { width: 100%; max-width: 330px; } }
@media print { .tableau-plateau { display: none; } }
/* To-do : rubriques */
.rubriques { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 8px; }
.rubrique { display: block; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--blue); padding: 22px 22px 20px; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.rubrique:nth-child(2) { border-top-color: var(--green); } .rubrique:nth-child(3) { border-top-color: var(--orange); }
.rubrique:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.rubrique svg { color: var(--blue); } .rubrique:nth-child(2) svg { color: var(--green-txt); } .rubrique:nth-child(3) svg { color: var(--orange-txt); }
.rubrique h2 { display: block; margin: 10px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; line-height: 1.05; }
.rubrique h2::after { display: none; }
.rubrique-nb { margin: 0 0 10px; } .rubrique-nb b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }
.rubrique-visi { margin: 0; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); line-height: 1.45; }
/* Photos : remplacement et apercu */
.remplacer { display: block; margin-top: 8px; font-size: .78rem; font-weight: 500; color: var(--muted); }
.remplacer input[type=file] { padding: 5px; font-size: .78rem; margin-top: 3px; }
.photo-apercu { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.photo-apercu[hidden] { display: none; }
.photo-apercu-item { width: 110px; }
.photo-apercu-item img { width: 110px; height: 82px; object-fit: cover; border: 2px solid var(--green); display: block; }
.photo-apercu-item button { margin-top: 4px; width: 100%; padding: 3px; font-size: .75rem; background: var(--white); border: 1px solid #b9bdc6; cursor: pointer; color: #7c2410; }
.photo-edit-item { width: 200px; }
.photo-edit-item input[type=file] { width: 100%; }
.anim-ligne { padding: 12px 0; border-top: 1px dashed #c9c9c0; }
.anim-ligne:first-of-type { border-top: 0; }
/* Documents (drive) */
.drive { position: relative; }
.drive-barre { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drive-chemin { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; }
.drive-chemin a.crumb { text-decoration: none; padding: 4px 8px; border: 2px solid transparent; border-radius: 4px; color: var(--ink); }
.drive-chemin a.crumb:hover { background: var(--paper-2); }
.crumb.cible, .d-item.cible { outline: 3px solid var(--yellow); background: #fffbea; }
.drive-chemin > span { color: var(--muted); }
.drive-recherche { display: flex; gap: 10px; align-items: center; }
.drive-recherche input { margin: 0; min-width: 220px; padding: 8px 10px; }
.drive-outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.drive-outils .btn { margin-top: 0; }
.drive-vues { margin-left: auto; display: inline-flex; gap: 6px; }
.drive-vues button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.drive-zone { position: relative; min-height: 260px; border: 2px dashed #b9bdc6; background: var(--white); padding: 16px; }
.drive-depot { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(31,79,216,.9); color: #fff; font-size: 1.2rem; text-align: center; }
.drive-depot[hidden] { display: none; }
.drive-depot span { font-size: .95rem; opacity: .9; }
.drive-vide { text-align: center; color: var(--muted); margin: 70px 0; }
.drive-liste[data-vue="grille"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.drive-liste[data-vue="liste"] { display: grid; gap: 4px; }
.d-item { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.d-item[draggable="true"] { cursor: grab; }
.d-item:hover { border-color: var(--ink); background: #fff; }
.d-main { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 8px; background: transparent; border: 0; font: inherit; color: inherit; text-decoration: none; cursor: pointer; width: 100%; text-align: center; min-height: 0; }
.d-nom { font-weight: 500; font-size: .9rem; line-height: 1.25; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-chemin { font-family: var(--f-mono); font-size: .65rem; color: var(--muted); }
.d-meta { font-family: var(--f-mono); font-size: .66rem; color: var(--muted); text-align: center; padding: 0 8px; }
.d-dossier { width: 76px; height: 62px; color: var(--yellow); }
.d-folder .d-dossier { filter: drop-shadow(0 2px 0 rgba(17,24,39,.35)); }
.d-up .d-dossier { color: #b9bdc6; }
.d-vignette { width: 100%; height: 100px; object-fit: cover; display: block; background: var(--paper-2); border: 1px solid var(--line); }
.d-ico { position: relative; display: block; width: 62px; height: 76px; background: var(--white); border: 2px solid var(--ink); border-radius: 3px; --c: #6b7b89; }
.d-ico::before { content: ''; position: absolute; right: -2px; top: -2px; width: 18px; height: 18px; background: linear-gradient(225deg, var(--paper) 50%, var(--c) 50%); border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.d-ico b { position: absolute; left: -2px; right: -2px; bottom: 10px; background: var(--c); color: #fff; font-family: var(--f-mono); font-size: .62rem; line-height: 1; padding: 4px 0; text-align: center; letter-spacing: .04em; }
.d-image { --c: #0f9d84; } .d-pdf { --c: #ee6338; } .d-video { --c: #1f4fd8; } .d-audio { --c: #8a5cd6; } .d-texte { --c: #566070; }
.d-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 6px 6px 10px; opacity: 0; transition: opacity .12s; }
.d-item:hover .d-actions, .d-item:focus-within .d-actions { opacity: 1; }
.d-actions a, .d-actions button { font: inherit; font-size: .7rem; background: var(--white); border: 1px solid #b9bdc6; padding: 3px 7px; border-radius: 3px; cursor: pointer; color: var(--ink); text-decoration: none; }
.d-actions a:hover, .d-actions button:hover { border-color: var(--ink); }
.d-actions .danger { color: #7c2410; }
@media (hover: none) { .d-actions { opacity: 1; } }
.drive-liste[data-vue="liste"] .d-item { flex-direction: row; align-items: center; gap: 14px; padding: 4px 10px; }
.drive-liste[data-vue="liste"] .d-main { flex-direction: row; flex: 1; padding: 6px 0; text-align: left; gap: 14px; min-width: 0; }
.drive-liste[data-vue="liste"] .d-nom { -webkit-line-clamp: 1; }
.drive-liste[data-vue="liste"] .d-dossier { width: 32px; height: 26px; }
.drive-liste[data-vue="liste"] .d-ico { width: 26px; height: 32px; border-width: 1.5px; }
.drive-liste[data-vue="liste"] .d-ico::before { width: 8px; height: 8px; border-width: 1.5px; }
.drive-liste[data-vue="liste"] .d-ico b { display: none; }
.drive-liste[data-vue="liste"] .d-vignette { width: 40px; height: 32px; }
.drive-liste[data-vue="liste"] .d-meta { min-width: 150px; text-align: right; }
.drive-liste[data-vue="liste"] .d-actions { padding: 0; opacity: 1; flex-wrap: nowrap; }
.drive-envoi { position: fixed; right: 20px; bottom: 20px; width: min(360px, calc(100vw - 40px)); background: var(--white); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 14px 16px; z-index: 50; }
.drive-envoi[hidden] { display: none; }
.drive-envoi-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.drive-envoi .btn { margin: 0; }
.drive-barre-prog { height: 10px; background: var(--paper-2); border: 1px solid var(--line); margin: 10px 0 6px; }
.drive-barre-prog i { display: block; height: 100%; width: 0; background: var(--green); transition: width .15s; }
.drive-erreurs { margin: 6px 0 0; padding-left: 18px; color: #7c2410; font-size: .85rem; max-height: 140px; overflow: auto; }
.drive-dlg { border: 2px solid var(--ink); padding: 22px 24px; max-width: 440px; width: calc(100vw - 40px); box-shadow: 6px 6px 0 var(--ink); }
.drive-dlg::backdrop, .drive-apercu::backdrop { background: rgba(17,24,39,.6); }
.drive-dlg h3 { margin: 0 0 10px; overflow-wrap: anywhere; }
.drive-dlg input, .drive-dlg select { margin: 0 0 6px; }
.drive-dlg [hidden] { display: none; }
.drive-apercu { border: 2px solid var(--ink); padding: 0; width: min(1000px, calc(100vw - 30px)); height: min(86vh, 800px); background: var(--white); overflow: hidden; }
.drive-apercu[open] { display: flex; flex-direction: column; }
.apercu-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ink); color: #fff; flex-wrap: wrap; }
.apercu-tete strong { overflow-wrap: anywhere; }
.apercu-btns { display: flex; gap: 8px; align-items: center; }
.apercu-btns .btn { margin: 0; }
.apercu-corps { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; background: #1a2230; }
.apercu-corps img { max-width: 100%; max-height: 100%; object-fit: contain; }
.apercu-corps iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.apercu-corps video { max-width: 100%; max-height: 100%; }
.apercu-corps audio { width: 80%; }
.apercu-corps pre { margin: 0; width: 100%; height: 100%; overflow: auto; padding: 16px 20px; background: #fff; color: var(--ink); font-family: var(--f-mono); font-size: .85rem; white-space: pre-wrap; word-break: break-word; align-self: stretch; }
.apercu-autre { background: #fff; padding: 40px; text-align: center; max-width: 440px; }
@media (max-width: 720px) { .drive-liste[data-vue="liste"] .d-meta { display: none; } .drive-liste[data-vue="liste"] .d-actions { flex-wrap: wrap; } }
.drive-liste[data-vue="grille"] { align-items: start; }
/* Home: 2 cards */
.special-grid.deux { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .special-grid.deux { grid-template-columns: 1fr; } }

/* Membre : seances */
.seances-liste { display: grid; gap: 14px; max-width: 760px; margin-top: 18px; }
.seance-carte { display: flex; gap: 18px; background: #fff; border: 2px solid var(--ink, #111827); border-left-width: 8px; border-radius: 10px; padding: 16px 18px; }
.seance-carte.oui { border-left-color: #2f9e5b; }
.seance-carte.non { border-left-color: #b8b8b8; opacity: .85; }
.seance-date { min-width: 58px; text-align: center; border: 2px solid var(--ink, #111827); border-radius: 8px; padding: 6px 4px; height: fit-content; }
.seance-date b { display: block; font-size: 1.6rem; line-height: 1.1; }
.seance-date span { font-size: .8rem; text-transform: uppercase; }
.seance-corps h3 { margin: 0 0 4px; }
.seance-heures, .seance-nb { margin: 2px 0; color: var(--muted, #555); }
.seance-noms { color: var(--ink, #111827); font-weight: 600; }
.seance-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.lien-discret { background: none; border: 0; padding: 0; color: var(--muted, #555); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }

/* Admin : comptes rendus */
.cr-form textarea { width: 100%; font-family: inherit; }
.cr-ligne { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.cr-liste { display: grid; gap: 10px; max-width: 760px; margin-top: 16px; }
.cr-item { display: grid; gap: 2px; padding: 14px 18px; background: #fff; border: 2px solid var(--ink, #111827); border-left: 8px solid #1f4fd8; border-radius: 10px; text-decoration: none; color: inherit; }
.cr-item:hover { border-left-color: #ee6338; }
.cr-item small { color: var(--muted, #555); }
.cr-num { font-size: .78rem; font-weight: 700; color: #1f4fd8; letter-spacing: .04em; }
.cr-doc { max-width: 820px; background: #fff; border: 2px solid var(--ink, #111827); border-top: 8px solid #1f4fd8; border-radius: 10px; padding: 24px 28px; margin-top: 18px; }
.cr-meta { display: grid; gap: 6px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--ink, #111827); }
.cr-meta div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.cr-meta span { color: var(--muted, #555); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.cr-texte h3 { margin: 22px 0 8px; padding-left: 12px; border-left: 5px solid #1f4fd8; }
.cr-texte p { margin: 0 0 10px; line-height: 1.55; }
.cr-texte ul { margin: 0 0 10px; padding-left: 0; list-style: none; }
.cr-texte li { position: relative; padding-left: 20px; margin-bottom: 5px; line-height: 1.5; }
.cr-texte li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; background: #0f9d84; }
@media (max-width: 640px) { .cr-ligne, .cr-meta div { grid-template-columns: 1fr; } }

.cr-statut { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 2px solid var(--ink, #111827); }
.cr-brouillon { background: #eee; }
.cr-en_validation { background: #f2b512; }
.cr-valide { background: #0f9d84; color: #fff; }
.cr-actions { margin: 10px 0; }

.cr-suivi { max-width: 520px; }
.cr-valideurs { list-style: none; padding: 0; margin: 8px 0 0; }
.cr-valideurs li { padding: 3px 0; }
.cr-valideurs .ok { color: #0b7a66; font-weight: 700; }
.cr-valideurs .attente { color: var(--muted, #555); }
