:root {
  --ink: #162033;
  --muted: #687187;
  --surface: #ffffff;
  --soft: #f4f5fb;
  --primary: #5651e7;
  --primary-dark: #3733b8;
  --accent: #31b98a;
  --danger: #bb3c4a;
  --line: rgba(48, 57, 91, .14);
  --shadow: 0 28px 80px rgba(35, 45, 83, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(
      circle at 8% 2%,
      rgba(86, 81, 231, .13),
      transparent 31rem
    ),
    linear-gradient(180deg, #f9faff, #f0f3f8);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 74px);
  border-bottom: 1px solid var(--line);
  background: rgba(249, 250, 255, .88);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -.055em;
  text-decoration: none;
}

.brand span {
  color: var(--primary);
}

main {
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  min-height: 620px;
  padding: 70px 0;
}

.eyebrow {
  color: var(--primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  line-height: .91;
  letter-spacing: -.075em;
}

.hero h1 span {
  color: var(--primary);
}

.hero-content > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.button.primary {
  color: #fff;
  background:
    linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 13px 28px rgba(86, 81, 231, .22);
}

.button.secondary {
  border-color: rgba(86, 81, 231, .28);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, .75);
}

.button.danger {
  border-color: rgba(187, 60, 74, .25);
  color: var(--danger);
  background: rgba(187, 60, 74, .06);
}

.button.full {
  width: 100%;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.connection-card {
  position: absolute;
  width: min(280px, 75%);
  padding: 22px;
  border: 1px solid rgba(86, 81, 231, .18);
  border-radius: 23px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}

.connection-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.connection-card strong {
  font-size: 1.13rem;
}

.card-one {
  top: 30px;
  left: 0;
}

.card-two {
  top: 165px;
  right: 0;
}

.card-three {
  right: 70px;
  bottom: 10px;
}

.connection-line {
  position: absolute;
  top: 94px;
  left: 90px;
  width: 280px;
  height: 220px;
  border: 2px dashed rgba(86, 81, 231, .27);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 80px;
}

.benefits article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
}

.benefit-number {
  color: var(--primary);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.benefits h2 {
  margin: 36px 0 10px;
  font-size: 1.6rem;
}

.benefits p,
.section-intro,
.muted,
.form-note,
.next-step p {
  color: var(--muted);
  line-height: 1.55;
}

.account-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: clamp(35px, 7vw, 100px);
  align-items: start;
  padding: 70px clamp(24px, 5vw, 70px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}

.account-section h2 {
  margin: 12px 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.account-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
  padding: 5px;
  border-radius: 15px;
  background: #e8eaf3;
}

.auth-tab {
  padding: 11px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  font-weight: 800;
  background: transparent;
}

.auth-tab.active {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 5px 18px rgba(48, 57, 91, .1);
}

.auth-form,
.profile-form {
  display: grid;
  gap: 15px;
}

.auth-form label span,
.profile-form label span {
  display: block;
  margin-bottom: 6px;
  color: #434b60;
  font-size: .82rem;
  font-weight: 800;
}

.auth-form input,
.profile-form input,
.profile-form select {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid rgba(48, 57, 91, .18);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
}

.auth-form input:focus,
.profile-form input:focus,
.profile-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(86, 81, 231, .1);
}

.form-note {
  margin: 0;
  font-size: .82rem;
}

.member-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.member-head h3 {
  margin: 7px 0 4px;
  font-size: 1.7rem;
}

.member-head p {
  margin: 0;
}

.status-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #147553;
  font-size: .72rem;
  font-weight: 900;
  background: rgba(49, 185, 138, .14);
}

.next-step {
  margin: 22px 0;
  padding: 18px;
  border: 1px dashed rgba(86, 81, 231, .3);
  border-radius: 16px;
  background: rgba(86, 81, 231, .05);
}

.next-step span {
  color: var(--primary);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.next-step strong {
  display: block;
  margin-top: 7px;
}

.next-step p {
  margin: 7px 0 0;
  font-size: .88rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto;
  padding: 48px 0;
  color: var(--muted);
}

footer p {
  margin: 0;
}

.footer-brand {
  font-size: 1.25rem;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 17px;
  border: 1px solid rgba(86, 81, 231, .24);
  border-radius: 14px;
  color: #fff;
  font-weight: 750;
  line-height: 1.4;
  background: #252552;
  box-shadow: var(--shadow);
}

.toast.error {
  background: #762f3a;
}

.toast.success {
  background: #17684e;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-visual {
    min-height: 350px;
  }

  .benefits,
  .account-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  main,
  footer {
    width: min(100% - 24px, 1220px);
  }

  .topbar {
    min-height: 66px;
    padding: 10px 14px;
  }

  .brand {
    font-size: 1.38rem;
  }

  .hero {
    padding: 52px 0;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-visual {
    display: none;
  }

  .benefits {
    grid-template-columns: 1fr;
    padding-bottom: 50px;
  }

  .account-section {
    padding: 28px 16px;
    border-radius: 24px;
  }

  .account-card {
    padding: 17px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ==========================================================
   PUBLIC NAVIGATION V1
   ========================================================== */

.public-nav-zone {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 16px;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.public-nav a {
  position: relative;
  padding: 9px 0;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.public-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition:
    opacity .18s ease,
    transform .18s ease;
}

.public-nav a:hover::after,
.public-nav a:focus-visible::after,
.public-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.public-nav-toggle {
  display: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
  }

  .public-nav-zone {
    margin-left: auto;
    margin-right: 10px;
  }

  .public-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .public-nav {
    position: absolute;
    z-index: 50;
    top: calc(100% + 1px);
    right: 14px;
    display: none;
    width: min(290px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 45px rgba(25, 35, 70, .14);
    backdrop-filter: blur(18px);
  }

  .public-nav.open {
    display: grid;
  }

  .public-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .public-nav a:hover,
  .public-nav a:focus-visible,
  .public-nav a.active {
    background: rgba(79, 70, 229, .07);
  }

  .public-nav a::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .public-nav-zone {
    margin-right: 7px;
  }

  .public-nav-toggle {
    padding: 8px 10px;
    font-size: .82rem;
  }

  #headerAction {
    padding-right: 12px;
    padding-left: 12px;
  }
}


/* ==========================================================
   PUBLIC SCROLL OFFSET V1
   Évite que les titres passent sous le header sticky
   ========================================================== */

html {
  scroll-padding-top: 96px;
}

.public-organizations-section,
.public-projects-section,
.public-partnerships-section {
  scroll-margin-top: 96px;
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 82px;
  }

  .public-organizations-section,
  .public-projects-section,
  .public-partnerships-section {
    scroll-margin-top: 82px;
  }
}

/* === ASSOCI LINK HERO REUNION 2026 === */

.associlink-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: min(1440px, calc(100vw - 32px));
  min-height: 620px;
  margin: 22px 50% 42px;
  padding: clamp(48px, 7vw, 92px)
           clamp(28px, 6vw, 82px)
           42px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 34px;

  background:
    linear-gradient(
      90deg,
      rgba(8, 22, 49, .92) 0%,
      rgba(8, 31, 57, .79) 38%,
      rgba(7, 35, 55, .38) 70%,
      rgba(7, 35, 55, .12) 100%
    ),
    url("/assets/images/reunion-hero.jpg")
      center 55% / cover no-repeat;

  box-shadow:
    0 30px 80px rgba(20, 30, 70, .14);
}

.associlink-hero-content {
  position: relative;
  z-index: 2;
  width: min(790px, 74%);
}

.associlink-hero .eyebrow {
  color: #d9dcff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

.associlink-hero h1 {
  max-width: 790px;
  margin: 18px 0 24px;
  color: #fff;
  font-size: clamp(3.25rem, 6vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.065em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .28);
}

.associlink-hero h1 span {
  display: block;
  color: #b8bbff;
}

.associlink-hero .hero-content > p {
  max-width: 690px;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.62;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}

.associlink-hero .hero-actions {
  margin-top: 30px;
}

.associlink-hero .button.secondary {
  border-color: rgba(255, 255, 255, .58);
  color: #fff;
  background: rgba(15, 29, 59, .42);
  backdrop-filter: blur(10px);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(880px, 100%);
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 21px;
  background: rgba(8, 25, 47, .64);
  backdrop-filter: blur(14px);
}

.hero-highlight {
  padding: 17px 20px;
  color: #fff;
}

.hero-highlight + .hero-highlight {
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.hero-highlight strong {
  display: block;
  margin-bottom: 5px;
  font-size: .91rem;
}

.hero-highlight span {
  display: block;
  color: rgba(255, 255, 255, .75);
  font-size: .78rem;
  line-height: 1.4;
}

.hero-photo-credit {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 16px;
  color: rgba(255, 255, 255, .68);
  font-size: .68rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

@media (max-width: 900px) {
  .associlink-hero {
    min-height: 600px;
    padding: 58px 38px 34px;
    background-position: 58% center;
  }

  .associlink-hero-content {
    width: 90%;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero-highlight + .hero-highlight {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }
}

@media (max-width: 620px) {
  .associlink-hero {
    display: flex;
    width: calc(100vw - 24px);
    min-height: 0;
    margin: 12px 50% 30px;
    padding: 46px 22px 52px;
    border-radius: 25px;

    background:
      linear-gradient(
        180deg,
        rgba(7, 23, 47, .88) 0%,
        rgba(7, 30, 51, .73) 55%,
        rgba(7, 30, 51, .84) 100%
      ),
      url("/assets/images/reunion-hero.jpg")
        58% center / cover no-repeat;
  }

  .associlink-hero-content {
    width: 100%;
  }

  .associlink-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.65rem, 13vw, 4rem);
    line-height: .98;
  }

  .associlink-hero h1 span {
    display: inline;
  }

  .associlink-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .associlink-hero .button {
    width: 100%;
  }

  .hero-highlights {
    margin-top: 32px;
    border-radius: 17px;
  }

  .hero-photo-credit {
    right: 17px;
    bottom: 13px;
    font-size: .6rem;
  }
}


/* === AJUSTEMENT HERO REUNION === */

@media (min-width: 901px) {
  .associlink-hero {
    min-height: 540px;
    padding-top: 58px;
    padding-bottom: 34px;
  }

  .associlink-hero-content {
    width: min(860px, 68%);
  }

  .associlink-hero h1 {
    max-width: 860px;
    font-size: clamp(3rem, 5vw, 4.9rem);
    line-height: .97;
  }

  .hero-highlights {
    margin-top: 32px;
  }
}

/* === ASSOCI LINK BENEFITS 2026 === */

.benefits-modern {
  display: block;
  padding: 22px 0 86px;
}

.benefits-heading {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(300px, .7fr);
  gap: 28px 70px;
  align-items: end;
  margin: 0 0 32px;
}

.benefits-heading .eyebrow {
  grid-column: 1 / -1;
}

.benefits-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.benefits-heading h2 span {
  color: var(--primary);
}

.benefits-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.benefits-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(48, 57, 91, .10);
  border-radius: 25px;
  background: rgba(255, 255, 255, .88);
  box-shadow:
    0 16px 40px rgba(35, 43, 75, .055);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(86, 81, 231, .20);
  box-shadow:
    0 23px 54px rgba(35, 43, 75, .10);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 31px;
  border-radius: 17px;
}

.benefit-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-discover .benefit-icon {
  color: #5651e7;
  background: #eeeeff;
}

.benefit-project .benefit-icon {
  color: #168365;
  background: #e5f6ef;
}

.benefit-partnership .benefit-icon {
  color: #9a6712;
  background: #fff3d7;
}

.benefit-follow .benefit-icon {
  color: #b23f70;
  background: #fde9f2;
}

.benefit-kicker {
  position: absolute;
  top: 29px;
  right: 27px;
  color: rgba(48, 57, 91, .36);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.benefit-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  letter-spacing: -.025em;
}

.benefit-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.58;
}

.benefit-card a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: var(--primary-dark);
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
}

.benefit-card a span {
  transition: transform .18s ease;
}

.benefit-card a:hover span {
  transform: translateX(4px);
}

.benefit-status {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding: 8px 11px;
  border-radius: 999px;
  color: #555d72;
  font-size: .74rem;
  font-weight: 800;
  background: rgba(48, 57, 91, .055);
}

@media (max-width: 1050px) {
  .benefits-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .benefits-modern {
    padding-top: 14px;
    padding-bottom: 58px;
  }

  .benefits-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefits-heading .eyebrow {
    grid-column: auto;
  }

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

  .benefit-card {
    min-height: 260px;
  }
}

