:root {
  --cream: #FDF8F2;
  --peach: #FFF3EC;
  --butter: #FFF5DF;
  --rose: #F2C4D4;
  --rose-deep: #E8A0BC;
  --mint: #B8E0D5;
  --mint-deep: #88C2B0;
  --coral: #E8825A;
  --coral-light: #EE9E7E;
  --plum: #7E2C48;
  --sand: #D7C9C1;
  --sage: #9DB89C;
  --sage-light: #CBDCC8;
  --gold: #D4A94A;
  --gold-light: #EBD9A8;
  --ink: #4A3B35;
  --ink-soft: #75665F;
  --brown: #6F4A00;
  --card: #FFFFFF;
  --radius: 16px;
  --radius-sm: 12px;
  --pill: 100px;
  --shadow: 0 8px 28px rgba(126, 44, 72, 0.07);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- En-tete ---------- */
header.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(215, 201, 193, 0.4);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--plum);
}
nav.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.main-nav a:hover { color: var(--plum); border-bottom-color: var(--rose-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 24px 64px;
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  background: radial-gradient(closest-side, rgba(242, 196, 212, 0.4), transparent);
  top: -140px; left: -120px;
}
.hero::after {
  background: radial-gradient(closest-side, rgba(184, 224, 213, 0.4), transparent);
  bottom: -180px; right: -120px;
}
.hero > * { position: relative; }
.hero h1 { font-size: 2.6rem; margin: 0 0 14px; color: var(--plum); }
.hero .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 32px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--pill);
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: #d6714a; transform: translateY(-1px); }
.btn.secondary {
  background: #fff;
  color: var(--plum);
  border: 2px solid var(--rose);
}
.btn.secondary:hover { background: var(--rose); color: var(--plum); }

/* ---------- Titres de section ---------- */
.section-title { text-align: center; margin: 64px 0 32px; }
.section-title h2 { font-size: 1.8rem; margin: 0 0 8px; color: var(--plum); }
.section-title p { color: var(--ink-soft); margin: 0; }

/* ---------- Grille et cartes ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding-bottom: 64px;
}
.card {
  background: var(--card);
  border: 1px solid rgba(215, 201, 193, 0.5);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(126, 44, 72, 0.12);
}
.card h3 { margin: 0; font-size: 1.2rem; color: var(--plum); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.card-points {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink);
}
.card-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage);
  font-weight: 700;
  font-size: 0.82rem;
}
.card .price {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--coral);
  margin-top: auto;
  padding-top: 8px;
}
.tag {
  display: inline-block;
  background: var(--mint);
  color: #2f5f52;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--pill);
  width: fit-content;
}

/* ---------- Fiche produit ---------- */
.product-page { padding: 48px 0 80px; max-width: 780px; }
.product-page .back {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: inline-block;
}
.product-page .back:hover { color: var(--plum); }
.product-header h1 { font-size: 2.1rem; margin: 0 0 10px; color: var(--plum); }
.product-header .subtitle { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 20px; }
.audience {
  display: inline-block;
  background: var(--butter);
  color: var(--brown);
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--pill);
  margin-bottom: 20px;
}
.fiche-gagne {
  background: var(--peach);
  border: 1px solid rgba(232, 160, 188, 0.3);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 22px;
}
.fiche-gagne h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--plum);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.fiche-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fiche-points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink);
}
.fiche-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage);
  font-weight: 700;
}
.includes {
  background: var(--peach);
  border: 1px solid rgba(232, 160, 188, 0.3);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
}
.includes h3 { margin: 0 0 12px; font-size: 1.15rem; color: var(--plum); }
.includes ul { margin: 0; padding-left: 20px; }
.includes li { margin-bottom: 10px; }
.product-price {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--coral);
  margin-bottom: 20px;
}

/* ---------- Page merci ---------- */
.merci-page { text-align: center; padding: 80px 0; max-width: 680px; }
.merci-page h1 { font-size: 2.2rem; color: var(--plum); margin-bottom: 14px; }
.merci-page p { color: var(--ink-soft); }
.telechargements {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin: 32px 0 20px;
}
.merci-page .aide,
.merci-page .attente { font-size: 0.9rem; color: var(--ink-soft); }
#zone-refus {
  background: var(--peach);
  border: 1px solid rgba(232, 160, 188, 0.4);
  border-radius: var(--radius);
  padding: 28px;
}
#zone-refus a { color: var(--coral); text-decoration: underline; }

/* ---------- Pied de page ---------- */
footer.site-footer {
  background: var(--peach);
  border-top: 1px solid rgba(215, 201, 193, 0.5);
  padding: 40px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 620px) {
  .hero { padding: 56px 20px 44px; }
  .hero h1 { font-size: 2rem; }
  .section-title { margin: 44px 0 24px; }
}

/* ---------- Pages juridiques ---------- */
.legal-page {
  max-width: 760px;
  padding: 48px 24px 80px;
}
.legal-page h1 {
  font-size: 2rem;
  color: var(--plum);
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--rose);
}
.legal-page h2 {
  font-size: 1.2rem;
  color: var(--plum);
  margin: 36px 0 10px;
}
.legal-page p { margin: 0 0 14px; color: var(--ink); }
.legal-page ul { margin: 0 0 18px; padding-left: 22px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--coral); text-decoration: underline; }

/* ---------- Pied de page ---------- */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-bottom: 22px;
}
.legal-nav a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.legal-nav a:hover { color: var(--plum); border-bottom-color: var(--rose-deep); }
.site-footer .copyright { margin: 0 0 6px; }
.site-footer .mention {
  margin: 0 auto;
  max-width: 540px;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ---------- Cartes produits avec visuel ---------- */
.card-produit { padding: 0; overflow: hidden; }
.card-visuel {
  background: var(--peach);
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
  border-bottom: 1px solid rgba(215, 201, 193, 0.4);
}
.card-visuel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  transition: transform 0.3s;
}
.card-produit:hover .card-visuel img { transform: scale(1.03); }
.card-corps {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

/* ---------- Fiche produit : en-tete ---------- */
.fiche-entete {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 36px;
}
.fiche-visuel {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(215, 201, 193, 0.5);
  box-shadow: var(--shadow);
  background: var(--peach);
}
.fiche-visuel img { width: 100%; display: block; }
.fiche-infos h1 { margin-top: 0; }
.fiche-description { font-size: 1.03rem; margin-bottom: 8px; }

/* ---------- Galerie d'apercus ---------- */
.apercus { margin-top: 48px; }
.apercus h2 {
  font-size: 1.5rem;
  color: var(--plum);
  margin: 0 0 6px;
  text-align: center;
}
.apercus-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 26px;
}
.apercus-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  max-width: 620px;
  margin: 0 auto;
  gap: 20px;
}
.apercu { margin: 0; }
.apercu img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(215, 201, 193, 0.6);
  box-shadow: var(--shadow);
  background: #fff;
}
.apercu figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 680px) {
  .fiche-entete { grid-template-columns: 1fr; gap: 24px; }
  .fiche-visuel { max-width: 280px; margin: 0 auto; }
}

/* ---------- Ornements ---------- */
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--rose-deep);
  border-radius: 2px;
}

.ornement {
  display: block;
  margin: 0 auto 10px;
  width: 44px;
  height: 22px;
  opacity: 0.9;
}

/* feuillages d'angle, repris du logo */
.hero .feuillage {
  position: absolute;
  width: 110px;
  opacity: 0.5;
  pointer-events: none;
}
.hero .feuillage.gauche { top: 26px; left: 32px; transform: rotate(-12deg); }
.hero .feuillage.droite { bottom: 26px; right: 32px; transform: rotate(168deg); }

/* etoiles dorees discretes */
.etoile {
  position: absolute;
  width: 13px;
  height: 13px;
  opacity: 0.75;
  pointer-events: none;
}
.hero .etoile.une { top: 92px; right: 17%; }
.hero .etoile.deux { bottom: 72px; left: 15%; }

/* alternance de teintes sur les cartes categories */
.grid > .card:nth-child(3n+1) .tag { background: var(--rose); color: #8a3a57; }
.grid > .card:nth-child(3n+2) .tag { background: var(--mint); color: #2f5f52; }
.grid > .card:nth-child(3n) .tag { background: var(--gold-light); color: #7a5a12; }

/* bandeau de confiance */
.confiance {
  background: var(--butter);
  border-top: 1px solid rgba(215, 201, 193, 0.5);
  border-bottom: 1px solid rgba(215, 201, 193, 0.5);
  padding: 26px 24px;
}
.confiance-liste {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 44px;
  list-style: none;
  padding: 0;
  font-size: 0.92rem;
  color: var(--brown);
}
.confiance-liste li { display: flex; align-items: center; gap: 9px; }
.confiance-liste svg { flex-shrink: 0; }

@media (max-width: 760px) {
  .hero .feuillage { width: 72px; opacity: 0.35; }
  .hero .etoile { display: none; }
}

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.logo span { line-height: 1.1; }

@media (max-width: 560px) {
  .logo img { width: 42px; height: 42px; }
  .logo span { font-size: 1.1rem; }
}

/* ---------- Logo dans l'en-tete ---------- */
.logo { display: flex; align-items: center; gap: 11px; }
.logo img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ---------- Reseaux sociaux ---------- */
.reseaux {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.reseaux a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--plum);
  border: 1px solid rgba(215, 201, 193, 0.6);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.reseaux a:hover {
  background: var(--rose);
  color: var(--plum);
  transform: translateY(-2px);
}

/* ---------- Page À propos ---------- */
.about-page { max-width: 740px; padding: 48px 24px 80px; }
.about-entete {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.about-logo {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 3px solid var(--rose);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.about-page h1 { font-size: 2.1rem; color: var(--plum); margin: 0 0 6px; }
.about-accroche {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--coral);
  margin: 0;
}
.about-page h2 {
  font-size: 1.3rem;
  color: var(--plum);
  margin: 38px 0 12px;
}
.about-page p { margin: 0 0 15px; font-size: 1.02rem; }
.about-citation {
  margin: 44px 0 0;
  padding: 26px 30px;
  background: var(--peach);
  border-left: 4px solid var(--rose-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--plum);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .about-entete { flex-direction: column; text-align: center; gap: 18px; }
}

/* ---------- Cartes de theme ---------- */
.grid-themes { padding-bottom: 20px; }
.card-theme { gap: 8px; }
.theme-icone {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--peach); color: var(--coral);
  margin-bottom: 4px;
}
.theme-icone svg { width: 24px; height: 24px; }
.theme-icone--bulletins { background: var(--gold-light); color: var(--brown); }
.theme-icone--cahiers-revisions { background: var(--sand); color: var(--ink-soft); }
.theme-icone--gratuit { background: var(--sage-light); color: var(--sage); }
.theme-icone--francais { background: var(--rose); color: var(--plum); }
.theme-icone--mathematiques { background: var(--mint); color: var(--mint-deep); }
.theme-compte {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--coral);
}
.card-bientot {
  background: var(--peach);
  border-style: dashed;
  box-shadow: none;
  cursor: default;
}
.card-bientot:hover { transform: none; box-shadow: none; }
.card-bientot .theme-compte { color: var(--ink-soft); font-style: italic; }
.tag-bientot { background: var(--gold-light); color: #7a5a12; }

/* ---------- Pastilles de niveau ---------- */
.pastilles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-bottom: 20px;
}
.pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 12px 22px;
  border-radius: var(--pill);
  background: #fff;
  border: 1px solid rgba(215, 201, 193, 0.7);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--plum);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.pastille:hover {
  background: var(--mint);
  border-color: var(--mint-deep);
  transform: translateY(-2px);
}

/* ---------- Message de categorie vide ---------- */
.vide {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  background: var(--peach);
  border: 1px dashed rgba(215, 201, 193, 0.8);
  border-radius: var(--radius);
  padding: 34px 24px;
  margin: 0;
}

/* ---------- Bandeau d'accueil ---------- */
.hero-rangee { position: static; }
.hero-contenu { max-width: 640px; margin: 0 auto; text-align: center; }
.hero-contenu h1 { margin-top: 0; }

/* pastilles reseaux : icone seule */
.reseaux-hero {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
}
.reseaux-hero a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(215, 201, 193, 0.65);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.reseaux-hero a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(126, 44, 72, 0.16);
}
.reseaux-hero .rs-instagram:hover { border-color: #D6249F; }
.reseaux-hero .rs-linkedin:hover { border-color: #0A66C2; }
.reseaux-hero .rs-pinterest:hover { border-color: #E60023; }
.reseaux-hero .rs-tiktok:hover { border-color: #010101; }

/* libelles masques a l'ecran, conserves pour les lecteurs d'ecran */
.rs-nom {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* mots-cles */
.mots-cles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}
.mot-cle {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--pill);
  color: var(--brown);
  background: var(--butter);
  border: 1px solid rgba(215, 201, 193, 0.55);
}
.mot-cle:nth-child(2) { background: var(--peach); color: #8a3a57; }
.mot-cle:nth-child(3) { background: var(--sage-light); color: #3f5c3c; }
.mot-cle:nth-child(4) { background: var(--rose); color: #8a3a57; }
.mot-cle:nth-child(5) { background: var(--mint); color: #2f5f52; }

/* illustration classeur et stylos */
.illustration-hero { display: none; }

/* grand ecran : reseaux a gauche, illustration a droite */
@media (min-width: 1140px) {
  .hero { padding-left: 230px; padding-right: 250px; }
  .reseaux-hero {
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 2;
  }
  .illustration-hero {
    display: block;
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    width: 172px;
    height: auto;
    z-index: 1;
  }
  .hero .etoile.une { top: 54px; right: 50%; }
  .hero .etoile.deux { bottom: 46px; left: 24%; right: auto; }
}

/* pied de page : icones seules */
.site-footer .reseaux a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.site-footer .reseaux a { padding: 0; }

@media (max-width: 1139px) {
  .reseaux-hero { flex-direction: row; justify-content: center; }
  .hero .etoile { display: none; }
}

/* ---------- Agrandissement des images ---------- */
.zoomable { cursor: zoom-in; }

.loupe {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(46, 36, 32, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  cursor: zoom-out;
}
.loupe[hidden] { display: none; }
.loupe img {
  max-width: min(100%, 860px);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.loupe-legende {
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
  max-width: 620px;
}
.loupe-fermer {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--plum);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.loupe-fermer:hover { background: #fff; }

/* ---------- Acceptation avant achat ---------- */
.achat {
  background: var(--card);
  border: 1px solid rgba(215, 201, 193, 0.6);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
  margin-top: 8px;
}
.case {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 13px;
  cursor: pointer;
}
.case input {
  margin: 2px 0 0;
  width: 17px;
  height: 17px;
  accent-color: var(--coral);
  flex-shrink: 0;
  cursor: pointer;
}
.case a { color: var(--coral); text-decoration: underline; }
.btn-achat { margin-top: 6px; }
.btn-achat[aria-disabled="true"] {
  background: var(--sand);
  color: #fff;
  cursor: not-allowed;
}
.btn-achat[aria-disabled="true"]:hover {
  background: var(--sand);
  transform: none;
}
.achat-aide {
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin: 11px 0 0;
}
.achat-aide[hidden] { display: none; }

/* ---------- Ressource offerte ---------- */
.achat-gratuit {
  background: var(--butter);
  border-color: rgba(212, 169, 74, 0.35);
  text-align: center;
}
.achat-gratuit .cadeau {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--brown);
  margin: 0 0 16px;
}
.achat-gratuit .achat-aide {
  max-width: 420px;
  margin: 14px auto 0;
}
.achat-gratuit .achat-aide a { color: var(--coral); text-decoration: underline; }
.card .price.offert { color: #3f5c3c; }

/* ---------- Formulaire de ressource offerte ---------- */
.formulaire-cadeau {
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}
.champ { display: block; margin-bottom: 14px; }
.champ span {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 5px;
}
.champ em { color: var(--coral); font-style: normal; }
.champ input {
  width: 100%;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(215, 201, 193, 0.9);
  background: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.champ input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232, 130, 90, 0.16);
}
.formulaire-cadeau .btn { width: 100%; margin-top: 4px; }
.piege { position: absolute; left: -9999px; }

/* ---------- Repères pédagogiques et présentation éditoriale ---------- */
:root { --line: #e9ded7; --ink-soft: #6e605b; --radius: 18px; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #7e2c48; outline-offset: 5px;
}
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px 20px; background: #fff; z-index: 200; }
.skip-link:focus { top: 12px; }
.site-header .bar { padding-top: 17px; padding-bottom: 17px; }
nav.main-nav { gap: 25px; align-items: center; }
nav.main-nav a { font-size: .85rem; color: var(--ink); padding: 8px 0; }
.logo { font-size: 1.3rem; gap: 10px; }
.btn { background: var(--plum); padding: 13px 25px; border-radius: 10px; line-height: 1.5; }
.btn:hover { background: #66223b; }
.btn.secondary { color: var(--plum); border: 1px solid #dac5cc; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: wait; }
.text-link { color: var(--plum); font-weight: 600; font-size: .87rem; text-decoration: underline; text-underline-offset: 5px; }
.eyebrow { font-family: var(--sans); font-size: .65rem; font-weight: 600; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; color: #855b61; margin: 0 0 12px; }
.home-hero { background: linear-gradient(110deg,#f9f0e9 0%,#fdf8f2 60%,#f4eee5 100%); border-bottom: 1px solid var(--line); }
.hero-editorial { display: grid; grid-template-columns: 1.35fr 1fr; gap: 70px; align-items: center; padding-top: 68px; padding-bottom: 68px; }
.hero-copy h1 { color: var(--plum); font-size: clamp(2.2rem,3.5vw,3.3rem); line-height: 1.17; margin: 18px 0 24px; letter-spacing: -.045em; }
.hero-copy h1 em { font-weight: 400; color: #976975; }
.hero-description { max-width: 490px; font-size: .98rem; color: var(--ink-soft); margin: 0 0 28px; line-height: 1.85; }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.hero-actions .text-link { font-size: .79rem; }
.hero-signature { font-size: .75rem; color: var(--ink-soft); margin: 30px 0 0; }
.hero-signature span { color: var(--plum); padding-right: 8px; }
.hero-note { background: #fffdf9; border: 1px solid #e6d8cc; border-radius: 20px; padding: 30px; box-shadow: 8px 10px 0 #eaded03b; position: relative; }
.hero-note::before { content: ''; position: absolute; top: -13px; left: calc(50% - 40px); width: 80px; height: 25px; background: #e4c8b7b0; transform: rotate(-5deg); }
.hero-note .eyebrow { font-size: .59rem; }
.note-title { font-family: var(--serif); font-size: 1.65rem; line-height: 1.25; color: var(--plum); margin: 12px 0 22px; }
.note-subject { display: flex; align-items: center; gap: 14px; border: 1px solid #eadbde; background: #fbf1f2; padding: 15px 16px; border-radius: 12px; margin-top: 10px; transition: border-color .2s, transform .2s; }
.note-subject:hover { border-color: var(--plum); transform: translateX(3px); }
.note-subject strong { font-size: .9rem; font-weight: 600; color: var(--plum); display: block; }
.note-subject small { display: block; font-size: .68rem; color: var(--ink-soft); margin-top: 2px; }
.note-subject > span:last-child { margin-left: auto; font-size: 1.15rem; color: var(--plum); }
.note-maths { background: #eef3eb; border-color: #dbe4d5; }
.note-maths strong { color: #405d48; }
.note-foot { font-size: .66rem; color: var(--ink-soft); padding-top: 18px; margin: 0; text-align: center; }
.subject-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: #f4e2e7; color: var(--plum); }
.subject-icon svg { width: 24px; height: 24px; }
.note-subject .subject-icon { background: none; width: 28px; }
.note-maths .subject-icon { color: #405d48; }
.confiance { background: #fffdf9; border-bottom: 1px solid var(--line); }
.confiance-liste { color: var(--ink-soft); font-size: .73rem; gap: 36px; padding-top: 18px; padding-bottom: 18px; }
.browse-page { padding-bottom: 70px; }
.catalogue-intro { padding: 52px 0 34px; max-width: 730px; }
.catalogue-intro h1 { color: var(--plum); font-size: clamp(2rem,3.4vw,2.8rem); line-height: 1.2; margin: 0 0 16px; }
.catalogue-intro > p:last-child { color: var(--ink-soft); font-size: .96rem; max-width: 640px; margin-bottom: 0; }
.spotlight-card {
  display: flex; align-items: center; gap: 36px;
  margin: 40px auto 0; padding: 26px 34px;
  background: linear-gradient(115deg, #fff3e3 0%, #ffe8ef 55%, #f3ecff 100%);
  border: 2px solid var(--coral-light);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(232, 130, 90, 0.18);
  color: inherit; transition: transform .18s, box-shadow .18s;
}
.spotlight-card:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(232, 130, 90, 0.26); }
.spotlight-visuel { flex-shrink: 0; width: 150px; height: 150px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.14); background: #fff; }
.spotlight-visuel img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-corps { flex: 1; min-width: 0; }
.spotlight-badge {
  display: inline-block; background: var(--coral); color: #fff; font-weight: 800;
  font-size: .82rem; letter-spacing: .04em; padding: 6px 18px; border-radius: var(--pill);
  margin-bottom: 10px; animation: spotlight-pulse 2.2s ease-in-out infinite;
}
@keyframes spotlight-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.spotlight-corps h2 { font-size: 1.5rem; color: var(--plum); margin: 0 0 6px; }
.spotlight-corps > p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 16px; }
.spotlight-bas { display: flex; align-items: center; gap: 22px; }
.spotlight-prix { font-family: var(--serif); font-size: 1.3rem; color: var(--coral); }
.spotlight-btn { padding: 11px 24px; font-size: .88rem; }
@media (max-width: 680px) {
  .spotlight-card { flex-direction: column; text-align: center; padding: 24px; gap: 18px; }
  .spotlight-bas { flex-direction: column; gap: 12px; }
}
.browse-section { margin-top: 62px; }
.browse-section--first { margin-top: 22px; }
.browse-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.browse-heading .eyebrow { margin-bottom: 8px; }
.browse-heading h2 { margin: 0 0 9px; font-size: 1.8rem; color: var(--plum); line-height: 1.3; }
.browse-heading p:not(.eyebrow) { font-size: .88rem; color: var(--ink-soft); margin: 0; max-width: 670px; }
.browse-heading > .text-link { white-space: nowrap; margin-bottom: 3px; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 12px; }
.level-card { background: #fffdfa; border: 1px solid var(--line); border-radius: 12px; padding: 22px 16px 17px; position: relative; display: flex; flex-direction: column; gap: 6px; transition: background .2s,border-color .2s,transform .2s; }
.level-card:hover { background: #f7e9ec; border-color: #dcb4c1; transform: translateY(-3px); }
.level-card > span:first-child { font-family: var(--serif); font-size: 1.55rem; color: var(--plum); line-height: 1.2; }
.level-card--long > span:first-child { font-family: var(--sans); font-size: .85rem; font-weight: 600; line-height: 1.5; }
.level-card small { font-size: .66rem; color: var(--ink-soft); }
.level-card--adaptation {
  background: linear-gradient(135deg, var(--rose) 0%, var(--butter) 100%);
  border-color: var(--rose-deep);
}
.level-card--adaptation > span:first-child { font-family: var(--sans); font-size: .92rem; font-weight: 800; color: var(--plum); line-height: 1.4; }
.level-card--adaptation:hover { background: linear-gradient(135deg, #eeb7c9 0%, #fbe9c7 100%); border-color: var(--plum); }
.level-card .level-arrow { position: absolute; right: 12px; top: 10px; font-size: .8rem; color: #aa858a; }
.subject-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.subject-panel { background: #fffdfa; border: 1px solid #e5d3d9; border-radius: 18px; padding: 28px; }
.subject-panel--mathematiques { border-color: #d8e0d1; }
.subject-head { display: flex; gap: 14px; align-items: center; }
.subject-head .eyebrow { margin: 0 0 3px; font-size: .59rem; }
.subject-head h3 { font-size: 1.65rem; color: var(--plum); margin: 0; line-height: 1.3; }
.subject-head h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.subject-panel--mathematiques .subject-icon { color: #405d48; background: #e5ecdf; }
.subject-panel--mathematiques h3 { color: #405d48; }
.subject-panel > p { font-size: .85rem; color: var(--ink-soft); margin: 20px 0; line-height: 1.75; }
.subject-panel .subject-preview { font-size: .78rem; color: var(--ink); padding: 16px 0; border-top: 1px solid var(--line); }
.subject-topics { list-style: none; padding: 0; margin: 20px 0 22px; border-top: 1px solid var(--line); }
.subject-topics li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.topic-link { padding: 14px 0; flex: 1; min-width: 0; }
.topic-link span { display: block; font-size: .86rem; font-weight: 500; }
.topic-link small { display: block; font-size: .65rem; color: var(--ink-soft); margin-top: 2px; }
.topic-link:hover span { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; }
.topic-diff { font-size: .65rem; border: 1px solid #e6d7dc; border-radius: 6px; padding: 6px 8px; color: var(--plum); background: #fcf7f8; white-space: nowrap; }
.topic-diff:hover { background: #f0dce3; }
.subject-all { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; color: var(--plum); }
.tools-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; background: #fffdfa; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; }
.tool-card:hover { border-color: #bd8c9b; }
.tool-card .eyebrow { font-size: .54rem; margin-bottom: 14px; }
.tool-card h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.5; color: var(--plum); margin: 0 0 9px; }
.tool-card > p:not(.eyebrow) { font-size: .76rem; color: var(--ink-soft); margin: 0 0 24px; }
.tool-card > span { margin-top: auto; font-size: .7rem; display: flex; justify-content: space-between; color: var(--plum); }
.audience-note { margin-top: 60px; border-radius: 18px; padding: 35px 40px; background: #efe9df; display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px 50px; }
.audience-note h2 { font-size: 1.75rem; line-height: 1.3; color: var(--plum); grid-row: span 2; margin: 0; }
.audience-note p { color: var(--ink-soft); font-size: .84rem; margin: 0; }
.resource-grid { grid-template-columns: repeat(3,minmax(0,1fr)); padding-bottom: 0; gap: 24px; }
.card-produit { border-color: var(--line); box-shadow: none; border-radius: 16px; overflow: hidden; }
.card-produit:hover { box-shadow: 0 10px 28px #67413d10; transform: translateY(-4px); border-color: #d4b6bf; }
.card-produit .card-corps { padding: 23px; gap: 10px; }
.card-produit h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.5; letter-spacing: -.02em; }
.card-produit .tag { background: #f2e9e3; color: #765751; font-size: .57rem; letter-spacing: .07em; padding: 5px 9px; }
.card-produit .card-levels { font-size: .65rem; color: #6b605c; margin-top: 2px; }
.card-produit .card-points { display: none; }
.card-produit .card-corps > p:not(.card-levels) { font-size: .8rem; line-height: 1.65; }
.card-bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.card-bottom .price { color: var(--plum); font-family: var(--sans); font-weight: 600; font-size: 1rem; margin: 0; padding: 0; }
.card-bottom .price.offert { color: #3d624b; }
.card-discover { font-size: .64rem; color: var(--ink-soft); }
.breadcrumbs { padding-top: 28px; font-size: .74rem; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.breadcrumbs li + li::before { content: '/'; color: #b99b96; margin-right: 9px; }
.breadcrumbs a:hover { color: var(--plum); text-decoration: underline; }
.breadcrumbs + .catalogue-intro { padding-top: 30px; }
.domain-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.domain-card { background: #fffdfa; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.domain-card h2 { margin: 0 0 10px; font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--plum); }
.domain-card h2 a { display: flex; gap: 16px; justify-content: space-between; }
.domain-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.domain-card p { color: var(--ink-soft); font-size: .81rem; margin: 0 0 24px; }
.domain-card > div { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.domain-card .text-link { font-size: .73rem; }
.diff-pill { font-size: .7rem; color: var(--plum); background: #f5e9ee; padding: 7px 12px; border-radius: 8px; }
.diff-pill:hover { background: #edd4df; }
.section-label { color: var(--plum); font-size: 1.5rem; margin: 0 0 22px; }
.domain-tabs,.level-switcher { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 26px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.domain-tabs a,.level-switcher a { padding: 10px 17px; font-size: .8rem; border: 1px solid var(--line); border-radius: 9px; background: #fffdfa; }
.domain-tabs a[aria-current],.level-switcher a[aria-current] { background: var(--plum); color: #fff; border-color: var(--plum); }
.domain-tabs a:hover,.level-switcher a:hover { border-color: var(--plum); }
.collection-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.collection-heading h2 { margin: 0; font-size: 1.5rem; color: var(--plum); }
.collection-heading > span { font-size: .75rem; color: var(--ink-soft); white-space: nowrap; }
.collection-heading--small { margin-bottom: 16px; }
.collection-heading--small h3 { margin: 0; font-size: 1.1rem; color: var(--plum); font-family: var(--serif); font-weight: 400; }
.level-total { color: var(--ink-soft); font-size: .85rem; margin: -8px 0 8px; }
.level-matieres { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.level-matieres .level-matiere:not(:last-child) { border-right: 1px solid var(--line); padding-right: 48px; }
.level-matiere { padding-top: 8px; }
.level-matiere-titre { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; color: var(--plum); margin-bottom: 22px; }
.level-domaine { margin-bottom: 36px; }
.level-domaine:last-child { margin-bottom: 0; }
.level-domaine .resource-grid { grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .level-domaine .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .level-matieres { grid-template-columns: 1fr; gap: 32px; }
  .level-matieres .level-matiere:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 28px; }
}
.empty-state { text-align: center; background: #f7efe9; border: 1px solid var(--line); border-radius: 16px; padding: 46px 24px; }
.empty-mark { color: #a57281; font-size: 1.6rem; }
.empty-state h2 { font-size: 1.5rem; color: var(--plum); margin: 10px 0 14px; }
.empty-state p { color: var(--ink-soft); max-width: 510px; margin: 0 auto 24px; font-size: .86rem; }
.site-footer { border-top: 1px solid var(--line); background: #f5eee7; }
.site-footer .legal-nav { row-gap: 13px; }
.product-page { padding-left: 24px; padding-right: 24px; }
@media (max-width: 1000px) {
  .hero-editorial { gap: 36px; grid-template-columns: 1.15fr 1fr; }
  nav.main-nav { gap: 17px; }
  .level-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .subject-panel { padding: 24px; }
}
@media (max-width: 760px) {
  .site-header .bar { gap: 15px; justify-content: center; padding: 14px 20px 10px; }
  nav.main-nav { justify-content: center; gap: 7px 20px; width: 100%; }
  nav.main-nav a { font-size: .76rem; }
  .hero-editorial { grid-template-columns: 1fr; padding-top: 42px; padding-bottom: 46px; gap: 40px; }
  .hero-copy { max-width: 570px; }
  .hero-copy h1 { font-size: 2.6rem; }
  .hero-note { max-width: 480px; width: 100%; }
  .confiance-liste { gap: 12px 20px; font-size: .68rem; flex-wrap: wrap; }
  .subject-grid,.domain-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .browse-heading { align-items: start; flex-direction: column; gap: 14px; }
  .audience-note { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .audience-note h2 { grid-row: auto; }
  .catalogue-intro { padding-top: 34px; }
}
@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }
  nav.main-nav { gap: 5px 15px; }
  nav.main-nav a { font-size: .76rem; }
  .hero-copy h1 { font-size: 2.25rem; }
  .hero-copy h1 br { display: none; }
  .hero-description { font-size: .9rem; }
  .hero-actions { gap: 18px; }
  .hero-note { padding: 24px; }
  .browse-section { margin-top: 42px; }
  .browse-section--first { margin-top: 20px; }
  .browse-heading h2 { font-size: 1.6rem; }
  .browse-heading p:not(.eyebrow) { font-size: .82rem; }
  .level-card { padding: 21px 11px 15px; }
  .level-card small { font-size: .59rem; }
  .level-card:last-child > span:first-child { font-size: .76rem; }
  .subject-panel { padding: 23px 20px; }
  .topic-diff { font-size: .6rem; padding: 6px; }
  .topic-link span { font-size: .8rem; }
  .tools-grid,.resource-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 24px; }
  .card-discover { font-size: .73rem; }
  .collection-heading { flex-wrap: wrap; gap: 6px; }
  .domain-card { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* case facultative du formulaire */
.case-option {
  font-size: 0.84rem;
  color: var(--brown);
  margin: 2px 0 16px;
  align-items: flex-start;
}
.case-option--accent {
  background: var(--butter);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brown);
}


/* Décors graphiques discrets : livre, géométrie et fiches différenciées. */
.hero-editorial { display: block; padding-top: 56px; padding-bottom: 56px; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-copy h1 { font-size: clamp(2.2rem,3.5vw,3.3rem); }
.hero-description { max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.subject-banner { display: block; }
.subject-head .subject-icon { width: 40px; height: 40px; border-radius: 10px; }
.subject-icon svg { width: 24px; height: 24px; }
.heading-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: 14px; vertical-align: -6px; color: var(--plum); background: #f3e8ec; border-radius: 10px; }
.heading-icon svg { width: 27px; height: 27px; }
.topic-diff, .diff-pill { display: inline-flex; align-items: center; gap: 6px; }
.topic-diff svg, .diff-pill svg { flex-shrink: 0; width: 15px; height: 15px; }
.domain-tabs a { display: inline-flex; align-items: center; gap: 8px; }
.domain-tabs a svg { width: 17px; height: 17px; }
.domain-tabs a[aria-current] svg rect { fill: var(--plum); }
@media (max-width: 480px) {
  .hero-editorial { padding-top: 38px; padding-bottom: 40px; }
  .hero-copy h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .heading-icon { width: 34px; height: 34px; margin-right: 10px; vertical-align: -4px; }
  .heading-icon svg { width: 23px; height: 23px; }
  nav.main-nav { gap: 28px; }
  nav.main-nav a { font-size: .82rem; }
  .topic-diff { gap: 4px; }
  .topic-diff svg { width: 12px; height: 12px; }
}


/* Essai : petits décors scolaires aux angles de la bannière. */
.home-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-editorial { position: relative; z-index: 1; }
.banner-decor { position: absolute; pointer-events: none; z-index: 0; opacity: .85; }
.banner-pencil { width: 135px; height: auto; left: clamp(22px,5vw,90px); top: 45px; }
.banner-shapes { width: 135px; height: auto; right: clamp(22px,5vw,90px); bottom: 38px; }
@media (max-width: 1100px) {
  .banner-pencil { width: 90px; left: 12px; top: 16px; opacity: .6; }
  .banner-shapes { width: 90px; right: 12px; bottom: 18px; opacity: .6; }
}
@media (max-width: 600px) {
  .banner-pencil { width: 57px; top: 2px; left: 1px; opacity: .5; }
  .banner-shapes { width: 60px; right: 3px; bottom: 3px; opacity: .5; }
}


/* Identité de l’accueil et palette un peu plus vive. */
:root {
  --cream: #FFF9F2;
  --plum: #8A2B55;
  --rose: #F1B6CF;
  --rose-deep: #DF82AE;
  --sage: #87B18A;
  --sage-light: #CEE1C3;
  --coral: #BB4E30;
  --mint: #C3E0D0;
}
.home-hero { background: linear-gradient(115deg,#FFECDD 0%,#FFF7F1 48%,#FCE8EF 100%); }
.home-hero .hero-copy { max-width: 930px; }
.hero-editorial { padding-top: 42px; padding-bottom: 45px; }
.hero-brand { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 22px; }
.hero-brand-logo { display: block; width: 176px; height: 176px; border-radius: 50%; flex-shrink: 0; border: 3px solid #fff9; box-shadow: 0 8px 26px #a8547214; }
.hero-copy .hero-brand h1 { font-size: clamp(2.6rem,5vw,4.15rem); line-height: 1.1; margin: 0; letter-spacing: -.045em; }
.hero-tagline { font-family: var(--serif); color: #9A4465; font-size: clamp(1.35rem,2.3vw,1.85rem); line-height: 1.45; max-width: 760px; margin: 0 auto 18px; }
.hero-description { font-size: .92rem; max-width: 650px; margin-bottom: 25px; }
.home-hero .btn { background: #B94A2E; }
.home-hero .btn:hover { background: #A43B22; }
.hero-signature { margin-top: 24px; }
.banner-decor { opacity: .95; }
.banner-pencil { top: 28px; }
.level-card:nth-child(3n+1) { background: #FFF1F5; border-color: #EDC4D4; }
.level-card:nth-child(3n+2) { background: #EFF7E9; border-color: #D1E0C5; }
.level-card:nth-child(3n) { background: #FFF5DE; border-color: #EBDCAB; }
.level-card:hover { border-color: var(--plum); }
.subject-panel--francais { background: #FFFAFC; border-color: #E9BBD0; }
.subject-panel--mathematiques { background: #F7FBF3; border-color: #C5D8B8; }
.subject-panel--mathematiques .subject-icon { background: #D4E7C7; color: #44784D; }
.subject-head .subject-icon, .heading-icon { background: #F3CDE0; }
.diff-pill, .topic-diff { background: #F6E0EC; border-color: #E9C2D4; }
@media (max-width: 760px) {
  .hero-brand { gap: 20px; }
  .hero-brand-logo { width: 140px; height: 140px; }
}
@media (max-width: 480px) {
  .hero-editorial { padding-top: 30px; padding-bottom: 36px; }
  .hero-brand { flex-direction: column; gap: 14px; margin-bottom: 17px; }
  .hero-brand-logo { width: 124px; height: 124px; }
  .hero-copy .hero-brand h1 { font-size: clamp(2rem,9.5vw,2.65rem); }
  .hero-tagline { font-size: 1.3rem; }
  .hero-description { font-size: .84rem; }
  .banner-pencil { top: 7px; }
}


/* Liens sociaux : petits logos dans l’en-tête de l’accueil et liens nommés dans Contact. */
.header-left { display: flex; align-items: center; gap: 20px; margin-right: auto; }
.reseaux-header { display: flex; gap: 7px; margin: 0; }
.reseaux-header a { width: 34px; height: 34px; box-shadow: none; background: #fff; }
.reseaux-header a svg { width: 21px; height: 21px; }
.reseaux-contact { justify-content: flex-start; flex-wrap: wrap; gap: 14px; margin: 20px 0 30px; }
.reseaux-contact a { width: auto; height: auto; min-height: 46px; border-radius: 10px; padding: 10px 16px; gap: 10px; text-decoration: none; }
.reseaux-contact .rs-nom { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; font-size: .9rem; font-weight: 500; }


/* Notions en bulles douces dans les blocs de matières. */
.subject-panel--francais { background: #FCEAF2; border-color: #EAB5CD; }
.subject-panel--mathematiques { background: #EBF3E4; border-color: #BDD2AB; }
.topic-bubbles {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 15px 12px; margin: 25px 0 28px; padding: 0; border: 0;
}
.topic-bubbles li {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 5px; border: 0; min-width: 0;
}
.topic-bubbles .topic-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; min-height: 84px; padding: 15px 12px; text-align: center;
  border-radius: 28px; background: #FFFAFD; border: 1px solid #EAC2D5;
  box-shadow: 0 3px 0 #D8A9BF20; color: #7D3052;
  transition: background .15s, border-color .15s, transform .15s;
}
.topic-bubbles .topic-link span { font-size: .85rem; font-weight: 600; line-height: 1.4; }
.topic-bubbles .topic-link small { font-size: .61rem; margin-top: 5px; font-weight: 400; }
.topic-bubbles .topic-link:hover { background: #F6D8E7; border-color: #BF7698; transform: translateY(-2px); }
.topic-bubbles .topic-link:hover span { text-decoration: none; }
.topic-bubbles .topic-diff {
  align-self: center; justify-content: center; border: 0; background: transparent;
  font-size: .62rem; padding: 7px 5px; color: #89526C; border-radius: 10px;
}
.topic-bubbles .topic-diff:hover { background: #EED0DF; color: var(--plum); }
.subject-panel--mathematiques .topic-link { background: #F9FDF5; border-color: #CADBB8; color: #426648; box-shadow: 0 3px 0 #9CB48D20; }
.subject-panel--mathematiques .topic-link:hover { background: #DCEACF; border-color: #88A773; }
.subject-panel--mathematiques .topic-link:hover span { color: #345C3C; }
.subject-panel--mathematiques .topic-diff { color: #506D4B; }
.subject-panel--mathematiques .topic-diff:hover { background: #D9E7CE; }
.domain-card { border-radius: 28px; text-align: center; background: #FFFCF8; }
.domain-card h2 a { justify-content: center; }
.domain-card > div { justify-content: center; flex-wrap: wrap; gap: 12px 22px; }
@media (max-width: 480px) {
  .topic-bubbles { gap: 12px 9px; }
  .topic-bubbles .topic-link { min-height: 86px; padding: 14px 10px; border-radius: 25px; }
  .topic-bubbles .topic-link span { font-size: .79rem; }
  .topic-bubbles .topic-diff { font-size: .59rem; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .topic-bubbles .topic-link { transition: none; }
}

/* ---------- Popup (nouveaute / cadeau) ---------- */
.popup-nouveaute {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(46, 36, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.popup-nouveaute[hidden] { display: none; }
.popup-carte {
  position: relative;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  max-width: 420px;
  width: 100%;
  min-width: 0;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: popup-apparition 0.35s ease;
}
@keyframes popup-apparition {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.popup-carte img { width: 100%; display: block; }
.popup-corps { padding: 20px 24px 24px; text-align: center; }
.popup-badge {
  display: inline-block;
  background: var(--rose);
  color: var(--plum);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--pill);
  margin-bottom: 10px;
}
.popup-corps h2 { font-family: var(--serif); color: var(--plum); font-size: 1.25rem; margin: 0 0 6px; }
.popup-corps p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 16px; }
.popup-actions { display: flex; align-items: center; justify-content: center; gap: 14px; }
.popup-prix { font-family: var(--serif); color: var(--coral); font-weight: 700; font-size: 1.1rem; }
.popup-fermer {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--plum);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.popup-fermer:hover { background: #fff; }

/* ---------- Popup cadeau (format vertical, epure, flashy) ---------- */
.popup-carte-cadeau { max-width: 380px; }
.popup-cadeau-visuel { flex-shrink: 0; }
.popup-cadeau-visuel img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.popup-corps-cadeau { padding: 24px 26px 30px; text-align: center; }
.popup-accroche {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.popup-flashy {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}
.popup-souslegende {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--coral);
  margin: 0 0 18px;
}
.popup-flashy-mot {
  display: inline-block;
  position: relative;
  font-size: 1.7em;
  font-weight: 900;
  color: #2b2440;
  transform: rotate(-3deg);
  padding: 0 6px;
  z-index: 1;
}
.popup-flashy-mot::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4px;
  right: -4px;
  bottom: 6%;
  top: 28%;
  background: #f4ff2b;
  transform: rotate(1.5deg);
  border-radius: 3px 10px 4px 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.popup-cta-grand {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.15rem;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(232, 130, 90, 0.35);
}

/* ---------- Barre de recherche ---------- */
.recherche-bloc { position: relative; }
.recherche-bouton {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(215, 201, 193, 0.6);
  background: #fff; color: var(--plum); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s;
}
.recherche-bouton:hover { background: var(--peach); }
.recherche-panneau {
  position: absolute; top: 48px; right: 0; width: min(360px, 90vw);
  background: #fff; border: 1px solid rgba(215, 201, 193, 0.6); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; z-index: 50;
}
.recherche-panneau[hidden] { display: none; }
.recherche-panneau input {
  width: 100%; padding: 10px 14px; border-radius: var(--pill); border: 1px solid rgba(215, 201, 193, 0.7);
  font-size: 0.92rem; font-family: var(--sans);
}
.recherche-resultats { margin-top: 10px; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.recherche-item {
  display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: var(--radius-sm);
  transition: background 0.1s;
}
.recherche-item:hover { background: var(--peach); }
.recherche-titre { font-family: var(--serif); color: var(--plum); font-size: 0.95rem; }
.recherche-sous { color: var(--ink-soft); font-size: 0.78rem; }
.recherche-prix { color: var(--coral); font-weight: 700; font-size: 0.78rem; margin-top: 2px; }
.recherche-vide { color: var(--ink-soft); font-size: 0.85rem; padding: 6px 10px; }

/* ---------- Badge prix de lancement ---------- */
.badge-prix {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}
.product-price .badge-prix { font-size: 0.72rem; padding: 5px 12px; }

/* ---------- Prix barre (prix de lancement) ---------- */
.prix-barre {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: 0.6em;
  font-weight: 600;
  opacity: 0.8;
}
