/* Polices locales conservées pour garder l’identité visuelle du site. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
}

/* Thème ORT et éléments communs. */
:root {
  --blue: #07558c;
  --blue-deep: #032f61;
  --cyan: #12b9e5;
  --ink: #142231;
  --muted: #61707c;
  --cream: #f6efe7;
  --line: #d8e8f1;
  --header-height: 6rem;
  --font-body: Inter, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", Inter, sans-serif;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-fade-out .17s ease both;
}

::view-transition-new(root) {
  animation: page-fade-in .38s ease both;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
}

body.dialog-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
  text-underline-offset: .2em;
}

button {
  font: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  overflow-wrap: break-word;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -.04em;
}

h3 {
  font-size: 1.45rem;
}

.container {
  width: min(100% - clamp(3rem, 16vw, 20rem), 96rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 7vw, 7rem);
}

main {
  padding-top: var(--header-height);
  min-height: 65vh;
}

main > section {
  animation: element-enter .52s cubic-bezier(.2, .75, .25, 1) both;
}

main > section:nth-child(2) {
  animation-delay: .06s;
}

main > section:nth-child(3) {
  animation-delay: .1s;
}

body.page-leaving main,
body.page-leaving .site-footer {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .17s ease, transform .17s ease;
}

@keyframes element-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes page-fade-out {
  to { opacity: 0; transform: scale(.995); }
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(10px); }
}

.is-home main {
  padding-top: 0;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .75rem 1.2rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, transform .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .65;
  transform: none;
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: .68;
  transform: none;
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-light {
  background: white;
  color: var(--blue-deep);
}

.button-outline {
  border-color: var(--blue);
  color: var(--blue);
}

.button-outline:hover {
  background: #e9f4fb;
}

.button-secondary {
  border-color: var(--blue);
  background: white;
  color: var(--blue);
}

.button-secondary:hover {
  background: #e9f4fb;
}

.button-danger {
  border-color: #e2a6af;
  background: #fff5f6;
  color: #a51f35;
}

.button-danger:hover {
  background: #ffe7ea;
}

.button-outline-light {
  border-color: #ffffff88;
  color: white;
}

.text-link {
  color: var(--blue);
  font-weight: 600;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: white;
  color: var(--blue-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Navigation : visible en haut, masquée à la descente. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: white;
  background: var(--blue-deep);
  animation: navigation-enter .42s cubic-bezier(.2, .75, .25, 1) both;
  transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}

@keyframes navigation-enter {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

.is-home .site-header.menu-ready:not(.is-scrolled):not(.menu-open) {
  background: transparent;
}

.site-header.is-hidden {
  transform: translateY(-105%);
  pointer-events: none;
}

.site-header.menu-open {
  max-height: 100svh;
  overflow-y: auto;
}

.site-header:not(.menu-ready) {
  position: relative;
  background: var(--blue-deep);
}

.site-header:not(.menu-ready) + main {
  padding-top: 0;
}

.site-header:focus-within {
  transform: translateY(0);
  pointer-events: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .9rem;
}

.site-nav a {
  border-radius: 999px;
  padding: .6rem .7rem;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"]:not(.nav-login) {
  background: #ffffff20;
}

.site-nav a:hover {
  transform: translateY(-2px);
}

.site-header.is-scrolled {
  box-shadow: 0 .8rem 2rem #03162e26;
}

.site-nav .nav-login {
  margin-left: .6rem;
  padding-inline: 1rem;
}

.site-nav .nav-register {
  margin-left: .6rem;
  padding-inline: 1rem;
}

.site-nav .nav-register + .nav-login {
  margin-left: 0;
}

.menu-toggle {
  align-items: center;
  gap: .6rem;
  border: 1px solid #ffffff66;
  border-radius: .6rem;
  padding: .5rem .75rem;
  background: transparent;
  color: white;
}

/* Accueil : image, présentation et chiffres. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(40rem, 100svh);
  padding-block: calc(var(--header-height) + 4rem) 8rem;
  background: #122237;
  color: white;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #07122644, #07122633 35%, #080d18ed);
  content: "";
}

.hero h1 {
  margin-bottom: 2.5rem;
  font-size: clamp(4.5rem, 8.5vw, 9rem);
  line-height: 1;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: var(--cyan);
}

.hero-content > p {
  max-width: 37rem;
  margin-bottom: 0;
  color: #ffffffe0;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  transform: translateX(-50%);
  font-size: .66rem;
  letter-spacing: .22em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.scroll-arrow {
  animation: float 1.7s ease-in-out infinite;
  font-size: 1.5rem;
  line-height: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(6px); }
}

.about {
  background: var(--cream);
  scroll-margin-top: var(--header-height);
}

.about-title {
  max-width: 42rem;
  margin-bottom: 3rem;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.about-title span {
  color: #0b75b0;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 10rem);
}

.about-description {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.35rem);
  line-height: 1.65;
}

.about-statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.1vw, 2.55rem);
  line-height: 1.22;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: clamp(3.5rem, 7vw, 6rem) 0 0;
  border-top: 1px solid #dcd5cc;
  padding-top: 2.2rem;
}

.about-stats > div {
  display: flex;
  flex-direction: column;
}

.about-stats dt {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.about-stats dd {
  order: -1;
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -.06em;
}

/* Listes communes : événements et articles. */
.events-section {
  background: #f8fbfd;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading .button {
  flex-shrink: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card-grid > *,
.portal-grid > *,
.dashboard-grid > * {
  animation: card-enter .55s cubic-bezier(.2, .75, .25, 1) backwards;
}

.card-grid > :nth-child(2),
.portal-grid > :nth-child(2),
.dashboard-grid > :nth-child(2) {
  animation-delay: .07s;
}

.card-grid > :nth-child(3),
.portal-grid > :nth-child(3),
.dashboard-grid > :nth-child(3) {
  animation-delay: .14s;
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.6rem;
  background: white;
  box-shadow: 0 14px 35px #032f610a;
  overflow-wrap: anywhere;
}

.card h2,
.card h3 {
  margin-bottom: .8rem;
  font-size: 1.5rem;
  letter-spacing: -.02em;
}

.card > p:not(.eyebrow):not(.card-meta):not(.price) {
  color: var(--muted);
}

.event-card > .eyebrow {
  margin-bottom: 2rem;
  color: #0b75b0;
  font-size: .7rem;
  letter-spacing: .1em;
}

.event-card--interactive {
  padding: 0;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.event-card--interactive:hover {
  border-color: #8ac5e3;
  box-shadow: 0 20px 45px #032f6117;
  transform: translateY(-4px);
}

.event-card--interactive:focus-within {
  border-color: var(--cyan);
}

.event-card__trigger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 100%;
  border: 0;
  border-radius: inherit;
  padding: 1.6rem;
  background: transparent;
  color: inherit;
  text-align: left;
}

.event-card__trigger > .eyebrow {
  margin-bottom: 2rem;
  color: #0b75b0;
  font-size: .7rem;
  letter-spacing: .1em;
}

.event-card__title {
  margin-bottom: .8rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.event-card__trigger > span:not(.eyebrow):not(.card-meta):not(.event-card__cta) {
  color: var(--muted);
}

.event-card__trigger .card-meta {
  margin-top: .8rem;
  margin-bottom: -.35rem;
}

.event-card__cta {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--blue);
  font-size: .86rem;
  font-weight: 750;
}

.event-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  border: 1px solid #b9d9e9;
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: radial-gradient(circle at 100% 0%, #12b9e51c, transparent 42%), #fff;
  color: var(--ink);
  box-shadow: 0 28px 75px #032f6140;
}

.event-dialog::backdrop {
  background: #03162e9c;
  backdrop-filter: blur(5px);
}

.event-dialog[open] {
  animation: welcome-in .25s ease;
}

.event-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-deep);
  font-size: 1.6rem;
  line-height: 1;
}

.event-dialog h2 {
  margin: 0 3rem 1rem 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.event-dialog__description {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.event-dialog__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.event-dialog__facts > div {
  border-radius: .9rem;
  padding: 1rem;
  background: #eff7fb;
}

.event-dialog__facts dt {
  margin-bottom: .25rem;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.event-dialog__facts dd {
  margin: 0;
  font-size: .92rem;
}

.event-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.card .card-meta {
  margin-bottom: .4rem;
  color: var(--blue);
  font-size: .85rem;
  font-weight: 600;
}

.price {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  color: var(--muted);
}

/* Pages secondaires et liens de découverte. */
.page-hero,
.portal {
  background: radial-gradient(circle at 85% 0%, #12b9e544, transparent 55%), var(--blue-deep);
  color: white;
}

.page-hero {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.page-hero .eyebrow,
.portal .eyebrow {
  color: #ffffffb3;
}

.page-hero h1 {
  max-width: 65rem;
  margin-bottom: 1.5rem;
}

.page-hero em,
.portal em {
  color: var(--cyan);
}

.page-hero p:last-child {
  max-width: 45rem;
  margin-bottom: 0;
  color: #ffffffcc;
  font-size: 1.2rem;
}

/* Intégration Google Agenda dans un cadre inspiré d'une fenêtre de navigateur. */
.calendar-section {
  padding-block: clamp(4rem, 7vw, 7rem);
  background: #fff;
}

.calendar-container {
  width: min(calc(100% - clamp(2rem, 9vw, 10rem)), 96rem);
  margin-inline: auto;
}

.calendar-selection {
  scroll-margin-top: calc(var(--header-height) + 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid #96cce7;
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(120deg, #eef8fd, #fff);
  box-shadow: 0 1rem 2.5rem #032f610d;
}

.calendar-selection .eyebrow {
  margin-bottom: .5rem;
}

.calendar-selection h2 {
  margin-bottom: .45rem;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.calendar-selection p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.calendar-selection__actions {
  flex: none;
}

.calendar-window {
  overflow: hidden;
  border: 1px solid #d9dee3;
  border-radius: 1.75rem;
  background: #eef4f9;
  box-shadow: 0 1.5rem 3.5rem #14223112;
}

.calendar-window-bar {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.25rem;
  padding: .75rem 1.5rem;
  border-bottom: 1px solid #e1e5e9;
  background: #fff;
  color: #56606a;
  font-size: .9rem;
  font-weight: 500;
}

.calendar-window-bar svg {
  flex: none;
  color: #68717a;
}

.calendar-window-dots {
  display: inline-flex;
  gap: .45rem;
  margin-right: .15rem;
}

.calendar-window-dots i {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: #bb6074;
}

.calendar-window-dots i:nth-child(2) {
  background: #d297a4;
}

.calendar-window-dots i:nth-child(3) {
  background: #e1bdc5;
}

.calendar-embed-scroll {
  overflow-x: auto;
  background: #eef4f9;
  scrollbar-color: var(--blue) #dce7ef;
  scrollbar-width: thin;
}

.google-calendar {
  display: block;
  width: 100%;
  min-width: 48rem;
  height: 650px;
  border: 0;
  background: white;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.portal-card {
  border: 1px solid #ffffff33;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #ffffff08;
  text-decoration: none;
  transition: background-color .2s;
}

.portal-card:hover {
  background: #ffffff15;
}

.portal-card > span {
  display: block;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.portal-card p {
  margin-bottom: 0;
  color: #ffffffb3;
  font-size: .9rem;
}

/* Annuaire public du BDE. */
.team-section {
  min-height: 34rem;
  padding-bottom: clamp(4rem, 8vw, 8rem);
  background: #fff;
}

.team-toolbar {
  border-bottom: 1px solid #e2e7eb;
  background: #fff;
}

.team-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 6rem;
}

.team-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.team-filter select {
  min-width: 16rem;
  border: 1px solid #d7dfe4;
  border-radius: 999px;
  padding: .8rem 2.6rem .8rem 1.2rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: 0 .4rem 1.2rem #032f610a;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: clamp(3rem, 7vw, 6rem);
}

.team-card {
  min-width: 0;
  animation: card-enter .55s cubic-bezier(.2, .75, .25, 1) backwards;
}

.team-card:nth-child(2) { animation-delay: .06s; }
.team-card:nth-child(3) { animation-delay: .12s; }
.team-card:nth-child(4) { animation-delay: .18s; }

.team-card__button {
  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0;
  border-radius: 1.15rem;
  padding: 0;
  background: #dcecf5;
  color: white;
  text-align: left;
  box-shadow: 0 1rem 2.6rem #032f6112;
}

.team-card__button img,
.team-card__placeholder {
  width: 100%;
  height: 100%;
  transition: transform .45s cubic-bezier(.2, .75, .25, 1);
}

.team-card__button img {
  object-fit: cover;
}

.team-card__placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 70% 25%, #12b9e5, transparent 35%), linear-gradient(145deg, var(--blue), var(--blue-deep));
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 600;
}

.team-card__overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: .1rem;
  padding: 5rem 1.25rem 1.2rem;
  background: linear-gradient(transparent, #031526e8);
}

.team-card__overlay strong {
  font-size: 1.05rem;
}

.team-card__overlay small {
  color: #ffffffbf;
}

.team-card__button:hover img,
.team-card__button:hover .team-card__placeholder {
  transform: scale(1.045);
}

.member-dialog {
  width: min(58rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  overflow: auto;
  border: 1px solid #b9d9e9;
  border-radius: 1.5rem;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 75px #032f614d;
}

.member-dialog::backdrop {
  background: #03162e9c;
  backdrop-filter: blur(5px);
}

.member-dialog[open] {
  animation: welcome-in .25s ease;
}

.member-dialog .event-dialog__close {
  z-index: 2;
}

.member-dialog__layout {
  display: grid;
  grid-template-columns: minmax(17rem, .85fr) minmax(20rem, 1.15fr);
  min-height: 32rem;
}

.member-dialog__portrait {
  min-height: 32rem;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
}

.member-dialog__portrait img,
.member-dialog__portrait span {
  width: 100%;
  height: 100%;
}

.member-dialog__portrait img {
  object-fit: cover;
}

.member-dialog__portrait span {
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-display);
  font-size: 9rem;
}

.member-dialog__content {
  align-self: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.member-dialog__content h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.member-dialog__bio {
  color: var(--muted);
  white-space: pre-line;
}

.member-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}

.prose {
  max-width: 55rem;
}

.prose > p {
  color: var(--muted);
  font-size: 1.15rem;
}

.notice {
  margin-bottom: 2rem;
  border-left: 3px solid var(--cyan);
  border-radius: .25rem;
  padding: 1.25rem 1.5rem;
  background: #f0f7fb;
  color: var(--blue-deep);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* Messages, formulaires et espaces connectés. */
.flash-stack {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: clamp(1rem, 4vw, 3rem);
  z-index: 40;
  display: grid;
  width: min(26rem, calc(100% - 2rem));
  gap: .65rem;
  pointer-events: none;
}

.flash {
  margin: 0;
  border: 1px solid #b9d9e9;
  border-left: 4px solid var(--blue);
  border-radius: .8rem;
  padding: .85rem 1rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1rem 2.5rem #032f6126;
  animation: flash-enter .35s ease both;
}

.flash--success {
  border-left-color: #16824b;
}

.flash--error {
  border-left-color: #bd3045;
}

@keyframes flash-enter {
  from { opacity: 0; transform: translateX(20px); }
}

.form-stack,
.event-admin-form,
.profile-form,
.profile-admin-form,
.contribution-admin-form {
  display: grid;
  gap: 1rem;
}

.form-stack label,
.form-field,
.profile-form label,
.profile-admin-form label,
.contribution-admin-form label {
  display: grid;
  gap: .4rem;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  text-align: left;
}

.form-stack input,
.form-stack select,
.form-stack textarea,
.event-admin-form input,
.event-admin-form textarea,
.event-admin-form select,
.user-row select,
.contribution-admin-form input,
.contribution-admin-form select,
.contribution-admin-form textarea {
  width: 100%;
  border: 1px solid #b8ccd8;
  border-radius: .7rem;
  padding: .72rem .8rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 450;
}

.profile-form input,
.profile-form textarea,
.profile-admin-form input,
.profile-admin-form textarea,
.contribution-admin-form input,
.contribution-admin-form select,
.contribution-admin-form textarea {
  width: 100%;
  border: 1px solid #b8ccd8;
  border-radius: .7rem;
  padding: .72rem .8rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 450;
}

.profile-form input:focus,
.profile-form textarea:focus,
.profile-admin-form input:focus,
.profile-admin-form textarea:focus,
.contribution-admin-form input:focus,
.contribution-admin-form select:focus,
.contribution-admin-form textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid #12b9e526;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus,
.event-admin-form input:focus,
.event-admin-form textarea:focus,
.event-admin-form select:focus,
.user-row select:focus {
  border-color: var(--cyan);
  outline: 3px solid #12b9e526;
}

.form-field small {
  color: var(--muted);
  font-weight: 450;
}

.login-section {
  background: #f8fbfd;
}

.login-card {
  max-width: 30rem;
  margin-inline: auto;
  padding: 2.5rem;
  text-align: center;
}

.login-card .form-stack {
  margin-top: 1.75rem;
}

.login-card h1 {
  font-size: 2.6rem;
}

.login-card .button,
.login-card .text-link {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
}

.register-card {
  max-width: 36rem;
}

.auth-alternative {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.auth-alternative a {
  color: var(--blue);
  font-weight: 700;
}

.register-note {
  margin: .25rem 0 0;
  border-radius: .75rem;
  padding: .85rem 1rem;
  background: #edf7fc;
  color: var(--muted);
  font-size: .8rem;
  text-align: left;
}

.page-hero--compact {
  padding-block: clamp(2.8rem, 5vw, 4.5rem);
}

.account-section,
.admin-section {
  background: #f6fafe;
}

.dashboard-grid,
.admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.profile-editor {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: white;
  box-shadow: 0 1rem 2.8rem #032f610c;
}

.profile-editor__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-editor__heading h2 {
  margin-bottom: .6rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.profile-editor__heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-editor__heading img,
.profile-avatar {
  flex: none;
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
}

.profile-editor__heading img {
  object-fit: cover;
}

.profile-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  color: white;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 650;
}

.profile-form,
.profile-admin-form,
.contribution-admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-tabs {
  display: inline-flex;
  gap: .35rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem;
  background: white;
}

.admin-tabs button {
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.2rem;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.admin-tabs button[aria-selected="true"] {
  background: var(--blue);
  color: white;
  box-shadow: 0 .4rem 1rem #07558c26;
}

.admin-bde-layout {
  display: grid;
  grid-template-columns: minmax(20rem, .75fr) minmax(30rem, 1.25fr);
  align-items: start;
  gap: 1.25rem;
}

.profile-admin-list {
  display: grid;
  gap: 1rem;
}

.profile-admin-row {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 .8rem 2rem #032f610a;
}

.profile-admin-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
}

.profile-admin-summary img,
.profile-admin-summary .profile-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .75rem;
  object-fit: cover;
  font-size: 1.4rem;
}

.profile-admin-summary > div {
  display: grid;
  min-width: 0;
}

.profile-admin-summary > div span {
  overflow: hidden;
  color: var(--muted);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visibility-badge {
  border-radius: 999px;
  padding: .35rem .65rem;
  background: #e2f5e9;
  color: #16623a;
  font-size: .72rem;
  font-weight: 750;
}

.visibility-badge.is-hidden-profile {
  background: #edf0f2;
  color: #69737b;
}

.profile-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.profile-edit-details {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: .8rem;
}

.profile-edit-details summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 700;
}

.profile-edit-details .profile-admin-form {
  margin-top: 1rem;
}

.protected-note {
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.membership-panel {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, #fff, #eff9fe);
  box-shadow: 0 1rem 2.8rem #032f610c;
}

.membership-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.membership-panel__heading h2 {
  margin-bottom: .65rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.membership-panel__heading p:last-child {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--muted);
}

.membership-amount {
  display: grid;
  flex: none;
  justify-items: end;
  gap: .5rem;
}

.membership-amount > strong {
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.contribution-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: .35rem .65rem;
  background: #fff0d7;
  color: #855000;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.contribution-status--pending {
  background: #e8f4fb;
  color: var(--blue-deep);
}

.contribution-status--paid {
  background: #e2f5e9;
  color: #16623a;
}

.contribution-status--exempt {
  background: #edf0f2;
  color: #59656e;
}

.membership-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .75rem;
  margin: 2rem 0 0;
}

.membership-facts div {
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: .85rem 1rem;
  background: #ffffffd9;
}

.membership-facts dt {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.membership-facts dd {
  margin: .2rem 0 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.membership-payment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  margin-top: 1.5rem;
}

.membership-payment p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.membership-history {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.membership-history summary,
.contribution-edit-details summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 750;
}

.table-scroll {
  margin-top: 1rem;
  overflow-x: auto;
}

.contribution-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.contribution-table th,
.contribution-table td {
  border-bottom: 1px solid var(--line);
  padding: .8rem;
  white-space: nowrap;
}

.contribution-table th {
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contribution-admin-layout {
  display: grid;
  grid-template-columns: minmax(18rem, .7fr) minmax(32rem, 1.3fr);
  align-items: start;
  gap: 1.25rem;
}

.contribution-admin-list {
  display: grid;
  gap: .85rem;
}

.contribution-admin-row {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: white;
  box-shadow: 0 .8rem 2rem #032f610a;
}

.contribution-admin-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
}

.contribution-admin-summary > div {
  display: grid;
  min-width: 0;
}

.contribution-admin-summary > div span {
  overflow: hidden;
  color: var(--muted);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contribution-edit-details {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: .8rem;
}

.contribution-admin-form {
  margin-top: 1rem;
}

.dashboard-card,
.admin-panel,
.created-event {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: white;
  box-shadow: 0 1rem 2.8rem #032f610c;
}

.dashboard-card h2,
.admin-panel h2,
.created-event h2 {
  margin-bottom: .8rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.dashboard-card--accent {
  background: linear-gradient(135deg, #eff9fe, #fff);
}

.dashboard-actions,
.created-event,
.created-event .dashboard-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.created-event {
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
  border-color: #8fcee9;
}

.created-event > div {
  max-width: 45rem;
}

.created-event p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-layout {
  grid-template-columns: minmax(18rem, .75fr) minmax(30rem, 1.25fr);
  align-items: start;
}

.admin-panel .form-stack .button {
  margin-top: .5rem;
}

.user-list {
  display: grid;
  gap: .75rem;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: .85rem;
  padding: .9rem 1rem;
  background: #f2f7fa;
}

.user-row > div:first-child {
  display: grid;
}

.user-row > div:first-child span {
  color: var(--muted);
  font-size: .78rem;
}

.user-row form {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.user-row select {
  min-width: 9.5rem;
}

.protected-badge {
  border-radius: 999px;
  padding: .45rem .75rem;
  background: #dceef8;
  color: var(--blue-deep);
  font-size: .75rem;
  font-weight: 750;
}

.section-heading--tools {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.25rem 1.4rem;
  background: #f4fafe;
}

.section-heading--tools h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.admin-event-dialog {
  width: min(58rem, calc(100% - 2rem));
}

.event-admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.75rem;
}

.form-field--wide {
  grid-column: 1 / -1;
}

/* Pied de page partagé. */
.site-footer {
  padding-block: 4rem 1.5rem;
  background: var(--blue-deep);
  color: #ffffffbf;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  width: 15rem;
  height: auto;
  margin-bottom: 1.5rem;
}

.site-footer h2 {
  margin-bottom: 1.2rem;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li,
.site-footer address a {
  margin-bottom: .65rem;
}

.site-footer address {
  font-style: normal;
}

.site-footer address a {
  display: block;
}

.site-footer a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: white;
  text-decoration: underline;
}

.copyright {
  margin: 3rem 0 0;
  border-top: 1px solid #ffffff26;
  padding-top: 1.5rem;
  color: #ffffff80;
  font-size: .75rem;
}

/* Fenêtre de bienvenue : le dialogue natif gère le focus et la touche Échap. */
.welcome {
  width: min(44rem, calc(100% - 2.5rem));
  max-height: calc(100svh - 2.5rem);
  border: 1px solid #ffffff33;
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  background: radial-gradient(circle at 100% 0%, #12b9e544, transparent 50%), linear-gradient(135deg, #063d81, #0a77aa);
  color: white;
  box-shadow: 0 28px 75px #00000066;
}

.welcome::backdrop {
  background: #030c20aa;
  backdrop-filter: blur(4px);
}

.welcome[open] {
  animation: welcome-in .25s ease;
}

@keyframes welcome-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #ffffff88;
  border-radius: .4rem;
  background: transparent;
  color: white;
  font-size: 1.4rem;
  line-height: 1;
}

.welcome-badge {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: #ffffff26;
}

.welcome .eyebrow {
  color: #ffffffaa;
}

.welcome h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.welcome > p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: #ffffffd6;
  font-size: 1.12rem;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Adaptation aux tablettes et mobiles. */
@media (max-width: 1250px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 1rem;
  }

  .menu-toggle:not([hidden]) {
    display: inline-flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-block: 1rem .5rem;
  }

  .site-header.menu-ready .site-nav {
    display: none;
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .site-nav .nav-login {
    margin-left: 0;
  }

  .site-nav .nav-register {
    margin-left: 0;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1251px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  .card-grid,
  .footer-grid,
  .dashboard-grid,
  .admin-layout,
  .admin-bde-layout,
  .contribution-admin-layout {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .calendar-selection {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    gap: 2rem;
  }

  .user-row,
  .user-row form,
  .created-event {
    align-items: stretch;
    flex-direction: column;
  }

  .user-row form .button {
    width: 100%;
  }

  .membership-panel__heading {
    flex-direction: column;
  }

  .membership-amount {
    justify-items: start;
  }

  .member-dialog__layout {
    grid-template-columns: 1fr;
  }

  .member-dialog__portrait {
    min-height: 22rem;
    max-height: 55svh;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 5rem;
  }

  .brand img {
    width: 2.75rem;
    height: 2.75rem;
  }

  .header-inner {
    padding-block: .75rem;
  }

  .hero {
    min-height: max(37rem, 100svh);
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 12vw, 5rem);
  }

  .about-stats {
    gap: .75rem;
  }

  .about-stats dt {
    font-size: .62rem;
    letter-spacing: .08em;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .team-toolbar__inner,
  .profile-editor__heading {
    align-items: stretch;
    flex-direction: column;
    padding-block: 1.2rem;
  }

  .team-filter select,
  .team-filter {
    width: 100%;
  }

  .team-grid,
  .profile-form,
  .profile-admin-form,
  .contribution-admin-form {
    grid-template-columns: 1fr;
  }

  .profile-form .form-field--wide,
  .profile-admin-form .form-field--wide,
  .contribution-admin-form .form-field--wide {
    grid-column: auto;
  }

  .profile-admin-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-admin-summary .visibility-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .contribution-admin-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contribution-admin-summary .contribution-status {
    grid-column: 1 / -1;
  }

  .admin-tabs {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }

  .login-card {
    padding: 1.5rem;
  }

  .calendar-container {
    width: calc(100% - 1.5rem);
  }

  .calendar-window {
    border-radius: 1.2rem;
  }

  .calendar-window-bar {
    padding-inline: 1rem;
  }

  .event-dialog__facts {
    grid-template-columns: 1fr;
  }

  .event-admin-form {
    grid-template-columns: 1fr;
  }

  .event-admin-form .form-field--wide {
    grid-column: auto;
  }

  .event-dialog__actions .button,
  .calendar-selection__actions,
  .calendar-selection__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
