*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --purple:    #7B7FD4;
      --purple-lt: #A8ABEA;
      --purple-dk: #5557B0;
      --purple-bg: #EEEFFE;
      --bg:        #F4F5FF;
      --white:     #FFFFFF;
      --text:      #1A1A2E;
      --muted:     #8585A8;
      --radius:    16px;
      --shadow:    0 4px 24px rgba(123,127,212,.15);
    }

    html, body {
      height: 100%;
      font-family: 'Nunito', sans-serif;
      background: var(--bg);
      color: var(--text);
    }

    .app {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      width: 100%;
    }

    /* ─── HEADER ─── */
    header {
      width : 100%;
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--purple);
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      box-shadow: 0 2px 16px rgba(85,87,176,.3);
    }

    .logo {
      font-size: clamp(18px, 3vw, 24px);
      font-weight: 900;
      letter-spacing: 3px;
      color: var(--white);
      text-transform: uppercase;
      text-decoration: none;
    }

    .notif-btn {
      position: relative;
      background: rgba(255,255,255,.15);
      border: none;
      border-radius: 50%;
      width: 42px; height: 42px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background .2s;
    }
    .notif-btn:hover { background: rgba(255,255,255,.28); }

    .notif-badge {
      position: absolute;
      top: -3px; right: -3px;
      background: #FF6B6B;
      color: #fff;
      font-size: 9px;
      font-weight: 900;
      border-radius: 50%;
      width: 18px; height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--purple);
    }

    /* ─── SUB-HEADER ─── */
    .subheader {
      background: var(--purple-lt);
      padding: 10px 24px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .subheader-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--white);
      letter-spacing: .4px;
      position: relative;
      left : 43%;
    }

    /* ─── MAIN ─── */
    main {
      flex: 1;
      padding: 28px 20px 40px;
      max-width: 900px;
      width: 100%;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 20px;
      min-height: 80vh;
    }

      /* HERO ALERT */
  .hero-alert{
    width:100%;
    border:none;
    cursor:pointer;
    background:linear-gradient(135deg, var(--purple), var(--purple-dk));
    border-radius:24px;
    padding:24px;
    color:var(--white);

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;

    box-shadow:
      0 10px 30px rgba(123,127,212,.28);

    transition:
      transform .22s ease,
      box-shadow .22s ease;
  }

    .hero-alert:hover{
      transform:translateY(-4px);
      box-shadow:
        0 18px 40px rgba(123,127,212,.38);
    }

    .hero-alert-content{
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:10px;
    }

    .hero-title{
      font-size:clamp(28px, 5vw, 42px);
      font-weight:900;
      line-height:1;
      margin:0;
    }

    .hero-desc{
      font-size:.95rem;
      line-height:1.5;
      opacity:.92;
      max-width:280px;
      text-align:left;
    }

    .hero-arrow{
      width:56px;
      height:56px;
      border-radius:50%;
      background:rgba(255,255,255,.16);

      display:flex;
      align-items:center;
      justify-content:center;

      font-size:1.8rem;
      font-weight:900;

      flex-shrink:0;

      transition:
        transform .2s ease,
        background .2s ease;
    }

    .hero-alert:hover .hero-arrow{
      transform:translateX(4px);
      background:rgba(255,255,255,.24);
    }

    /* ─── SECTION ─── */
    .section { margin-bottom: 40px; }

    .section-title {
      font-size: clamp(15px, 2vw, 19px);
      font-weight: 900;
      color: var(--text);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .section-title::after {
      content: '';
      flex: 1;
      height: 2px;
      background: var(--purple-bg);
      border-radius: 2px;
    }

    /* ─── SECTION BLOCK ─── */
    .block {
      background: var(--white);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .block-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 16px 20px 0;
    }

    .block-icon {
      font-size: 20px;
      line-height: 1;
    }

    .block-title {
      font-size: clamp(15px, 2vw, 18px);
      font-weight: 900;
      color: var(--text);
      text-decoration: underline;
      text-underline-offset: 4px;
    }

    .block-desc {
      font-size: 13px;
      color: var(--muted);
      padding: 8px 20px 0;
      line-height: 1.5;
    }

    /* ─── CTA BUTTON inside block ─── */
    .block-cta {
      display: flex;
      justify-content: flex-end;
      padding: 0 20px 18px;
    }

    .btn-action {
      background: var(--purple);
      color: var(--white);
      border: none;
      border-radius: 30px;
      padding: 8px 22px;
      font-size: 13px;
      font-weight: 700;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
      transition: background .2s, transform .15s;
    }
    .btn-action:hover { background: var(--purple-dk); transform: scale(1.04); }

    /* ─── FOOTER ─── */
    footer {
      z-index : 100;
      background: var(--purple);
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-around;
      padding: 0 16px;
      position: sticky;
      bottom: 0;
      box-shadow: 0 -2px 16px rgba(85,87,176,.25);
    }

    .footer-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: rgba(255,255,255,.65);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 700;
      font-family: 'Nunito', sans-serif;
      padding: 6px 20px;
      border-radius: 12px;
      transition: color .2s, background .2s;
    }
    .footer-btn:hover,
    .footer-btn.active { color: var(--white); background: rgba(255,255,255,.12); }

    .footer-center {
      background: var(--white);
      border: none;
      border-radius: 50%;
      width: 52px; height: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 18px rgba(0,0,0,.18);
      transition: transform .25s, box-shadow .25s;
    }
    .footer-center:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 8px 26px rgba(0,0,0,.24); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 600px) {
      header { padding: 0 16px; }
      main { padding: 18px 12px 32px; gap: 14px; }
      .footer-btn { padding: 6px 12px; font-size: 10px; }
    }

    .back-btn {
      background: rgba(255,255,255,.25);
      border: none;
      border-radius: 50%;
      width: 34px; height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--white);
      flex-shrink: 0;
      transition: background .2s;
    }
    .back-btn:hover { background: rgba(255,255,255,.4); }

    .card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 20px 20px 16px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: transform .22s, box-shadow .22s;
      animation: fadeUp .4s ease both;
    }
    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(123,127,212,.22);
    }


    .card-title {
      font-size: clamp(14px, 1.6vw, 17px);
      font-weight: 800;
      color: var(--text);
      line-height: 1.3;
    }

    .card-excerpt {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.6;
      flex: 1;
    }

    .card-footer {
      display: flex;
      justify-content: flex-end;
      margin-top: 4px;
    }

    .btn-lire {
      background: var(--purple);
      color: var(--white);
      border: none;
      border-radius: 30px;
      padding: 8px 20px;
      font-size: 13px;
      font-weight: 700;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
      transition: background .2s, transform .15s;
    }
    .btn-lire:hover { background: var(--purple-dk); transform: scale(1.04); }

    /* ── AJOUT ARTICLE ── */
.section-add {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -8px;
}

.btn-add-article {
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-add-article:hover {
  background: var(--purple-dk);
  transform: scale(1.04);
}