/* ════════════════════════════════════════════════════
   PAGE ASSOCIATION — styles spécifiques
   Variables partagées définies dans app.css :
   --brand, --brand-mid, --brand-pale, --brand-light,
   --cream, --warm, --text, --muted
   ════════════════════════════════════════════════════ */

:root {
  --asso-r: min(960px, 100% - 2.5rem);
  --asso-serif: Georgia, 'Times New Roman', serif;
}

.asso-page {
  background: var(--cream);
  overflow-x: hidden;
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.asso-hero {
  background: var(--warm);
  padding: 4rem 0;
  border-bottom: 1px solid #EDE3D6;
  position: relative;
  overflow: hidden;
}
.asso-hero::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(179,106,209,.11), transparent 65%);
  top: -120px; right: -100px; pointer-events: none;
}
.asso-hero-in {
  width: var(--asso-r);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.asso-hero-text { padding-bottom: 2rem; padding-top: 1rem; position: relative; z-index: 1; }
.asso-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 1.1rem;
}
.asso-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--brand); display: block; }
.asso-hero-text h1 {
  font-family: var(--asso-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700; color: var(--text); line-height: 1.1;
  margin-bottom: 1.2rem;
}
.asso-hero-text h1 em { font-style: italic; color: var(--brand); }
.asso-hero-text .alead {
  font-size: .98rem; color: var(--muted); line-height: 1.85;
  max-width: 420px; margin-bottom: .75rem;
}
.asso-hero-text .alead strong { color: var(--text); }
.asso-hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.9rem; }
.abtn-fill {
  background: var(--brand); color: #fff; font-size: .9rem; font-weight: 700;
  padding: .7rem 1.6rem; border-radius: 99px; text-decoration: none;
  box-shadow: 0 4px 16px rgba(106,27,154,.22);
  transition: transform .2s, box-shadow .2s;
}
.abtn-fill:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(106,27,154,.3); }
.abtn-ghost {
  background: var(--brand-light); color: var(--brand); font-size: .9rem; font-weight: 700;
  padding: .7rem 1.6rem; border-radius: 99px; text-decoration: none;
  transition: background .2s;
}
.abtn-ghost:hover { background: #E2CFF5; }

/* Photos collage */
.asso-hero-photos { position: relative; height: 480px; z-index: 1; }
.hp-a {
  position: absolute; top: 0; left: 0; right: 2rem; height: 300px;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(106,27,154,.14);
  transform: rotate(-1.5deg); transform-origin: bottom right;
}
.hp-a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-b {
  position: absolute; bottom: 0; right: 0; width: 62%; height: 240px;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 36px rgba(106,27,154,.16);
  transform: rotate(1.8deg); transform-origin: top left; z-index: 2;
}
.hp-b img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-badge {
  position: absolute; bottom: 2.2rem; left: .5rem; z-index: 3;
  background: #fff; border-radius: 14px;
  padding: .75rem 1.1rem;
  box-shadow: 0 8px 24px rgba(106,27,154,.15);
  border: 1px solid var(--brand-light);
  transform: rotate(1deg);
}
.hp-badge-year { font-family: var(--asso-serif); font-size: 1.5rem; font-weight: 700; color: var(--brand); line-height: 1; }
.hp-badge-label { font-size: .68rem; color: var(--muted); margin-top: .25rem; line-height: 1.35; }

/* ═══════════════════════════
   FILMSTRIP — pleine largeur naturelle
   ═══════════════════════════ */
.asso-filmstrip {
  height: 240px;
  display: flex;
  overflow: hidden;
  border-top: 1px solid #EDE3D6;
  border-bottom: 1px solid #EDE3D6;
}
.asso-filmstrip img {
  flex: 1; min-width: 0; object-fit: cover; display: block;
  transition: flex .5s cubic-bezier(.4,0,.2,1), filter .5s;
  filter: saturate(.85);
}
.asso-filmstrip img:hover { flex: 2.5; filter: saturate(1); }

/* ═══════════════════════════
   PILIERS
   ═══════════════════════════ */
.asso-piliers {
  padding: 5rem 0;
  background: #fff;
  border-bottom: 1px solid #EDE3D6;
  scroll-margin-top: 80px;
}
.asso-pil-in { width: var(--asso-r); margin: auto; }
.asso-pil-header { margin-bottom: 2.5rem; }
.asso-stag {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  display: block; margin-bottom: .7rem;
}
.asso-sec-h2 {
  font-family: var(--asso-serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700; color: var(--text); line-height: 1.15;
}
.asso-sec-h2 em { font-style: italic; color: var(--brand); }

.asso-pil-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; }
.asso-pil {
  border-radius: 22px; overflow: hidden;
  border: 1px solid #EDE3D6;
  background: var(--cream);
  transition: box-shadow .28s, transform .28s;
}
.asso-pil:hover { box-shadow: 0 12px 36px rgba(106,27,154,.1); transform: translateY(-4px); }
.asso-pil-img {
  height: 175px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.8rem;
}
.asso-pil-img.edu { background: linear-gradient(140deg, #F2E8FA, #DCC4F0); }
.asso-pil-img.cul { background: linear-gradient(140deg, #FFF2E6, #F5CEAA); }
.asso-pil-img.vie { background: linear-gradient(140deg, #EDFAED, #B8E0B0); }
.asso-pil-body { padding: 1.4rem 1.4rem 1.6rem; }
.asso-pil-badge {
  display: inline-block; font-size: .67rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 99px; margin-bottom: .65rem;
}
.asso-pil-badge.edu { background: var(--brand-pale); color: var(--brand); }
.asso-pil-badge.cul { background: #FFF2E6; color: #B05A1A; }
.asso-pil-badge.vie { background: #EDFAED; color: #2E7A2E; }
.asso-pil-body h3 {
  font-family: var(--asso-serif); font-size: 1.1rem; font-weight: 700;
  color: var(--text); line-height: 1.25; margin-bottom: .55rem;
}
.asso-pil-body p { font-size: .86rem; color: var(--muted); line-height: 1.75; }
.asso-pil-checks { list-style: none; margin-top: .9rem; display: flex; flex-direction: column; gap: .45rem; }
.asso-pil-checks li {
  font-size: .83rem; color: var(--muted); line-height: 1.4;
  display: flex; gap: .5rem; align-items: flex-start;
}
.asso-pil-checks li::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0; margin-top: .12em;
  border-radius: 50%; background: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 68%; background-repeat: no-repeat; background-position: center;
}
.asso-pil.vie .asso-pil-checks li::before { background-color: #2E7A2E; }
.asso-pil.cul .asso-pil-checks li::before { background-color: #B05A1A; }
.asso-pil-features { margin-top: .9rem; display: flex; flex-direction: column; gap: .55rem; }
.asso-pil-feat { display: flex; gap: .6rem; align-items: flex-start; }
.asso-pil-feat-ic { font-size: 1rem; flex-shrink: 0; margin-top: .05em; }
.asso-pil-feat-txt { font-size: .83rem; color: var(--muted); line-height: 1.5; }
.asso-pil-feat-txt strong { display: block; color: var(--text); font-size: .84rem; margin-bottom: .1rem; }

/* ═══════════════════════════
   PULL-QUOTE — pleine largeur naturelle
   ═══════════════════════════ */
.asso-pull-quote {
  background: var(--brand);
  padding: 4.5rem 2rem; text-align: center; overflow: hidden;
  position: relative;
}
.asso-pull-quote::before {
  content: ''; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 22px 22px;
}
.asso-pull-quote blockquote {
  font-family: var(--asso-serif); font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  color: #fff; line-height: 1.65;
  max-width: 720px; margin: 0 auto 1rem;
  position: relative; z-index: 1;
}
.asso-pull-quote cite {
  font-size: .72rem; font-style: normal; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  position: relative; z-index: 1;
}

/* ═══════════════════════════
   COMMUNAUTÉ
   ═══════════════════════════ */
.asso-communaute {
  padding: 5rem 0;
  background: var(--cream);
  border-top: 1px solid #EDE3D6;
}
.asso-com-in { width: var(--asso-r); margin: auto; }
.asso-com-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; margin-bottom: 4rem;
}
.asso-com-intro-text p { font-size: .96rem; color: var(--muted); line-height: 1.85; margin-top: .8rem; }
.asso-com-intro-text p strong { color: var(--text); }
.asso-com-intro-img {
  border-radius: 22px; overflow: hidden; height: 280px;
  box-shadow: 0 12px 36px rgba(106,27,154,.1);
}
.asso-com-intro-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Moments */
.asso-moments {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: #EDE3D6;
  border-radius: 20px; overflow: hidden;
}
.asso-moment {
  background: var(--cream); padding: 2rem 1.8rem 2.2rem;
  transition: background .3s; position: relative; overflow: hidden;
}
.asso-moment:hover { background: var(--warm); }
.asso-moment::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.asso-moment:nth-child(1)::before { background: var(--brand); }
.asso-moment:nth-child(2)::before { background: #2e7d32; }
.asso-moment:nth-child(3)::before { background: #e65100; }
.asso-moment::after {
  content: ''; position: absolute;
  width: 260px; height: 260px; border-radius: 50%;
  bottom: -80px; right: -60px; pointer-events: none; opacity: .13;
}
.asso-moment:nth-child(1)::after { background: var(--brand); }
.asso-moment:nth-child(2)::after { background: #2e7d32; }
.asso-moment:nth-child(3)::after { background: #e65100; }
.asso-moment-when {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem;
}
.asso-moment-when::before { content: ''; width: 16px; height: 1.5px; background: currentColor; display: block; }
.asso-moment-emoji { font-size: 2.4rem; margin-bottom: .8rem; display: block; line-height: 1; }
.asso-moment h4 { font-family: var(--asso-serif); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.asso-moment p { font-size: .85rem; color: var(--muted); line-height: 1.7; }

/* ═══════════════════════════
   INFOS PRATIQUES — sombre éditorial
   ═══════════════════════════ */
.asso-infos {
  padding: 5rem 0;
  background: #2A1035;
}
.asso-infos-in { width: var(--asso-r); margin: auto; }
.asso-infos-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 3rem;
}
.asso-info-col-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: .9rem; display: block;
}
.asso-info-col h2 {
  font-family: var(--asso-serif); font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: .7rem;
}
.asso-info-col h2 em { font-style: italic; color: #C9A4E8; }
.asso-info-col > p { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.8; }
.asso-info-block { margin-bottom: 1.5rem; }
.asso-info-block:last-child { margin-bottom: 0; }
.asso-info-block-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: .5rem; display: block;
}
.asso-info-block-val { font-size: .95rem; color: #fff; line-height: 1.75; }
.asso-info-block-val strong { color: #C9A4E8; }
.asso-next-dot { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .4rem; }
.asso-dot-g { width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; animation: asso-pulse 2s infinite; flex-shrink: 0; }
@keyframes asso-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(76,175,80,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(76,175,80,0); }
}
.asso-contact-row { display: flex; flex-direction: column; gap: .5rem; }
.asso-contact-link {
  display: flex; align-items: center; gap: .7rem;
  color: rgba(255,255,255,.75); font-size: .92rem; font-weight: 500;
  text-decoration: none; padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s, padding-left .2s;
}
.asso-contact-link:last-child { border-bottom: none; }
.asso-contact-link:hover { color: #fff; padding-left: .4rem; }
.asso-contact-link .cicon { font-size: 1rem; opacity: .6; }
.asso-levels { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.asso-lv {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.75);
  font-size: .75rem; font-weight: 600; padding: .22rem .7rem;
  border-radius: 99px; border: 1px solid rgba(255,255,255,.15);
}
.asso-infos-map {
  border-radius: 16px; overflow: hidden; height: 220px;
}
.asso-infos-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ═══════════════════════════
   CTA FINAL
   ═══════════════════════════ */
.asso-cta {
  padding: 5rem 0;
  background: var(--warm);
  border-top: 1px solid #EDE3D6;
}
.asso-cta-in {
  width: var(--asso-r); margin: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.asso-cta-text h2 {
  font-family: var(--asso-serif); font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700; color: var(--text); line-height: 1.15; margin: .6rem 0 .9rem;
}
.asso-cta-text h2 em { font-style: italic; color: var(--brand); }
.asso-cta-text p { font-size: .96rem; color: var(--muted); line-height: 1.85; }
.asso-cta-cards { display: flex; flex-direction: column; gap: .85rem; }
.asso-cc {
  background: #fff; border-radius: 18px; padding: 1.3rem 1.4rem;
  border: 1.5px solid var(--brand-light); text-decoration: none;
  display: flex; align-items: center; gap: 1rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.asso-cc:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(106,27,154,.1); transform: translateX(4px); }
.asso-cc-ic {
  width: 44px; height: 44px; border-radius: 14px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.asso-cc.main .asso-cc-ic { background: var(--brand); }
.asso-cc-body h4 { font-size: .93rem; font-weight: 700; color: var(--brand); margin-bottom: .15rem; }
.asso-cc-body p { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.asso-arr { margin-left: auto; color: var(--brand); opacity: .3; flex-shrink: 0; font-size: 1.1rem; transition: opacity .2s, transform .2s; }
.asso-cc:hover .asso-arr { opacity: 1; transform: translateX(3px); }

/* ── animation helpers ── */
.asso-anim-up, .asso-anim-left, .asso-anim-right {
  will-change: transform, opacity;
}

/* ── responsive ── */
@media (max-width: 600px) {
  .asso-hero { padding: 1.5rem 0 2.5rem; }
  .asso-hero-text { padding-top: 0; }
}
@media (max-width: 768px) {
  .asso-hero-in,
  .asso-com-intro,
  .asso-cta-in { grid-template-columns: 1fr; }
  .asso-hero-photos { height: 320px; }
  .asso-pil-grid,
  .asso-moments { grid-template-columns: 1fr; }
  .asso-infos-top { grid-template-columns: 1fr; }
  .asso-filmstrip { height: 160px; }
}

/* ═══════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════ */
#asso-skeleton {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--warm);
  overflow: hidden;
  transition: opacity .5s ease;
}
#asso-skeleton.asso-sk-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Shimmer keyframe */
@keyframes asso-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

/* Bone base */
.asso-sk-bone {
  background: linear-gradient(
    90deg,
    #ede0f5 0%,
    #ddc8f0 40%,
    #ede0f5 80%
  );
  background-size: 600px 100%;
  animation: asso-shimmer 1.6s infinite linear;
  border-radius: 10px;
}

/* Layout hero skeleton */
.asso-sk-wrap {
  width: min(960px, 100% - 2.5rem);
  margin: auto;
  padding-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Left column */
.asso-sk-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 1rem;
}
.asso-sk-eyebrow {
  width: 90px; height: 12px;
  margin-bottom: 20px;
  border-radius: 99px;
}
.asso-sk-h1a {
  width: 200px; height: 52px;
  margin-bottom: 6px;
  border-radius: 14px;
}
.asso-sk-h1b {
  width: 160px; height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
}
.asso-sk-line { height: 13px; margin-bottom: 9px; border-radius: 6px; }
.asso-sk-line.w100 { width: 100%; }
.asso-sk-line.w85  { width: 85%; }
.asso-sk-line.w70  { width: 70%; }
.asso-sk-spacer { height: 18px; }
.asso-sk-btns {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.asso-sk-btn {
  height: 42px;
  border-radius: 99px;
}
.asso-sk-btn.w140 { width: 140px; }
.asso-sk-btn.w120 { width: 120px; }

/* Right column */
.asso-sk-right {
  position: relative;
  height: 480px;
}
.asso-sk-photo-a {
  position: absolute;
  top: 0; left: 0; right: 2rem;
  height: 300px;
  border-radius: 20px;
  transform: rotate(-1.5deg);
}
.asso-sk-photo-b {
  position: absolute;
  bottom: 0; right: 0;
  width: 62%; height: 240px;
  border-radius: 20px;
  transform: rotate(1.8deg);
}
.asso-sk-badge {
  position: absolute;
  bottom: 2.2rem; left: .5rem;
  width: 110px; height: 60px;
  border-radius: 14px;
  background: rgba(255,255,255,.6);
  transform: rotate(1deg);
}

/* Nav bar skeleton at top */
.asso-sk-nav {
  width: 100%;
  height: 56px;
  background: rgba(255,252,248,.95);
  border-bottom: 1px solid #EDE3D6;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
}
.asso-sk-logo  { width: 120px; height: 18px; border-radius: 6px; }
.asso-sk-nlink { width: 60px;  height: 12px; border-radius: 6px; }
.asso-sk-ncta  { width: 80px;  height: 34px; border-radius: 99px; margin-left: auto; }

@media (max-width: 768px) {
  .asso-sk-wrap { grid-template-columns: 1fr; }
  .asso-sk-right { display: none; }
}
