:root {
      --bg-main: #FAF9F6;       /* off-white / crème */
      --bg-card: #FFFFFF;       /* cartes et blocs */
      --accent: #0E7490;        /* bleu-teal aviation */
      --accent-soft: rgba(14,116,144,0.08);
      --text-main: #111827;     /* presque noir */
      --text-muted: #4B5563;    /* gris sérieux */
      --border-subtle: #E5E7EB; /* bordures discrètes */
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--bg-main);
      color: var(--text-main);
      line-height: 1.6;
    }

    a { color: var(--accent); text-decoration: none; }
    a:hover { text-decoration: underline; }

    .page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

header {
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(250,249,246,0.95);
}

    .nav {
      max-width: 1120px;
      margin: 0 auto;
      padding: 0.75rem 1.25rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

    .brand-title {
      font-weight: 600;
      letter-spacing: 0.04em;
      font-size: 0.95rem;
      text-transform: uppercase;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      font-size: 0.9rem;
    }

    .nav-link {
      color: var(--text-muted);
    }

    .nav-link:hover {
      color: var(--text-main);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 0.55rem 1.3rem;
      font-size: 0.9rem;
      font-weight: 500;
      border: 1px solid transparent;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.18s ease-out;
    }

    .btn-primary {
      background: linear-gradient(to right, #0E7490, #155E75);
      color: #F9FAFB;
      box-shadow: 0 8px 20px rgba(15,118,110,0.25);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 26px rgba(15,118,110,0.35);
    }

    .btn-ghost {
      border-color: var(--border-subtle);
      background: #FFFFFF;
      color: var(--text-main);
    }

    .btn-ghost:hover {
      border-color: var(--accent);
      background: #F9FAFB;
    }

    main {
      flex: 1;
    }

    .section {
      max-width: 1120px;
      margin: 0 auto;
      padding: 2.5rem 1.25rem;
    }

    /* Hero */
    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
      gap: 2.5rem;
      padding-top: 3rem;
      padding-bottom: 3rem;
      align-items: center;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.12rem 0.55rem;
      border-radius: 999px;
      border: 1px solid var(--accent);
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .hero-kicker {
      margin-top: 1.25rem;
      font-size: 0.95rem;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-weight: 500;
    }

    .hero-title {
      margin-top: 0.75rem;
      font-size: clamp(2rem, 3.1vw, 2.7rem);
      font-weight: 700;
      line-height: 1.15;
    }

    .hero-title span.highlight {
      background: linear-gradient(to right, var(--accent), #0f766e);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-subtitle {
      margin-top: 1rem;
      color: var(--text-muted);
      font-size: 0.98rem;
      max-width: 35rem;
    }

    .hero-list {
      margin-top: 1.3rem;
      display: grid;
      gap: 0.4rem;
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .hero-list span.bullet {
      font-size: 1.1rem;
      margin-right: 0.4rem;
      color: var(--accent);
    }

    .hero-actions {
      margin-top: 1.8rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      align-items: center;
    }

    .hero-note {
      margin-top: 0.8rem;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .hero-right {
      display: flex;
      align-items: stretch;
      justify-content: center;
    }

    .hero-card {
      position: relative;
      width: 100%;
      max-width: 360px;
      border-radius: 1.25rem;
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
      padding: 1.25rem 1.4rem;
      box-shadow: 0 18px 40px rgba(15,23,42,0.08);
      overflow: hidden;
    }

    .hero-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.8rem;
      font-size: 0.8rem;
    }

    .hero-tag {
      padding: 0.15rem 0.6rem;
      border-radius: 999px;
      font-size: 0.7rem;
      background: var(--accent-soft);
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    .hero-metric-row {
      margin-top: 0.8rem;
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      font-size: 0.85rem;
    }

    .hero-metric-label {
      color: var(--text-muted);
    }

    .hero-metric-value {
      font-size: 1.4rem;
      font-weight: 600;
    }

    .hero-metric-sub {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .hero-card-footer {
      margin-top: 1.4rem;
      padding-top: 1rem;
      border-top: 1px dashed rgba(148,163,184,0.7);
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    /* Sections */
    .section-title {
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
    }

    .section-kicker {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--accent);
      margin-bottom: 0.3rem;
    }

    .section-muted {
      color: var(--text-muted);
      font-size: 0.9rem;
      max-width: 40rem;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.5rem;
      margin-top: 1.75rem;
    }

    .card {
      border-radius: 1rem;
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
      padding: 1.1rem 1.15rem;
      font-size: 0.9rem;
      box-shadow: 0 12px 28px rgba(148,163,184,0.18);
    }

    .card-title {
      font-weight: 550;
      margin-bottom: 0.3rem;
    }

    .card-eyebrow {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--accent);
      margin-bottom: 0.2rem;
    }

    .card p {
      margin: 0.3rem 0 0;
      color: var(--text-muted);
      font-size: 0.86rem;
    }

    /* Pricing teaser */
    .pricing {
      margin-top: 2rem;
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      gap: 1.5rem;
      align-items: center;
    }

    .pricing-box {
      border-radius: 1.2rem;
      border: 1px solid var(--border-subtle);
      background: var(--bg-card);
      padding: 1.4rem 1.5rem;
      box-shadow: 0 14px 32px rgba(148,163,184,0.22);
    }

    .price-main {
      font-size: 1.7rem;
      font-weight: 650;
      margin-bottom: 0.3rem;
    }

    .price-sub {
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .price-note {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 0.7rem;
    }
    
/* --- Pricing plans (monthly / yearly) --- */

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.pricing-plan {
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 0.9rem 1rem 1rem;
  box-shadow: 0 8px 18px rgba(148,163,184,0.12);
  font-size: 0.9rem;
}

.pricing-plan-highlight {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(14,116,144,0.25);
}

.pricing-plan .price-main {
  font-size: 1.4rem;
  font-weight: 650;
  margin-bottom: 0.2rem;
}

.pricing-plan .price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

/* Mobile : on passe les deux cartes l'une sous l'autre */
@media (max-width: 640px) {
  .pricing-plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

    .checklist {
      margin-top: 0.8rem;
      display: grid;
      gap: 0.3rem;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .checklist span.check {
      margin-right: 0.35rem;
      color: #16a34a;
    }

    /* About section */
    .about-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 1.75rem;
      margin-top: 1.5rem;
      font-size: 0.9rem;
    }

    .about-highlight {
      border-left: 2px solid var(--accent);
      padding-left: 0.75rem;
      color: var(--text-muted);
    }

    footer {
      border-top: 1px solid var(--border-subtle);
      padding: 1.5rem 1.25rem 2rem;
      font-size: 0.8rem;
      color: var(--text-muted);
      background: rgba(250,249,246,0.9);
    }

    .footer-inner {
      max-width: 1120px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }


.note-header {
  margin-bottom: 1.75rem;
  padding-bottom: 0.5rem;
}

.note-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

/* Sous-titre type chapeau éditorial */
.note-subtitle {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-style: italic;
}

/* Ligne meta : petit, gris, bien séparé du corps */
.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  align-items: center;
}

.note-meta span::after {
  content: "·";
  margin: 0 0.3rem;
  color: #9ca3af;
}

.note-meta span:last-child::after {
  content: "";
  margin: 0;
}

/* Badge Members / Free distingué visuellement */
.note-badge {
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.note-badge-free {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.note-badge-members {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Corps du texte */
.note-content {
  font-size: 0.96rem;
  color: var(--text-main);
}

.note-content p {
  margin-bottom: 1rem;
}

/* Séparateur avant disclaimer */
.note-separator {
  margin: 2.5rem 0 1.5rem;
  border: none;
  border-top: 1px solid var(--border-subtle);
}

/* Disclaimer clairement distinct, petit, bien grisé */
.note-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.notes-badge-free {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.notes-badge-members {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Notes list (library) */
.notes-search {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.notes-search-input {
  flex: 1 1 220px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-family: inherit;
}

.notes-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.notes-search-button {
  padding-inline: 1rem;
}

/* Liste des notes */
/* Card de la library */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.notes-item {
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 8px 18px rgba(148,163,184,0.14);
  overflow: hidden; /* bords arrondis propres sur le hover */
}

/* zone cliquable principale */
.notes-item-main {
  display: block;
  padding: 1.1rem 1.2rem 1.0rem;
  color: inherit;
  text-decoration: none; /* on annule le underline global */
}

/* effet hover sur la card */
.notes-item-main:hover {
  background: #f9fafb;
}

/* on souligne uniquement le titre au hover */
.notes-item-main:hover .notes-item-title {
  text-decoration: underline;
}

.notes-item-title {
  margin: 0 0 0.2rem;
  font-size: 1.0rem;
  font-weight: 560;
}

.notes-item-subtitle {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.notes-item-excerpt {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.notes-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  align-items: center;
}

.notes-item-meta span::after {
  content: "·";
  margin: 0 0.25rem;
  color: #9ca3af;
}

.notes-item-meta span:last-child::after {
  content: "";
  margin: 0;
}

.notes-item-badge {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notes-badge-free {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.notes-badge-members {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* zone tags sous la card */
.notes-item-tags {
  padding: 0.55rem 1.2rem 0.9rem;
  border-top: 1px solid #f3f4f6;
  background: var(--bg-card);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* tags pill */
.notes-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  color: var(--text-muted);
  text-decoration: none;
}

.notes-tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #eef8fb;
}

/* Zone cliquable principale de la card */
.notes-item-main {
  display: block;
  padding: 1.1rem 1.2rem 1.0rem;
  color: inherit;
  text-decoration: none;          /* enlève underline par défaut */
}

/* On s'assure que rien à l'intérieur n'est souligné par défaut */
.notes-item-main * {
  text-decoration: none;
}

/* Hover : fond plus sombre, mais toujours pas de soulignement global */
.notes-item-main:hover {
  background: #f9fafb;
  text-decoration: none;
}

.notes-item-main:hover * {
  text-decoration: none;
}

/* On ne souligne que le titre au hover */
.notes-item-main:hover .notes-item-title {
  text-decoration: underline;
}

.notes-filter-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: white;
  color: var(--text-main);
}

.notes-filter-select:hover {
  border-color: var(--accent);
}

.notes-header {
  margin-bottom: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  .notes-item-main {
    padding: 0.95rem 0.9rem 0.9rem;
  }

  .notes-item-tags {
    padding: 0.45rem 0.9rem 0.8rem;
  }
}

/* Pagination */
/* Pagination */
.pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pagination-link,
.pagination-link-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.6rem;
  font-size: 0.85rem;
  color: var(--text-main);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all 0.15s ease;
}

.pagination-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.pagination-link-active {
  background: linear-gradient(to right, #0E7490, #155E75);
  color: #F9FAFB;
  border-color: transparent;
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(14,116,144,0.35);
}

.pagination-link-active:hover {
  background: linear-gradient(to right, #0E7490, #155E75);
  color: #F9FAFB;
  cursor: default;
}

/* Previous / Next styles */
.pagination-link-prev,
.pagination-link-next {
  padding-inline: 0.9rem;
  font-size: 0.8rem;
}

.pagination-link-disabled {
  color: var(--text-muted);
  background: #f3f4f6;
  border-color: var(--border-subtle);
  cursor: default;
}

.pagination-link-disabled:hover {
  background: #f3f4f6;
  border-color: var(--border-subtle);
}

/* Ellipses */
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Note preview / members CTA */
.note-content-preview {
  opacity: 0.96;
}

.note-members-cta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Teaser flouté pour contenu members --- */
.note-teaser {
  position: relative;
  margin-top: 1.25rem;
}

/* Contenu visible (preview uniquement) */
.note-teaser-content {
  max-height: 220px;              /* hauteur volontairement limitée */
  overflow: hidden;
  filter: blur(0.3px);            /* très léger flou pour signaler le lock */
}

/* Dégradé de masquage en bas */
.note-teaser-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(250,249,246,0) 0%,
    rgba(250,249,246,0.85) 55%,
    var(--bg-main) 100%
  );
  pointer-events: none;
}

/* CTA centré sous le teaser */
.note-members-cta-centered {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Related notes */
.related-notes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.related-notes-list {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.related-note-card {
  display: block;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 8px 18px rgba(148,163,184,0.18);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.related-note-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.related-note-title {
  font-size: 0.95rem;
  font-weight: 550;
  margin-bottom: 0.25rem;
}

.related-note-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.related-note-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nav-user {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 0.4rem;
}

.auth-form {
  max-width: 420px;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-label {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-input {
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  outline: none;
  background: #FFFFFF;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(14,116,144,0.15);
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.83rem;
}

.auth-small {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.notes-admin-table-wrapper {
  margin-top: 1rem;
  overflow-x: auto;
}

.notes-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(148,163,184,0.25);
}

.notes-admin-table th,
.notes-admin-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.notes-admin-table th {
  background: #f3f4f6;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
}

.notes-admin-table tr:last-child td {
  border-bottom: none;
}

/* --- Mobile nav toggle avec SVG Lucide --- */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 1100;        /* important */
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  color: var(--text-main);
}

.nav-toggle:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 10px rgba(148,163,184,0.22);
}

/* Les deux icônes sont empilées l'une sur l'autre */
.nav-toggle-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

/* État par défaut : burger visible, croix cachée */
.nav-icon-burger {
  opacity: 1;
  transform: scale(1);
}

.nav-icon-close {
  opacity: 0;
  transform: scale(0.8);
}

/* Quand le menu est ouvert */
.nav-toggle.nav-toggle-open {
  color: var(--accent); /* optionnel : couleur différente quand ouvert */
}

.nav-toggle.nav-toggle-open .nav-icon-burger {
  opacity: 0;
  transform: scale(0.8);
}

.nav-toggle.nav-toggle-open .nav-icon-close {
  opacity: 1;
  transform: scale(1);
}

/* Affichage du bouton seulement en mobile */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* --- Panneau mobile --- */
.nav-mobile-panel {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.30);   /* overlay sombre */
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4.5rem;               /* pour laisser respirer sous le header */
  z-index: 900;
}

.nav-mobile-panel[data-open="true"] {
  display: flex;
}

.nav-mobile-inner {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-main);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15,23,42,0.35);
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-mobile-link,
.nav-mobile-btn {
  font-size: 0.95rem;
  color: var(--text-main);
}
/* Corrige la couleur du texte sur les boutons primaires en mobile */
.nav-mobile-btn.btn-primary {
  color: #F9FAFB; /* blanc doux */
}

.nav-mobile-link:hover {
  color: var(--text-main);
}

.nav-mobile-actions {
  margin-top: 0.5rem;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.75rem;
}

.nav-mobile-user {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.nav-mobile-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero,
  .pricing,
  .about-grid,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2rem;
  }

  /* Sur mobile : on cache les liens desktop et on montre le burger */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .section {
    padding-inline: 1rem;
  }
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.35rem;
  color: #9ca3af;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

.note-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  max-height: 320px;
  overflow: hidden;
  border-radius: 1rem;
  margin: 0 0 1.25rem 0;   /* <- plus de marge gauche/droite par défaut */
}

.note-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.note-article {
  max-width: 760px;
  margin: 0 auto;
}

/* Contrainte de largeur pour l'article */
.note-wrapper {
  max-width: 960px;      /* ou 880px si tu veux plus étroit */
  margin-left: auto;
  margin-right: auto;
}

.plan-options {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.45rem;
}

.plan-option {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.plan-option input[type="radio"] {
  margin-top: 0.15rem;
}

.plan-option small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;

  /* le reste de ton style existant */
  /* background, padding, etc. */
}

.cookie-banner--hidden {
  opacity: 0;
  pointer-events: none;
}

.cookie-inner {
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 18px 40px rgba(15,23,42,0.25);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-manage {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15,23,42,0.25);
  display: none; /* on l'affichera en JS */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1200;
  font-size: 1.15rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.cookie-manage:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15,23,42,0.32);
  background: #f9fafb;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-checkbox input {
  margin-top: 0.15rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 900px;
  margin: 0 auto 0.75rem;
  text-align: center;
  line-height: 1.4;
}