:root {
      --bg: #f7f3ee;
      --card: #ffffff;
      --text: #292524;
      --muted: #57534e;
      --line: #e7e5e4;
      --amber: #d97706;
      --amber-dark: #b45309;
      --amber-soft: #fef3c7;
      --blue: #3b82f6;
      --green: #10b981;
      --stone-dark: #1c1917;
      --stone-mid: #44403c;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Poppins', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
    }

    a {
      text-decoration: none;
    }

    .container {
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
    }

    .hero {
      background: linear-gradient(135deg, #b45309 0%, #ffb347 100%);
      overflow: hidden;
    }

    .hero-inner {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 24px;
      align-items: center;
      padding: 12px 0 0;
    }

    .eyebrow {
      display: inline-block;
      margin-bottom: 6px;
      padding: 10px 16px;
      border-radius: 999px;
      background: rgba(255,255,255,0.92);
      box-shadow: 0 2px 10px rgba(0,0,0,0.06);
      color: #44403c;
      font-size: 14px;
    }

    h1 {
      margin: 0;
      color: #ffffff;
      font-size: clamp(28px, 4.5vw, 48px);
      line-height: 1.08;
      letter-spacing: -0.03em;
    }

    .hero-text {
      margin-top: 12px;
      color: #ffffff;
      max-width: 640px;
      font-size: 18px;
    }

    .badges {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 6px;
      margin-bottom: 12px;
    }

    .badge {
      padding: 6px 16px;
      border-radius: 999px;
      color: white;
      font-weight: 700;
      font-size: 14px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    }

    .badge.blue { background: var(--blue); }
    .badge.amber { background: #f59e0b; }
    .badge.green { background: var(--green); }

    .filters {
      padding: 16px 0 0;
    }

    .filter-row {
      display: flex;
      flex-wrap: nowrap;
      gap: clamp(4px, 1.6vw, 12px);
    }

    .filter-btn {
      border: none;
      cursor: pointer;
      border-radius: 999px;
      padding: 6px clamp(7px, 2.4vw, 16px);
      font-size: clamp(10.5px, 3.3vw, 14px);
      white-space: nowrap;
      font-weight: 700;
      color: #b45309;
      background: var(--amber-soft);
      transition: 0.2s ease;
    }

    .filter-btn:hover {
      background: #fde68a;
    }

    .filter-btn.active {
      background: var(--amber);
      color: white;
    }

    .section-head {
      padding: 12px 0 0;
      margin-bottom: 20px;
    }

    .section-label {
      color: #b45309;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-size: 13px;
      font-weight: 700;
      margin: 0 0 8px;
    }

    h2 {
      margin: 0;
      font-size: clamp(32px, 4vw, 46px);
      line-height: 1.1;
    }

    .books-title {
      font-size: 30px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      padding-bottom: 16px;
    }

    .books-block + .books-block {
      margin-top: 36px;
      padding-top: 28px;
      border-top: none;
    }

    .subsection-head {
      margin: 4px 0 18px;
    }

    .subsection-title {
      margin: 0;
      font-size: 20px;
      line-height: 1.2;
      color: #ffffff;
      background: #b45309;
      display: inline-block;
      padding: 6px 14px;
      border-radius: 8px;
    }

    #livresSuite {
      margin-top: 24px;
    }

    #othersSection .subsection-title {
      background: #000000;
      color: #ffffff;
    }

    .card {
      background: var(--card);
      border-radius: 28px;
      overflow: hidden;
      box-shadow: 0 4px 14px rgba(0,0,0,0.04);
      border: 2px solid #e7e5e4;
      padding: 6px;
      display: flex;
      flex-direction: column;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    @media (hover: hover) {
      .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(0,0,0,0.08);
      }
    }

    .card.bestseller {
      border: 2px solid #f59e0b;
      box-shadow: 0 6px 18px rgba(217,119,6,0.18);
    }

    .card img {
      width: 100%;
      max-height: 320px;
      height: 320px;
      object-fit: contain;
      object-position: center;
      display: block;
      background: #fff;
      border-radius: 8px;
      margin-top: 12px;
    }

    .card-body {
      padding: 14px 24px 24px;
      background: #fff7ed;
      border-radius: 0 0 22px 22px;
      margin-top: 12px;
      flex: 1;
      display: flex;
      flex-direction: column;
      transition: background 0.35s ease;
    }

    body.no-anim .desc { transition: none !important; }

    /* Prix + bouton toujours en bas de la carte : alignés sur toute la ligne */
    .card-body .new-tag { align-self: flex-start; }

    @media (hover: hover) {
      .card:hover .card-body {
        background: linear-gradient(to bottom, rgba(255,247,237,0.4) 0%, #fde8d5 40%, #fde8d5 100%);
      }
    }

    .card.expanded .card-body {
      background: linear-gradient(to bottom, rgba(255,247,237,0.4) 0%, #fde8d5 40%, #fde8d5 100%);
    }

    .card-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      flex-wrap: wrap;
    }

    .category {
      color: #b45309;
      font-size: 14px;
      margin: 0;
    }

    .best {
      background: #f59e0b;
      color: white;
      border-radius: 999px;
      padding: 7px 14px;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      white-space: nowrap;
      box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    }

    .fav {
      background: #ec4899;
      color: white;
      border-radius: 999px;
      padding: 7px 14px;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      white-space: nowrap;
      box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    }

    .card h3 {
      margin: 10px 0 0;
      font-size: 15px;
      line-height: 1.1;
    }

    .desc {
      font-size: 13px;
      line-height: 1.4;
      margin: 3px 0 0;
      color: var(--muted);
      text-align: left;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      transition: all 0.25s ease;
      max-height: 4.8em;
    }

    .card.expanded .desc {
      -webkit-line-clamp: unset;
      max-height: 500px;
      overflow: visible;
    }

    .btn {
      display: inline-flex;
      font-size: 16px;
      padding: 6px 20px;
      border-radius: 18px;
      background: linear-gradient(135deg, #ff7a00 0%, #ffb347 100%);
      color: white;
      font-weight: 700;
      transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
      color: white;
      font-weight: 700;
      transition: background 0.2s ease;
    }

    .card-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin-top: auto;
      padding-top: 16px;
      gap: 8px;
    }

    .price {
      font-weight: 700;
      font-size: 14px;
      color: #000;
      white-space: nowrap;
    }

    .btn:hover {
      background: linear-gradient(135deg, #ff6a00 0%, #ffa033 100%);
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    }

    .reviews {
      padding: 20px 0 32px;
      background: #111111;
      color: #fff;
    }

    .reviews-head {
      margin-top: -10px;
      color: #fff;
      margin-bottom: 18px;
    }

    .reviews-head h2 {
      color: #ffffff;
      font-size: 30px;
    }

    .reviews-sub {
      margin: 6px 0 0;
      color: #d6d3d1;
      font-size: 14px;
    }

    .reviews-track-wrap {
      overflow: hidden;
      width: 100%;
    }

    .reviews-track {
      display: flex;
      gap: 24px;
      width: max-content;
      animation: scrollReviews 70s linear infinite;
    }

    .reviews-track:hover {
      animation-play-state: paused;
    }

    .review {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 6px;
      width: 320px;
      min-height: 140px;
      padding: 16px 16px 10px;
      background: #fff;
      border: 2px solid #e7e5e4;
      border-radius: 20px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.04);
      white-space: normal;
      color: #44403c;
      font-size: 14px;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      overflow: hidden;
    }

    .review:hover {
      transform: scale(1.04);
      box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

    .review:nth-child(even) {
      background: #fff7ed;
      border-color: #fed7aa;
    }

    .review-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }

    .review-text {
      margin: 0;
      line-height: 1.5;
      color: #57534e;
      font-style: italic;
    }

    .stars {
      color: #f59e0b;
      font-weight: bold;
      letter-spacing: 0.08em;
      white-space: nowrap;
    }

    .review-name {
      font-weight: 700;
      color: #292524;
      text-align: right;
    }

    .about {
      background: white;
      padding: 18px 0;
    }

    .about-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      align-items: start;
    }

    .about-text {
      font-size: 16px;
      color: var(--muted);
      text-align: justify;
      margin: 0;
    }

    .contact-box {
      margin-top: 26px;
      padding: 12px 16px;
      background: #fff7ed;
      border: 2px solid #fed7aa;
      border-radius: 16px;
      text-align: center;
    }

    .contact-title {
      margin: 0;
      font-size: clamp(12px, 3.6vw, 17px);
      font-weight: 700;
      color: #292524;
      white-space: nowrap;
    }

    .contact-text {
      margin: 2px 0 10px;
      font-size: 13px;
      color: var(--muted);
    }

    .contact-box .btn {
      font-size: 13px;
      padding: 5px 18px;
      border-radius: 14px;
    }

    /* Espaces resserrés : Ma bibliothèque / titres de sections / livres */
    .filters .section-head { margin-bottom: 14px; }
    .filters .section-label { margin-bottom: 0; }
    /* Titres de sections : plus grands, avec une ligne d'explication, et le même espace sous chaque rubrique */
    .subsection-head { margin: 0 0 16px; }
    .subsection-title {
      display: block;
      width: fit-content;
      font-size: clamp(22px, 5.4vw, 28px);
      padding: 6px 18px;
    }
    #othersSection .subsection-head { margin-bottom: 16px; }

    /* Bouton "remonter en haut" */
    .to-top {
      position: fixed;
      right: 14px;
      bottom: calc(18px + env(safe-area-inset-bottom, 0px));
      width: 46px;
      height: 46px;
      border: none;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #ff7a00 0%, #ffb347 100%);
      color: #ffffff;
      box-shadow: 0 6px 16px rgba(0,0,0,0.25);
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
      z-index: 50;
    }

    .to-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    @media (hover: hover) {
      .to-top.show:hover { transform: translateY(-2px); }
    }

    /* Neige (bandeau du haut et bande des avis) */
    .hero, .reviews { position: relative; }
    .reviews { overflow: hidden; }
    .hero .container, .reviews .container { position: relative; z-index: 1; }
    .snow-canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    /* Couverture cliquable */
    .card-cover { display: block; cursor: pointer; }
    .card-cover img { transition: transform 0.25s ease; }
    @media (hover: hover) {
      .card-cover:hover img { transform: scale(1.025); }
    }

    /* Badge Nouveauté (ligne à part, au-dessus de la catégorie) */
    .new-tag {
      display: inline-block;
      margin: 0 0 8px;
      padding: 3px 10px;
      border-radius: 999px;
      position: relative;
      overflow: hidden;
      background: #fff176;
      color: #422006;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      animation: newGlow 2.8s ease-in-out infinite;
    }

    /* Reflet qui passe doucement sur la pastille */
    .new-tag::after,
    #newSection .subsection-title::after {
      content: "";
      position: absolute;
      top: 0;
      left: -70%;
      width: 40%;
      height: 100%;
      background: linear-gradient(100deg, transparent, rgba(255,255,255,0.8), transparent);
      transform: skewX(-20deg);
      animation: newShine 3.4s ease-in-out infinite;
    }

    @keyframes newGlow {
      0%, 100% { box-shadow: 0 0 0 0 rgba(255,241,118,0); }
      50% { box-shadow: 0 0 10px 3px rgba(255,241,118,0.85); }
    }

    @keyframes newShine {
      0% { left: -70%; }
      55%, 100% { left: 140%; }
    }

    @media (prefers-reduced-motion: reduce) {
      .new-tag, .new-tag::after,
      #newSection .subsection-title, #newSection .subsection-title::after { animation: none; }
    }

    /* Petit séparateur entre Nouveautés et Meilleures ventes */
    .section-sep {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 14px;
      width: min(300px, 70%);
      margin: 4px auto 26px;
      color: #e0a040;
      font-size: 16px;
    }
    .section-sep::before,
    .section-sep::after {
      content: "";
      flex: 1;
      height: 1px;
    }
    .section-sep::before { background: linear-gradient(to left, #e6c9a0, rgba(230,201,160,0)); }
    .section-sep::after { background: linear-gradient(to right, #e6c9a0, rgba(230,201,160,0)); }

    /* Séparation discrète entre les groupes de « À découvrir aussi » */
    .group-divider {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      margin: 8px 0 0;
      color: #b45309;
      font-size: 17px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
    .group-divider::before,
    .group-divider::after {
      content: "";
      flex: 1;
      height: 1px;
    }
    .group-divider::before { background: linear-gradient(to left, #e6c9a0, rgba(230,201,160,0)); }
    .group-divider::after { background: linear-gradient(to right, #e6c9a0, rgba(230,201,160,0)); }
    .group-divider:first-child { margin-top: 0; }

    /* Type de livre : petit texte gris sous la catégorie */
    .cat-col { min-width: 0; }
    .cat-col .category { line-height: 1.25; }
    .book-type {
      margin: 0;
      line-height: 1.25;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #78716c;
    }

    /* Nouveautés en grand format */
    #livres .books-block + .books-block { margin-top: 0; padding-top: 0; }
    #newSection { margin-bottom: 24px; }
    #newSection .subsection-title {
      position: relative;
      overflow: hidden;
      background: #fff176;
      color: #422006;
      animation: newGlow 2.8s ease-in-out infinite;
    }
    .new-grid {
      display: flex;
      justify-content: center;
      gap: 14px;
      padding-bottom: 8px;
    }
    .new-grid .card {
      flex: 0 1 calc((100% - 28px) / 3);
      max-width: calc((100% - 28px) / 3);
    }
    .card--big img { height: 440px; max-height: 440px; }
    .card--big .card-body { padding: 18px 26px 26px; }
    .card--big h3 { font-size: 20px; line-height: 1.15; }
    .card--big .desc {
      display: block;
      font-size: 14px;
      -webkit-line-clamp: unset;
      max-height: none;
      overflow: visible;
      cursor: default;
    }
    .card--big .price { font-size: 16px; }
    .card--big .btn { font-size: 17px; padding: 8px 24px; }
    .card--big .book-type { font-size: 12px; }

    /* Meilleures ventes : 4 par ligne sur ordinateur, 2x2 sur tablette et téléphone */
    @media (min-width: 961px) {
      #bestsellersGrid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    }
    @media (min-width: 721px) and (max-width: 960px) {
      #bestsellersGrid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @keyframes scrollReviews {
      from { transform: translateX(0); }
      to { transform: translateX(calc(-50% - 12px)); }
    }

    .footer {
      border-top: 1px solid var(--line);
      padding: 12px 0 16px;
      color: #78716c;
      font-size: 14px;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      align-items: center;
    }

    .footer-inner p {
      margin: 0;
    }

    .footer-links {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: inherit;
    }

    @media (max-width: 960px) {
      .hero-inner,
      .about-inner {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 720px) {

      .hero-text {
        font-size: 14px;
      }

      .about-text {
        font-size: 14px;
      }


      .badges {
        flex-wrap: nowrap;
        gap: 6px;
      }

      .badge {
        font-size: 11px;
        padding: 5px 10px;
      }

      .hero-inner,
      .about-inner {
        grid-template-columns: 1fr;
      }

      .about-inner {
        gap: 8px;
      }

      .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }

      .card {
        border-radius: 10px;
        padding: 4px;
      }

      .card img {
        margin-top: 2px;
        height: 170px;
        max-height: 170px;
        border-radius: 6px;
      }

      .card-body {
        margin-top: 4px;
        padding: 10px 10px 12px;
        border-radius: 0 0 6px 6px;
      }

      .card-top {
        gap: 6px;
      }

      .category {
        font-size: 11px;
      }

      .best,
      .fav {
        font-size: 9px;
        padding: 5px 8px;
        letter-spacing: 0.03em;
      }

      .card h3 {
        font-size: 12px;
        line-height: 1.15;
        margin-top: 8px;
      }

      .desc {
        font-size: 11px;
        margin-top: 3px;
        -webkit-line-clamp: 2;
        max-height: 3.2em;
      }

      .card-actions {
        margin-top: auto;
        padding-top: 10px;
        gap: 6px;
      }

      .price {
        font-size: 12px;
      }

      .btn {
        font-size: 12px;
        padding: 5px 10px;
        border-radius: 12px;
      }

      .about {
        padding: 18px 0;
      }

      .footer {
        font-size: 12px;
      }

      .review {
        width: 260px;
      }
    }

    /* Ordinateur / tablette : "À propos" centré, titre puis texte en dessous */
    @media (min-width: 721px) {
      .about-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: center;
        text-align: center;
      }

      .about-text {
        text-align: center;
        max-width: 820px;
      }

      /* L'encadré de contact a la même largeur que le texte au-dessus */
      .contact-box {
        width: min(820px, calc(100% - 32px));
      }
    }

    @media (max-width: 720px) {
      .new-tag {
        font-size: 9px;
        padding: 2px 8px;
        margin-bottom: 6px;
      }
      .group-divider { font-size: 14px; gap: 10px; }
      .subsection-head { text-align: center; }
      .subsection-head .subsection-title { margin-left: auto; margin-right: auto; }
      .book-type { font-size: 9px; letter-spacing: 0.04em; }

      /* Nouveautés : une par une sur téléphone */
      .new-grid { flex-direction: column; align-items: center; gap: 10px; }
      .new-grid .card { flex: none; width: min(100%, 290px); max-width: none; }
      .card.card--big img { height: 300px; max-height: 300px; }
      .card.card--big .card-body { padding: 14px 16px 18px; }
      .card.card--big h3 { font-size: 17px; margin-top: 8px; }
      .card.card--big .desc { font-size: 13px; margin-top: 3px; max-height: none; }
      .card.card--big .category { font-size: 13px; }
      .card.card--big .book-type { font-size: 11px; }
      .card.card--big .best, .card.card--big .fav { font-size: 10px; padding: 6px 10px; }
      .card.card--big .price { font-size: 15px; }
      .card.card--big .btn { font-size: 15px; padding: 7px 18px; border-radius: 14px; }
    }

    /* Titres de sections : bandeau pleine largeur en dégradé qui défile doucement vers la droite */
    main { overflow-x: hidden; overflow-x: clip; }
    .subsection-head {
      --ga: #b45309; --gb: #ea580c; --bt: #ffffff; --ts: 0 1px 3px rgba(0,0,0,0.28);
      position: relative;
      isolation: isolate;
      padding: 12px 0;
      margin-bottom: 16px;
      text-align: center;
    }
    .subsection-head::before {
      content: "";
      position: absolute;
      z-index: -1;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 100vw;
      transform: translateX(-50%);
      background: linear-gradient(90deg, var(--ga), var(--gb), var(--ga));
      background-size: 200% 100%;
      animation: bandFlow 14s linear infinite;
    }
    #newSection .subsection-head { --ga: #8f5f00; --gb: #c28e00; --bt: #ffffff; --ts: 0 1px 3px rgba(60,35,0,0.45); }   /* or foncé, texte blanc */
    /* Meilleures ventes : orange (même dégradé que le haut du site) — valeurs par défaut ci-dessus */
    #othersSection .subsection-head { --ga: #1c1917; --gb: #57534e; }   /* À découvrir aussi : noir → gris foncé */
    .subsection-title,
    #newSection .subsection-title,
    #othersSection .subsection-title {
      display: block;
      width: auto;
      margin: 0 auto;
      background: none;
      color: var(--bt, #ffffff);
      padding: 0;
      border: none;
      border-radius: 0;
      box-shadow: none;
      animation: none;
      overflow: visible;
      position: relative;
      z-index: 1;
      font-size: clamp(22px, 5.5vw, 28px);
      font-weight: 800;
      line-height: 1.2;
      text-shadow: var(--ts, 0 1px 3px rgba(0,0,0,0.28));
    }
    /* Neige dans les bandeaux : sur toute la largeur, entre le dégradé et le titre */
    .snow-canvas--band {
      left: 50%;
      width: 100vw;
      transform: translateX(-50%);
    }
    #newSection .subsection-title::after { display: none; }
    @keyframes bandFlow {
      from { background-position: 0% 0; }
      to { background-position: -200% 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      .subsection-head::before { animation: none; }
    }

    /* Les bandeaux séparent déjà les rubriques : le petit séparateur ✦ n'est plus utile */
    .section-sep { display: none !important; }

    /* Contours des fiches : plus de gris ; Nouveautés = fin contour doré, Meilleures ventes = fin contour orange clair,
       À découvrir aussi = aucun contour */
    .card { border-color: transparent; }
    #newGrid .card { border: 2px solid #d9a520; }
    .card.bestseller {
      border: 2px solid #f59e0b;                                            /* contour et liseré du haut : même orange vif */
      box-shadow: inset 0 6px 0 0 #f59e0b, 0 4px 14px rgba(0,0,0,0.04);
    }
    .card.is-new {
      border: 2px solid #d9a520;                                            /* contour et liseré du haut : même or */
      box-shadow: inset 0 6px 0 0 #d9a520, 0 4px 14px rgba(0,0,0,0.04);
    }
    @media (hover: hover) {
      .card.bestseller:hover { box-shadow: inset 0 6px 0 0 #f59e0b, 0 14px 28px rgba(0,0,0,0.08); }
      .card.is-new:hover { box-shadow: inset 0 6px 0 0 #d9a520, 0 14px 28px rgba(0,0,0,0.08); }
    }

    /* « ★ BEST SELLER » : sous le type (vues par catégorie) ou sous le titre (rubrique Meilleures ventes) */
    .best-text {
      margin: 1px 0 0;
      font-size: 10px;
      font-weight: 800;
      line-height: 1.25;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      white-space: nowrap;
      color: #c2780a;
    }
    .best-text--title { margin: 2px 0 0; font-size: 11px; }
    @media (max-width: 720px) {
      .best-text { font-size: 8px; letter-spacing: 0.04em; }
      .best-text--title { font-size: 9px; }
    }
    @container (max-width: 190px) {
      .best-text { font-size: 7.5px; letter-spacing: 0.02em; }
      .best-text--title { font-size: 9px; letter-spacing: 0.04em; }
    }

    /* « Ils ont aimé » : léger dégradé, noir en haut à gauche, qui s'éclaircit en brun chaud vers le bas à droite */
    .reviews { background: linear-gradient(135deg, #111111 0%, #201912 58%, #4a331d 100%); }
    .reviews .section-label { color: #f5a524; }

    /* Badge Coup de cœur : toujours à droite de la catégorie et du type, sur la même ligne */
    .card-top { flex-wrap: nowrap; gap: 8px; }
    .card-top .cat-col { flex: 1 1 auto; min-width: 0; }
    .fav {
      flex: 0 0 auto;
      white-space: nowrap;
      font-size: 10px;
      line-height: 1.2;
      padding: 5px 10px;
      letter-spacing: 0.02em;
      text-transform: none;
    }
    .card-body { container-type: inline-size; }
    /* Cartes étroites (téléphone) : le badge reste complet mais plus petit, sur deux lignes (« 🤍 Coup / de cœur ») */
    @container (max-width: 190px) {
      .fav {
        white-space: normal;
        max-width: 58px;
        text-align: center;
        font-size: 8.5px;
        line-height: 1.15;
        padding: 3px 6px;
        border-radius: 12px;
        letter-spacing: 0;
      }
    }

    /* Bandeaux en arc léger (centre plus haut) : le dégradé et la neige suivent la même courbe */
    .subsection-head { padding: 11px 0 21px; margin-bottom: 8px; }
    .subsection-head::before,
    .snow-canvas--band {
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,15.2%20Q50,-15.2%20100,15.2%20L100,100%20Q50,69.6%200,100%20Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,15.2%20Q50,-15.2%20100,15.2%20L100,100%20Q50,69.6%200,100%20Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
    }
    /* Lettres du titre : placées une à une le long d'un arc (voir archTitles) */
    .arch-ch { display: inline-block; white-space: pre; transform-origin: 50% 60%; }


    /* Coup de cœur : même effet que la pastille Nouveauté (halo doux + reflet qui passe) */
    .fav {
      position: relative;
      overflow: hidden;
      animation: favGlow 2.8s ease-in-out infinite;
    }
    .fav::after {
      content: "";
      position: absolute;
      top: 0;
      left: -70%;
      width: 40%;
      height: 100%;
      background: linear-gradient(100deg, transparent, rgba(255,255,255,0.8), transparent);
      transform: skewX(-20deg);
      animation: newShine 3.4s ease-in-out infinite;
    }
    @keyframes favGlow {
      0%, 100% { box-shadow: 0 0 0 0 rgba(236,72,153,0); }
      50% { box-shadow: 0 0 10px 3px rgba(236,72,153,0.55); }
    }
    @media (prefers-reduced-motion: reduce) {
      .fav, .fav::after { animation: none; }
    }

    /* Fiches à liseré (nouveautés, meilleures ventes) : un peu plus d'air entre le haut de la fiche et la couverture.
       L'image perd 6 px de hauteur pour que le bas des fiches reste aligné avec les autres. */
    .card.bestseller img, .card.is-new img { margin-top: 18px; height: 314px; max-height: 314px; }
    .card.card--big.bestseller img, .card.card--big.is-new img { height: 434px; max-height: 434px; }
    @media (max-width: 720px) {
      .card.bestseller img, .card.is-new img { margin-top: 8px; height: 164px; max-height: 164px; }
      .card.card--big.bestseller img, .card.card--big.is-new img { height: 294px; max-height: 294px; }
    }

    /* Phrase de présentation : interligne resserré, et signature juste dessous */
    .hero-text { line-height: 1.25; }
    .hero-text .hero-signature {
      display: block;
      margin-top: 1px;
      line-height: 1.2;
      font-size: 15px;
      font-style: italic;
      font-weight: 400;
      opacity: 0.95;
    }
    @media (max-width: 720px) {
      .hero-text { line-height: 1.25; }
      .hero-text .hero-signature { font-size: 13px; margin-top: 0; }
    }

/* ── Ajouts du site enfants : menu, chasses au trésor, pros, pages bonus ── */
.topnav { position: relative; z-index: 3; }
.topnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 4px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; background: #fff; }
.navlinks { display: flex; gap: 6px; flex-wrap: wrap; }
.navlinks a { color: #fff; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.16); transition: background .2s; }
.navlinks a:hover, .navlinks a.on { background: rgba(255,255,255,0.32); }
.navlinks a.star { background: #fff; color: #b45309; }
@media (max-width: 560px) {
  .topnav-inner { justify-content: center; }
  .navlinks { justify-content: center; }
  .navlinks a { font-size: 13px; padding: 5px 10px; }
}

/* Chasses au trésor */
.hunts { padding: 22px 0 30px; }
.hunts-head h2 { font-size: clamp(26px, 3.6vw, 38px); }
.hunts-sub { color: var(--muted); margin: 6px 0 18px; max-width: 720px; }
.hunt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hunt { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,0.07); display: flex; flex-direction: column; }
.hunt img { width: 100%; aspect-ratio: 2550/3300; object-fit: cover; display: block; }
.hunt-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hunt-body h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.hunt-body p { margin: 0; font-size: 14px; color: var(--muted); }
.hunt-body .btn { align-self: flex-start; margin-top: auto; }
.soon { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; color: #7c3aed; background: #ede9fe; padding: 4px 10px; border-radius: 999px; }
.hunt-perks { display: flex; flex-wrap: wrap; gap: 6px; }
.hunt-perks span { font-size: 12px; font-weight: 600; background: var(--amber-soft); color: #b45309; padding: 3px 9px; border-radius: 999px; }
@media (max-width: 860px) { .hunt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hunt-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .hunt-body { padding: 10px; } .hunt-body h3 { font-size: 15px; } .hunt-body p { display: none; } .hunt-perks { display: none; } }

/* Bloc CSE & pros */
.pro { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); color: #fff; padding: 28px 0; }
.pro-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.pro .section-label { color: #bfdbfe; }
.pro h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); }
.pro p { margin: 10px 0 0; color: #e0e7ff; }
.pro ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pro li { background: rgba(255,255,255,0.12); border-radius: 14px; padding: 10px 14px; font-weight: 500; }
.pro .btn { margin-top: 16px; }
@media (max-width: 860px) { .pro-inner { grid-template-columns: 1fr; } }

/* Pages bonus */
.bonus-hero { padding-bottom: 26px; }
.bonus-hero h1 { margin-top: 10px; }
.bonus-section { padding: 26px 0; }
.bonus-section h2 { font-size: clamp(24px, 3.4vw, 34px); }
.bonus-lead { color: var(--muted); margin: 8px 0 18px; max-width: 760px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 4px; }
.step { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #fff; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.color-card { background: #fff; border-radius: 18px; padding: 12px; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.color-card img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; margin-bottom: 10px; }
.color-card .btn { font-size: 14px; }
@media (max-width: 520px) { .color-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .color-card .btn { font-size: 12px; padding: 5px 10px; } }

/* Page secrète d'un livre */
.unlock { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 10px 28px rgba(0,0,0,0.08); text-align: center; }
.unlock img.mini { width: 120px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.unlock h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 12px; }
.unlock p { color: var(--muted); }
.unlock form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.unlock input { font: inherit; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; padding: 10px 14px; border-radius: 14px; border: 2px solid #fed7aa; width: min(260px, 100%); outline: none; }
.unlock input:focus { border-color: var(--amber); }
.unlock button { font: inherit; border: 0; cursor: pointer; }
.unlock .err { color: #dc2626; font-weight: 600; min-height: 1.5em; margin: 8px 0 0; }
.kit { display: none; }
.kit.open { display: block; }
.kit-box { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 10px 28px rgba(0,0,0,0.08); }
.kit-top { display: flex; gap: 18px; align-items: center; }
.kit-top img { width: 130px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.kit-top h2 { font-size: clamp(22px, 3vw, 30px); }
.kit .big { font-size: 18px; padding: 10px 26px; margin-top: 14px; }
.kit ul { color: var(--muted); padding-left: 20px; }
.kit .tip { background: #fff7ed; border: 2px solid #fed7aa; border-radius: 14px; padding: 10px 14px; font-size: 14px; }
@media (max-width: 560px) { .kit-top { flex-direction: column; text-align: center; } }
.back-link { display: inline-block; margin-top: 14px; color: #b45309; font-weight: 600; }
.kit .big { margin-right: 8px; }
