/* ═══════════════════ Spécifique page ressources ═══════════════════ */

    body.ressources-page .nav-link.active { color: #fff; }
    body.ressources-page .nav-link.active::after {
      background: var(--cyan);
      box-shadow: 0 0 8px var(--cyan-soft);
    }

    /* ═══════════════════ HERO ═══════════════════ */
    #hero-ressources {
      padding: 138px 0 4rem;
      position: relative;
      overflow: hidden;
      isolation: isolate;
      background: var(--navy-deep);
    }
    #hero-ressources::before {
      content: '';
      position: absolute; inset: 0; z-index: -1;
      background:
        radial-gradient(900px 600px at 15% 20%, rgba(0, 184, 255, 0.08), transparent 60%),
        radial-gradient(700px 500px at 85% 80%, rgba(0, 184, 255, 0.04), transparent 65%);
    }
    #hero-ressources .hero-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 1.5rem;
      text-align: center;
    }
    #hero-ressources .hero-eyebrow {
      display: inline-block;
      font-size: 0.78rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--cyan);
      font-weight: 600;
      margin-bottom: 1.2rem;
    }
    #hero-ressources h1 {
      font-size: clamp(2.2rem, 5vw, 3.8rem);
      line-height: 1.05;
      font-weight: 700;
      color: var(--ink);
      margin: 0;
      letter-spacing: -0.02em;
    }
    #hero-ressources h1 .accent { color: var(--cyan); }
    #hero-ressources .hero-sub {
      max-width: 720px;
      margin: 1.6rem auto 0;
      color: var(--ink-dim);
      font-size: 1.05rem;
      line-height: 1.65;
    }

    /* ═══════════════════ LISTE MAGAZINE (1 couverture pleine largeur + 2 cartes côte-à-côte) ═══════════════════ */
    .ressources-list {
      background: var(--navy-deep);
      padding: 4rem 0 6rem;
    }
    .ressources-magazine {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* ─── Article phare : couverture pleine largeur ─── */
    .mag-feature {
      position: relative;
      display: block;
      min-height: max(540px, 70vh);
      border-radius: 22px;
      overflow: hidden;
      text-decoration: none;
      color: inherit;
      background: #0A1F3D;
      border: 1px solid rgba(255, 255, 255, 0.08);
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
      isolation: isolate;
    }
    .mag-feature-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .mag-feature:hover .mag-feature-bg { transform: scale(1.04); }
    .mag-feature::before {
      content: '';
      position: absolute; inset: 0;
      background:
        linear-gradient(to top, rgba(7,20,42,0.94) 0%, rgba(7,20,42,0.65) 40%, rgba(7,20,42,0.25) 80%, rgba(7,20,42,0.10) 100%),
        linear-gradient(135deg, rgba(92, 61, 20, 0.25) 0%, transparent 60%);
      z-index: 1;
    }
    .mag-feature::after {
      content: '01';
      position: absolute;
      bottom: 1.5rem;
      right: 2.5rem;
      font-size: 12rem;
      font-weight: 900;
      line-height: 1;
      color: rgba(255, 255, 255, 0.10);
      letter-spacing: -0.05em;
      z-index: 2;
      pointer-events: none;
    }
    .mag-feature:hover {
      transform: translateY(-6px);
      border-color: rgba(245, 158, 11, 0.45);
      box-shadow: 0 30px 60px -25px rgba(245, 158, 11, 0.28);
    }

    .mag-feature-body {
      position: absolute;
      bottom: 2.75rem;
      left: 2.75rem;
      right: 2.75rem;
      max-width: 760px;
      z-index: 3;
    }
    .mag-feature .bento-tag,
    .mag-card .bento-tag {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      display: block;
      margin-bottom: 1rem;
    }
    .mag-feature .bento-tag { color: var(--c-succession); }
    .mag-feature-title {
      font-size: clamp(2rem, 4.5vw, 3.4rem);
      font-weight: 700;
      line-height: 1.1;
      color: var(--ink);
      margin: 0 0 1.1rem;
      letter-spacing: -0.025em;
    }
    .mag-feature-excerpt {
      font-size: 1.1rem;
      line-height: 1.6;
      color: var(--ink-dim);
      margin: 0 0 1.6rem;
      max-width: 620px;
    }
    .mag-feature-link {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--cyan-bright);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    /* ─── Cartes secondaires côte-à-côte ─── */
    .mag-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-top: 1.5rem;
    }
    .mag-card {
      position: relative;
      display: flex;
      flex-direction: column;
      border-radius: 22px;
      overflow: hidden;
      text-decoration: none;
      color: inherit;
      background: linear-gradient(140deg, rgba(26, 48, 85, 0.45) 0%, rgba(10, 31, 61, 0.3) 100%);
      border: 1px solid rgba(255, 255, 255, 0.08);
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    }
    .mag-card-img {
      position: relative;
      aspect-ratio: 16 / 10;
      min-height: 200px;
      overflow: hidden;
      background: #0A1F3D;
    }
    .mag-card-img img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 0;
    }
    .mag-card:hover .mag-card-img img { transform: scale(1.05); }
    .mag-card-img::before {
      content: '';
      position: absolute; inset: 0;
      z-index: 1;
      pointer-events: none;
    }
    .mag-card-img::after {
      position: absolute;
      bottom: 0.75rem;
      right: 1.5rem;
      font-size: 6.5rem;
      font-weight: 900;
      line-height: 1;
      color: rgba(255, 255, 255, 0.18);
      letter-spacing: -0.05em;
      z-index: 2;
      pointer-events: none;
    }
    .mag-card--minoritaires .mag-card-img::before {
      background: linear-gradient(135deg, rgba(74, 38, 112, 0.55) 0%, rgba(10, 31, 61, 0.45) 100%);
    }
    .mag-card--minoritaires .mag-card-img::after { content: '02'; }
    .mag-card--holding .mag-card-img::before {
      background: linear-gradient(135deg, rgba(20, 84, 58, 0.55) 0%, rgba(10, 31, 61, 0.45) 100%);
    }
    .mag-card--holding .mag-card-img::after { content: '03'; }

    .mag-card--minoritaires:hover {
      transform: translateY(-4px);
      border-color: rgba(83, 46, 251, 0.45);
      box-shadow: 0 24px 48px -20px rgba(83, 46, 251, 0.28);
    }
    .mag-card--holding:hover {
      transform: translateY(-4px);
      border-color: rgba(16, 185, 129, 0.45);
      box-shadow: 0 24px 48px -20px rgba(16, 185, 129, 0.28);
    }

    .mag-card-body {
      padding: 1.85rem 2rem 2rem;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .mag-card--minoritaires .bento-tag { color: var(--c-minoritaires); }
    .mag-card--holding      .bento-tag { color: var(--c-holding); }

    .mag-card-title {
      font-size: clamp(1.2rem, 1.7vw, 1.5rem);
      font-weight: 600;
      line-height: 1.3;
      color: var(--ink);
      margin: 0 0 0.85rem;
      letter-spacing: -0.01em;
    }
    .mag-card-excerpt {
      font-size: 0.97rem;
      line-height: 1.6;
      color: var(--ink-dim);
      margin: 0 0 1.4rem;
      flex: 1;
    }
    .mag-card-link {
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--cyan-bright);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    /* ═══════════════════ CTA FINAL ═══════════════════ */
    .ressources-cta {
      background: linear-gradient(180deg, var(--navy-deep), #07142A);
      padding: 5rem 1.5rem 6rem;
      text-align: center;
      border-top: 1px solid rgba(255,255,255,0.05);
    }
    .ressources-cta-inner { max-width: 720px; margin: 0 auto; }
    .ressources-cta h2 {
      font-size: clamp(1.7rem, 3vw, 2.2rem);
      font-weight: 700;
      color: var(--ink);
      margin: 0 0 1rem;
      letter-spacing: -0.02em;
    }
    .ressources-cta p {
      color: var(--ink-dim);
      font-size: 1.02rem;
      line-height: 1.65;
      margin: 0 0 2rem;
    }
    .ressources-cta .cta-row { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

    /* ═══════════════════ Responsive ═══════════════════ */
    @media (max-width: 900px) {
      .mag-feature { min-height: max(440px, 56vh); }
      .mag-feature::after { font-size: 8rem; right: 1.5rem; }
      .mag-feature-body { bottom: 1.75rem; left: 1.75rem; right: 1.75rem; }
      .mag-grid { grid-template-columns: 1fr; gap: 1.25rem; }
      .mag-card-body { padding: 1.5rem 1.5rem 1.75rem; }
    }
    @media (max-width: 640px) {
      #hero-ressources { padding: 110px 0 3rem; }
      .ressources-list { padding: 2.5rem 0 4rem; }
      .mag-feature { min-height: max(380px, 50vh); }
      .mag-feature::after { font-size: 6rem; right: 1rem; bottom: 1rem; }
      .mag-feature-body { bottom: 1.5rem; left: 1.5rem; right: 1.5rem; }
      .mag-feature-title { font-size: clamp(1.5rem, 6vw, 2.1rem); }
      .mag-feature-excerpt { font-size: 0.98rem; }
    }

