/* ============ Polices locales ============ */
@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebasneue-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============ Variables ============ */
:root {
  --bg: #0a0a0a;
  --gold: #f4ca1b;
  --gold-ink: var(--gold);
  --ink-strong: #141414;
  --white: #f2f2f2;
  --gray-text: #c9c9c9;
  --border: rgba(244, 202, 27, 0.45);
  --panel: #141414;
  --card-tint: rgba(255, 255, 255, 0.02);
  --nav-bg: rgba(10, 10, 10, 0.78);
  --cream: var(--cream);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff;
    --white: #1a1a1a;
    --gray-text: #595959;
    --gold-ink: #625F53;
    --panel: #f3f1ea;
    --card-tint: rgba(0, 0, 0, 0.03);
    --nav-bg: rgba(255, 255, 255, 0.82);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --white: #1a1a1a;
  --gray-text: #595959;
  --gold-ink: #625F53;
  --panel: #f3f1ea;
  --card-tint: rgba(0, 0, 0, 0.03);
  --nav-bg: rgba(255, 255, 255, 0.82);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --white: #f2f2f2;
  --gray-text: #c9c9c9;
  --gold-ink: var(--gold);
  --panel: #141414;
  --card-tint: rgba(255, 255, 255, 0.02);
  --nav-bg: rgba(10, 10, 10, 0.78);
  color-scheme: dark;
}

/* ============ Reset ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ============ Layout ============ */
.page {
  position: relative;
  z-index: 1;
  width: 95%;
  max-width: none;
  margin: 0 auto;
  padding: 48px env(safe-area-inset-right) 64px env(safe-area-inset-left);
  text-align: center;
}

/* ============ Barre d'en-tête (essai) ============ */
.site-header-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.site-header-logo-wrap {
  position: relative;
  display: block;
  height: clamp(44px, 6vw, 64px);
  flex-shrink: 0;
  cursor: pointer;
}

.site-header-logo-img {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.site-header-logo-alt {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(0.6);
}

.site-header-logo-wrap:hover .site-header-logo-alt,
.site-header-logo-wrap:focus-visible .site-header-logo-alt,
.site-header-logo-wrap.logo-presse .site-header-logo-alt {
  opacity: 1;
  transform: scale(1);
}

.site-header-logo-wrap:hover .site-header-logo-defaut,
.site-header-logo-wrap:focus-visible .site-header-logo-defaut,
.site-header-logo-wrap.logo-presse .site-header-logo-defaut {
  opacity: 0;
  transform: scale(1.15);
}

.site-header-divider {
  align-self: stretch;
  width: 1px;
  background: var(--white);
  opacity: 0.85;
  flex-shrink: 0;
}

.site-header-icones {
  flex: 1 1 auto;
  min-width: 0;
  height: clamp(36px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 20px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.site-header-icones img {
  height: 100%;
  width: auto;
  flex-shrink: 0;
  opacity: 0.55;
  animation: site-header-icone-entree 0.5s ease-out both;
}

@keyframes site-header-icone-entree {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.5);
  }
  to {
    opacity: 0.55;
    transform: translateX(0) scale(1);
  }
}

.site-header-bar .top-right-actions {
  position: static;
  flex-shrink: 0;
  width: auto;
  margin-left: auto;
  margin-bottom: 0;
  justify-content: flex-end;
  gap: 16px;
}

.site-header-bar .contact-top-btn {
  height: 56px;
  padding: 0 32px;
  font-size: 1.05rem;
}

.site-header-bar .member-btn {
  width: 56px;
  height: 56px;
}

.site-header-bar .member-icon {
  width: 30px;
  height: 30px;
}

/* ============ Titre principal ============ */
.site-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  color: var(--gold-ink);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.site-tagline {
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(0.95rem, 3vw, 1.3rem);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.divider {
  width: 160px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 36px;
}

/* ============ Accueil, essai deux zones ============ */
.accueil-deux-zones {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  container-type: inline-size;
}

.zone-robot,
.zone-texte {
  flex: 1 1 420px;
  min-width: 0;
}

@container (min-width: 888px) {
  .zone-texte {
    border-left: 1px solid var(--border);
    padding-left: 24px;
  }
}

.robot-pancarte-wrap {
  position: relative;
  width: 100%;
  max-width: 958px;
  margin: 12px auto 0;
  container-type: inline-size;
}

.robot-pancarte-wrap img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

.robot-pancarte-overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  font-family: "Orbitron", sans-serif;
}

.robot-pancarte-overlay--haut {
  justify-content: flex-start;
}

.robot-pancarte-label {
  font-weight: 900;
  font-size: var(--pancarte-taille, 20px);
  color: #f4c91a;
}

.robot-pancarte-heure {
  font-weight: 700;
  font-size: var(--pancarte-taille, 20px);
  line-height: 1.2;
  color: #1a1a1a;
}

.robot-pancarte-lieu {
  font-weight: 400;
  font-size: var(--pancarte-taille, 20px);
  line-height: 1.2;
  color: #1a1a1a;
  text-decoration: underline;
}

.robot-pancarte-calendrier {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-ink);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.robot-pancarte-calendrier:hover,
.robot-pancarte-calendrier:focus-visible {
  background: rgba(0, 0, 0, 0.08);
}

.robot-pancarte-calendrier-icon {
  width: 70%;
  height: 70%;
  flex-shrink: 0;
}

/* ============ Section ateliers ============ */
.lead-text {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--white);
  text-align: left;
  margin-bottom: 20px;
}

.lead-text:last-of-type {
  margin-bottom: 32px;
}

.top-right-actions {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  color: var(--gold-ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.contact-top-btn:hover,
.contact-top-btn:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-strong);
}

@media (max-width: 600px) {
  .top-right-actions {
    position: static;
    justify-content: center;
    width: 100%;
    margin-bottom: 48px;
  }
}

.member-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold-ink);
  border-radius: 8px;
  z-index: 2;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.member-btn:hover,
.member-btn:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

.member-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============ Bandeau horaire ============ */
.schedule-banner {
  position: relative;
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
}

.schedule-banner.wide {
  width: 100%;
}

.schedule-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 1.9rem);
}

.schedule-banner .label {
  color: var(--gold-ink);
}

.schedule-banner .time {
  color: var(--white);
}

.schedule-sub {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 3.4vw, 1.35rem);
  color: var(--cream);
}

a.schedule-link {
  text-decoration: underline;
  text-decoration-color: rgba(242, 239, 230, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a.schedule-link:hover,
a.schedule-link:focus-visible {
  color: var(--gold-ink);
  text-decoration-color: var(--gold-ink);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.nav-discord,
.nav-facebook,
.nav-github,
.nav-admin,
.nav-membre,
.nav-super-admin,
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--gold-ink);
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.nav-discord:hover,
.nav-discord:focus-visible,
.nav-facebook:hover,
.nav-facebook:focus-visible,
.nav-github:hover,
.nav-github:focus-visible,
.nav-admin:hover,
.nav-admin:focus-visible,
.nav-membre:hover,
.nav-membre:focus-visible,
.nav-super-admin:hover,
.nav-super-admin:focus-visible,
.theme-toggle-btn:hover,
.theme-toggle-btn:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

.discord-icon,
.facebook-icon,
.github-icon,
.admin-icon,
.membre-icon,
.super-admin-icon,
.theme-toggle-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.theme-toggle-btn .theme-icon-moon {
  display: none;
}

.theme-toggle-btn.is-dark .theme-icon-sun {
  display: none;
}

.theme-toggle-btn.is-dark .theme-icon-moon {
  display: block;
}

.nav-menu {
  position: relative;
}

.nav-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--gold-ink);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.nav-hamburger::-webkit-details-marker {
  display: none;
}

.nav-hamburger:hover,
.nav-hamburger:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-menu-list {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 260px;
  max-width: 90vw;
  margin-top: 6px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nav-menu-list a {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--cream);
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.4;
  word-break: break-word;
}

.nav-menu-list a:hover,
.nav-menu-list a:focus-visible {
  background: rgba(244, 202, 27, 0.15);
  color: var(--gold-ink);
}

.calendar-icon-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold-ink);
  border-radius: 8px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.calendar-icon-btn:hover,
.calendar-icon-btn:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

.calendar-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============ Lien d'évitement ============ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #0a0a0a;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Barre de navigation (sous-pages) ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: calc(10px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-right)) 10px calc(24px + env(safe-area-inset-left));
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 202, 27, 0.22);
}

.nav-title {
  flex: 1 0 auto;
  text-align: left;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  color: var(--gold-ink);
  text-transform: uppercase;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
}

.site-nav .nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  margin-right: 16px;
  border-radius: 8px;
}

.site-nav .nav-logo::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: var(--white);
}

.site-nav .nav-logo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.site-nav .nav-logo img {
  height: 42px;
  width: auto;
}

/* ============ Espace membre ============ */
.member-page {
  text-align: left;
}

.member-project .schedule-link {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  align-self: stretch;
  justify-content: flex-start;
  margin-bottom: 28px;
}

/* Menu de l'administration (voir js/admin-tabs.js) : colonne à gauche sur ordinateur, bouton « Menu » sur téléphone */
.page.avec-menu-admin {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
}

.menu-admin {
  flex: 0 0 210px;
  position: sticky;
  top: 90px;
  align-self: flex-start;
  margin: 0;
  text-align: left;
  font-family: "Rajdhani", sans-serif;
}

.admin-contenu {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-admin-bouton {
  display: none;
}

.menu-admin-titre {
  margin: 22px 0 6px;
  padding: 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.menu-admin-titre:first-child {
  margin-top: 0;
}

.menu-admin-lien {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.menu-admin-lien:hover,
.menu-admin-lien:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

.menu-admin-lien.active {
  background: var(--gold);
  color: var(--ink-strong);
}

/* Nombre de fiches en attente, à côté de « Fiches reçues » */
.menu-admin-pastille {
  display: inline-block;
  min-width: 1.4em;
  margin-left: 8px;
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--ink-strong);
  background: var(--gold);
  border-radius: 999px;
}

.menu-admin-lien.active .menu-admin-pastille {
  color: var(--gold);
  background: var(--ink-strong);
}

/* Espace membre : le contenu garde sa mise en page habituelle (flux normal, texte à gauche) */
.member-page.avec-menu-admin .admin-contenu {
  display: block;
  text-align: left;
}

@media (max-width: 960px) {
  .page.avec-menu-admin {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu-admin {
    flex: none;
    position: static;
    width: 100%;
    margin-bottom: 22px;
  }

  .menu-admin-bouton {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
  }

  .menu-admin.ouvert .menu-admin-bouton {
    border-color: var(--gold);
  }

  .menu-admin-liste {
    display: none;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  .menu-admin.ouvert .menu-admin-liste {
    display: block;
  }
}

.tab-btn {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover,
.tab-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold-ink);
}

.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-strong);
}

.bureau-intro {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 16px;
}

.bureau-roles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.bureau-roles li {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cream);
  display: flex;
  gap: 10px;
}

.bureau-roles .arrow {
  color: var(--gold-ink);
  flex-shrink: 0;
}

.members-count {
  color: var(--gray-text);
  margin: 0 0 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-tint);
}

.member-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.member-role {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-link-card {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-tint);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tool-link-card:hover,
.tool-link-card:focus-visible {
  border-color: var(--gold);
}

.tool-link-nom {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-ink);
  margin-bottom: 4px;
}

.tool-link-desc {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cream);
}

.member-name {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  text-transform: uppercase;
}

.member-date {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--gray-text);
}

.member-text {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--cream);
}

.member-contact {
  margin: 4px 0 0;
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray-text);
  overflow-wrap: anywhere;
}

.member-contact a {
  color: inherit;
}

.tab-placeholder {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-text);
}

.toggle-all-btn {
  display: block;
  margin: 0 auto 24px 0;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.toggle-all-btn:hover,
.toggle-all-btn:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

.project-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  text-align: left;
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.15s ease;
}

.project-title:hover,
.project-title:focus-visible {
  color: var(--gold-ink);
}

.project-title::-webkit-details-marker {
  display: none;
}

.project-title::before {
  content: "\25B6";
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.6em;
  color: var(--gold-ink);
  transition: transform 0.15s ease;
}

.member-project[open] > .project-title::before {
  transform: rotate(90deg);
}

.member-project > .project-meta {
  margin-top: 20px;
  margin-bottom: 16px;
}

.description-label {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-ink);
  margin-bottom: 6px;
}

.project-description {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  resize: vertical;
  overflow: auto;
}

/* Corps d'un projet (espace membre) : vignette à gauche si le projet a une image, description à droite */
.project-corps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.project-image {
  flex: 0 0 auto;
  width: 240px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.project-texte {
  flex: 1 1 280px;
  min-width: 0;
}

.contact-form {
  width: 100%;
  align-self: stretch;
  margin-top: 32px;
  text-align: left;
}

.admin-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  align-self: stretch;
  align-items: flex-start;
}

.admin-layout .contact-form {
  flex: 1 1 320px;
  margin-top: 0;
}

.member-card-preview-wrap {
  flex: 1 1 260px;
}

.form-field {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-ink);
  margin-bottom: 6px;
}

.form-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}

/* Safari iOS ignore un simple width:100% sur le contrôle natif type=date,
   qui garde sa largeur interne et déborde. Seul un rétrécissement via flex
   est respecté de façon fiable sur ce contrôle précis. */
.form-input-wrap {
  display: flex;
  width: 100%;
}

.form-input-wrap input.form-input[type="date"] {
  flex: 1;
  min-width: 0;
  width: auto;
}

.form-textarea {
  resize: vertical;
  /* Le texte passe à la ligne : jamais de barre de défilement horizontale (Safari en montrait une) */
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

.password-field {
  position: relative;
}

.password-field .form-input {
  width: 100%;
  padding-right: 78px;
}

.password-field .form-input::placeholder {
  color: var(--gray-text);
  opacity: 0.55;
  text-overflow: ellipsis;
}

/* Indicateur de validité du mot de passe, placé à gauche de l'œil */
.password-status {
  position: absolute;
  top: 50%;
  right: 44px;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: auto;
  cursor: default;
}

.password-status.is-ok {
  color: #2fa84f;
}

.password-status.is-ko {
  color: #e4484a;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  color: var(--gold-ink);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

.file-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-dropzone {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.file-dropzone.is-dragover {
  background: rgba(244, 202, 27, 0.1);
  border-color: var(--gold);
}

.file-dropzone-text {
  color: var(--gray-text);
  font-size: 0.85rem;
  margin: 8px 0 0;
}

.file-clear-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--gold-ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s ease;
}

.file-clear-btn:hover,
.file-clear-btn:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

.form-char-count {
  color: var(--gray-text);
  font-size: 0.85rem;
  text-align: right;
  margin: 4px 0 0;
}

.contact-form .cf-turnstile {
  margin-top: 20px;
}

.form-checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox-field input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-checkbox-field label {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox-field label a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(244, 202, 27, 0.6);
  text-underline-offset: 3px;
}

.form-checkbox-field label a:hover,
.form-checkbox-field label a:focus-visible {
  color: var(--gold-ink);
  text-decoration-color: var(--gold-ink);
}

.form-privacy-note {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 16px 0 0;
}

.form-privacy-note a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(201, 201, 201, 0.4);
  text-underline-offset: 3px;
}

.form-privacy-note a:hover,
.form-privacy-note a:focus-visible {
  color: var(--gold-ink);
  text-decoration-color: var(--gold-ink);
}

.form-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-input.input-error {
  border-color: #e4484a;
  color: #e4484a;
}

.avertissement-rouge {
  color: #e4484a;
}

#form-bureau,
#bureau-roles-container,
#form-projets,
#projets-container {
  width: 100%;
  align-self: stretch;
}

.bureau-role-row {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.bureau-role-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.bureau-role-input {
  flex: 1 1 200px;
}

.bureau-role-select {
  flex: 1 1 200px;
}

.bureau-role-texte {
  width: 100%;
}

.bureau-row-move {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* « Supprimer ce rôle » : de l'autre côté des boutons Monter / Descendre */
.bureau-row-move .bureau-supprimer-btn {
  margin-left: auto;
}

.projets-editeur {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  align-self: stretch;
  text-align: left;
}

.projets-liste-col {
  flex: 3 1 460px;
  min-width: 0;
}

/* Liste des projets : tableau défilant, lignes cliquables, tri par colonne, archiver et poubelle par ligne */
.projets-table-wrap {
  margin-top: 16px;
}

.projets-table td.col-nom {
  width: 46%;
}

.projets-table tbody tr {
  cursor: pointer;
}

.liste-defilante .invites-table.projets-table tbody tr:hover {
  background: rgba(244, 202, 27, 0.15);
}

.liste-defilante .invites-table.projets-table tbody tr.active {
  background: var(--gold);
  color: var(--ink-strong);
}

.projets-table tbody tr.archive td:not(.actions-ligne) {
  opacity: 0.6;
}

.projets-table .projets-liste-item {
  display: inline;
  padding: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.projets-table tbody tr.active .bouton-poubelle {
  color: var(--ink-strong);
}

.projets-table tbody tr.active .bouton-poubelle:hover,
.projets-table tbody tr.active .bouton-poubelle:focus-visible {
  background: rgba(0, 0, 0, 0.12);
}

.projets-table .actions-ligne {
  white-space: nowrap;
}

/* Image d'un projet dans le détail : aperçu de 240 px et bouton pour la retirer */
.projet-apercu {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.projet-apercu img {
  width: 240px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Bouton Enregistrer : à gauche, et absent tant qu'il n'y a rien à enregistrer */
.projets-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: flex-start;
  margin-top: 20px;
}

.projets-actions .projets-enregistrer {
  margin: 0;
}

.projets-enregistrer[hidden] {
  display: none;
}

.projets-detail-col {
  flex: 2 1 320px;
  min-width: 0;
}

.bureau-move-btn {
  color: var(--gold-ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bureau-move-btn:hover,
.bureau-move-btn:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

.login-taken {
  color: var(--gold-ink);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: none;
}

.form-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-submit-btn {
  display: block;
  margin: 20px 0 0;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.form-submit-btn:hover,
.form-submit-btn:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

a.form-submit-btn {
  display: inline-block;
  text-decoration: none;
}

.project-description:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.project-divider {
  position: relative;
  height: 2px;
  background: var(--gold);
  margin: 20px 0;
}

.project-divider::before,
.project-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--bg);
  transform: translateY(-50%);
}

.project-divider::before {
  left: -4px;
}

.project-divider::after {
  right: -4px;
}

.project-meta p {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-text);
}

.project-meta p + p {
  margin-top: 8px;
}

.project-meta .meta-label {
  color: var(--gold-ink);
  font-weight: 700;
}

/* ============ Pages d'atelier : en construction ============ */
.workshop-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.construction-text {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 3.4vw, 1.4rem);
  color: var(--white);
  max-width: 480px;
}

.construction-text.contact-split {
  width: 100%;
  max-width: none;
  white-space: nowrap;
}

.construction-text.contact-split.form-intro {
  margin-top: 64px;
  white-space: normal;
}

#membre-sections {
  width: 100%;
  align-self: stretch;
}

#js-required-content {
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.schedule-noscript {
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  text-align: center;
}

.agenda-url-label {
  color: var(--white);
}

.agenda-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 20px;
  text-align: center;
}

.agenda-embed {
  width: 100%;
  align-self: stretch;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.agenda-embed iframe {
  display: block;
}

.admin-procedure-divider {
  width: 100%;
  align-self: stretch;
}

.fusion-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  align-self: stretch;
}

.admin-procedure {
  width: 100%;
  align-self: stretch;
  max-width: none;
  text-align: left;
  color: var(--cream);
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.admin-procedure:first-of-type {
  margin-top: 24px;
}

.admin-procedure:last-of-type {
  margin-bottom: 0;
}

/* ============ Bandeau mentions légales ============ */
.legal-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 24px calc(28px + env(safe-area-inset-bottom));
}

.legal-footer a {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray-text);
  text-decoration: underline;
  text-decoration-color: rgba(201, 201, 201, 0.4);
  text-underline-offset: 3px;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--gold-ink);
  text-decoration-color: var(--gold-ink);
}

/* ============ Page mentions légales ============ */
.legal-page {
  text-align: left;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-ink);
  margin-bottom: 8px;
}

.legal-maj {
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--gray-text);
  text-align: left;
}

.legal-sous-section {
  margin: 18px 0 0 32px;
}

.legal-section .legal-sous-section p {
  margin: 0 0 10px;
}

.legal-section .legal-sous-section h3 {
  margin: 0 0 8px;
}

.legal-section h3 {
  margin: 22px 0 6px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-ink);
  text-align: left;
}

.legal-section p {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.6;
}

/* Admin : invitations des membres */
.admin-sous-titre {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-ink);
  text-align: left;
  align-self: stretch;
  margin: 28px 0 10px;
}

.table-defilement {
  align-self: stretch;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  margin: 8px 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.invites-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--cream);
}

.invites-table th,
.invites-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.invites-table th {
  color: var(--gold-ink);
  font-weight: 700;
}

.invites-table tbody tr:last-child td {
  border-bottom: none;
}

.invites-table .actions-ligne {
  white-space: nowrap;
}

.invites-table .actions-ligne form {
  display: inline-block;
  margin-right: 6px;
}

/* Listes d'adresses du mailing : lignes serrées, couleurs alternées, zone qui défile (15 lignes visibles au plus) */
.liste-defilante {
  --ligne-liste: 34px;
  max-height: calc(var(--ligne-liste) * 15 + 38px);
  overflow-y: auto;
}

.liste-defilante .invites-table th,
.liste-defilante .invites-table td {
  height: var(--ligne-liste);
  padding: 2px 10px;
  border-bottom: 0;
  line-height: 1.2;
}

.liste-defilante .invites-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 38px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.liste-defilante .invites-table tbody tr:nth-child(even) {
  background: rgba(244, 202, 27, 0.08);
}

.liste-defilante .invites-table .actions-ligne {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.liste-defilante .invites-table form {
  margin: 0;
}

/* Titre de la colonne « Source » : cadré à droite comme les étiquettes « via sa fiche » */
.liste-defilante .invites-table th.col-source {
  text-align: right;
}

.liste-defilante .poubelle-vide {
  display: inline-block;
  width: 30px;
  height: 30px;
}

.liste-defilante .invites-table .col-case {
  width: 34px;
  padding-right: 0;
}

.liste-defilante .invites-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  vertical-align: middle;
  accent-color: var(--gold);
  cursor: pointer;
}

.liste-defilante .bouton-poubelle {
  width: 30px;
  height: 30px;
}

.liste-defilante .invites-table .form-submit-btn {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 3px 12px;
  font-size: 0.9rem;
}

/* Bouton suivi d'une note, sur la même ligne (elle passe dessous si la place manque) */
.bouton-et-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.bouton-et-note .form-submit-btn {
  margin: 0;
}

.note-bouton {
  margin: 0;
  flex: 1 1 260px;
  text-align: left;
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
}

/* Flèches de tri à côté d'un titre de colonne */
.tri-entete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tri-fleches {
  display: inline-flex;
  gap: 2px;
}

.tri-fleche {
  padding: 2px 4px;
  font-size: 0.7rem;
  line-height: 1;
  color: var(--gold-ink);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.45;
}

.tri-fleche:hover,
.tri-fleche:focus-visible {
  opacity: 1;
  background: rgba(244, 202, 27, 0.15);
}

.tri-fleche[aria-pressed="true"] {
  opacity: 1;
}

.etiquette {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 0.75rem;
  color: var(--gold-ink);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.btn-petit {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold-ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}

.btn-petit:hover,
.btn-petit:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

/* Admin : fiches reçues */
.fiche-recue {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
}

.fiche-recue-choix {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-ink);
  cursor: pointer;
}

.fiche-recue-meta {
  margin: 4px 0 10px;
  font-size: 0.85rem;
  color: var(--gray-text);
}

.fiche-recue-avant {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--gray-text);
}

.fiche-recue-avant summary {
  cursor: pointer;
  color: var(--gold-ink);
}

/* Texte d'explication plus lisible (page Invitations) */
.admin-procedure-grand {
  font-size: 1.1rem;
}

/* Erreurs de la liste d'invitations (une ligne par problème) */
.liste-erreurs {
  list-style: disc;
  margin: 8px 0 0;
  padding-left: 22px;
  color: #e4484a;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

.liste-erreurs[hidden] {
  display: none;
}

/* Aide à la saisie de la liste d'invitations */
.aide-saisie {
  align-self: stretch;   /* dans la colonne de contenu des pages admin : pleine largeur, à gauche (pas centré) */
  margin: 4px 0 10px;
  padding-left: 22px;
  color: var(--cream);
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: left;
}

p.aide-saisie {
  padding-left: 0;   /* le retrait de 22 px sert aux listes à puces, pas à une simple phrase */
}

.aide-saisie li {
  margin-bottom: 4px;
}

.aide-saisie code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.95em;
  color: var(--gold-ink);
  background: rgba(244, 202, 27, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Sections repliables de la page Invitations */
.section-repliable {
  align-self: stretch;
  width: 100%;
  text-align: left;
}

.section-repliable > summary {
  display: block;
  text-align: left;
  cursor: pointer;
  list-style: none;
  margin-top: 0;
}

.section-repliable > summary::-webkit-details-marker {
  display: none;
}

.section-repliable > summary::before {
  content: "\25B8";
  display: inline-block;
  width: 1.3em;
}

.section-repliable[open] > summary::before {
  content: "\25BE";
}

/* Message d'erreur immédiat sous le champ photo */
#f-photo-erreur[hidden] {
  display: none;
}

/* Message d'erreur immédiat sous un champ photo (formulaires admin) */
.liste-pj {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.liste-pj[hidden] {
  display: none;
}

.liste-pj li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}

.liste-pj li.refuse span {
  color: #e4484a;
  font-weight: 600;
}

.bouton-poubelle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold-ink);
  cursor: pointer;
}

.bouton-poubelle:hover,
.bouton-poubelle:focus-visible {
  background: rgba(244, 202, 27, 0.15);
}

/* Poubelle : le couvercle se soulève au survol */
.bouton-poubelle .couvercle {
  transform-box: view-box;
  transform-origin: 21px 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .bouton-poubelle .couvercle {
    transition: transform 0.15s ease-out;
  }
}

.bouton-poubelle:hover .couvercle,
.bouton-poubelle:focus-visible .couvercle {
  transform: rotate(20deg);
}

.photo-erreur {
  color: #e4484a;
  font-weight: 600;
}

.photo-erreur[hidden] {
  display: none;
}

/* Panneau de confirmation (page Invitations) : un message et un bouton OK */
.boite-confirmation {
  margin: auto;                 /* le style général du site annule la marge automatique qui centre une fenêtre modale */
  max-width: min(520px, 90vw);
  padding: 22px 26px;
  color: var(--cream);
  background: var(--panel);
  border: 2px solid var(--gold);
  border-radius: 12px;
  font-family: "Rajdhani", sans-serif;
  text-align: left;
}

.boite-confirmation::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.boite-confirmation h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-ink);
  text-align: left;
}

.boite-confirmation p,
.boite-confirmation li {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

.boite-confirmation ul {
  margin: 0 0 8px;
  padding-left: 22px;
}

.boite-confirmation .boite-erreur {
  color: #e4484a;
  font-weight: 600;
}

.boite-confirmation .boite-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Panneau « lien personnel » : lien sélectionnable et bouton de copie */
.boite-confirmation .lien-copie {
  width: 100%;
  min-width: 320px;
  margin: 4px 0 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
}

.boite-confirmation .boite-ok {
  color: #2fa84f;
  font-weight: 600;
}

.boite-confirmation .boite-ok[hidden] {
  display: none;
}

.boite-confirmation .boite-actions .form-submit-btn {
  width: auto;
  margin: 0;
}

/* Bouton d'apparence d'un lien (ex. « Rétablir le texte par défaut ») */
.lien-discret {
  padding: 0;
  font: inherit;
  color: var(--gold-ink);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* Écrire un mail : « Envoyer » et « Abandonner » côte à côte */
.boutons-envoi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: stretch;   /* pleine largeur, boutons à gauche (pas centrés) */
  justify-content: flex-start;
  gap: 12px;
}

.boutons-envoi .form-submit-btn {
  margin: 0;
}

.btn-abandonner {
  color: var(--gray-text);
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

/* Demande de confirmation : le bouton « Annuler » est moins en avant que « Confirmer » */
.boite-confirmation .btn-annuler {
  color: var(--gray-text);
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

/* Page « Éditer un membre » : choix du membre cadré à gauche, liste à côté */
.choix-membre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  align-self: stretch;
  width: 100%;
  margin: 8px 0 4px;
}

.choix-membre .form-label {
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

.choix-membre .form-input {
  width: auto;
  min-width: min(320px, 100%);
}

/* Aide technique, discrète, en bas d'une section */
.aide-technique {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gray-text);
}

/* Retour à l'espace membre depuis les pages d'administration : collé au bouton de thème */
.site-nav .nav-membre,
.site-nav .nav-super-admin {
  margin-right: -10px;
}

/* Mailing (admin) */
.choix-listes {
  border: 1px solid rgba(244, 202, 27, 0.3);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.choix-listes legend {
  padding: 0 6px;
  color: var(--gold-ink);
}
.choix-listes label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
