    body { font-family: Arial, sans-serif; margin: 40px; line-height: 1.6; color:#333; }
    h1 { color:darkgray; }
    a { color:#7a4e4e; text-decoration:none; }
    a:hover { text-decoration:underline; }
    .home-link a { color: #e5e7eb;position: fixed; left: 0;top: 30px;}
    :root {
      --bg: #0f172a;           /* ardoise foncée */
      --card: #111827;         /* gris très foncé */
      --text: #e5e7eb;         /* gris clair */
      --muted: #9ca3af;        /* gris moyen */
      --ring: rgba(59,130,246,.6);
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
      background: linear-gradient(180deg, #0b1025, var(--bg));
      color: var(--text);
    }

    header {
      padding: 32px 20px 8px;
      text-align: center;
    }
    header h1 {
      margin: 0 0 6px;
      font-size: clamp(24px, 3vw, 34px);
      letter-spacing: .3px;
    }
    header p { margin: 0; color: var(--muted); }

    /* Grille responsive 4 -> 2 -> 1 colonnes */
    .grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
      padding: 24px 20px 40px;
      max-width: 1200px;
      margin: 0 auto;
    }
    @media (max-width: 1100px) {
      .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 640px) {
      .grid { grid-template-columns: 1fr; }
    }

    /* Photo cliquable */
    .card {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      background: var(--card);
      box-shadow: 0 10px 30px rgba(0,0,0,.35);
      transition: transform .18s ease, box-shadow .18s ease;
      outline: 0;
    }
    .card:focus-visible {
      box-shadow: 0 0 0 4px var(--ring), 0 10px 30px rgba(0,0,0,.35);
    }
    .card:hover { transform: translateY(-4px); }

    .card img {
      display: block;
      width: 100%;
      height: 150px;
      object-fit: cover;
    }

    .card .content {
      padding: 14px 16px 18px;
    }
    .card .title {
      margin: 0 0 6px;
      font-weight: 700;
      font-size: 18px;
    }
    .card .desc {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.3;
    }

    /* Sections cibles */
    .cadre-scroll {
    max-height: 650px;      /* hauteur du cadre, ajustez selon vos besoins */
    overflow-y: auto;       /* active l'ascenseur vertical */
    border: 1px solid #ccc; /* bordure du cadre */
    padding: 16px;
    /*border-radius: 12px;*/
    background: #f9f9f9;    /* couleur de fond douce */
 
  }

  .cadre-scroll h2, 
  .cadre-scroll h3 {
    margin-top: 10px;
  }

  .cadre-scroll .asterix {
    font-size: 0.85em;
    color: var(--bg);
  }

    .bloc-texte {
      max-height: 1000px;   /* limite la hauteur */
      max-width: 1200px;    /* limite la largeur */
      overflow-y: auto;    /* ajoute un ascenseur vertical si trop long */
      overflow-x: hidden;  /* évite de scroller horizontalement */
      padding: 30px;
      border: 1px solid #ccc; /* optionnel : pour bien voir la zone */
      color: var(--bg);
    }
    section {
      scroll-margin-top: 84px; /* confortable après un clic */
      padding: 40px 20px 164px;
      max-width: 1200px;
      margin: 0 auto;
    }
    section h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 12px; }
    section p { color: var(--muted); margin: 0; }

    footer { text-align: center; color: var(--muted); padding: 30px 20px 60px; }
    a.card { color: inherit; text-decoration: none; display: block; }
/* -- retour en haut --*/
    .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}
/* -- malraux --*/
#mh h2,#malraux h2,#deficit h2,#loi-girardin h2 {
  font-size: 60px;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 100;
}
p {
  font-size: 20px;
}
#malraux p,#mh p, #deficit p{
  font-size: 9px;
}
h3 {
  font-style: italic;
  font-size: 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 100;
}
/* Responsive */
@media (max-width: 768px) {
  .loi-section {
    flex-direction: column;
  }
  .img-loi {
    order: -1; /* image au-dessus du texte sur mobile */
  }
}
