/**
 * Univers Papeterie (scolaire) v3 — matches univers-papetrie/index.html mockup.
 */

body.cf-univers-papetrie-v3 {
  background-color: #fcfcfc;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 29px,
    rgba(55, 66, 150, 0.1) 29px,
    rgba(55, 66, 150, 0.1) 30px
  );
}

/* Isolate from theme .site-main / .container (mockup has no max-width wrappers). */
body.cf-univers-papetrie-v3 main.cf-pap-v3-main {
  padding: 0;
  margin: 60px 0 0;
  max-width: none;
  width: 100%;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-align-left {
  text-align: left;
}

/* HERO */
body.cf-univers-papetrie-v3 .cf-pap-v3-hero.hero {
  background-color: #1a1a3a;
  background-size: cover;
  background-position: center;
  padding: 100px 10%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 800px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-hero.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 20px 20px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

body.cf-univers-papetrie-v3 .hero-overlay-content {
  background: white;
  padding: 60px;
  max-width: 600px;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  width: 100%;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-hero--rich .hero-overlay-content {
  max-width: 640px;
  padding: 48px 52px;
  overflow: hidden;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-hero--rich {
  min-height: 920px;
  align-items: center;
}

body.cf-univers-papetrie-v3 .hero-overlay-content h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(32px, 3vw, 46px);
  color: var(--cf-v3-primary-blue, #374296);
  margin: 0 0 25px;
  line-height: 1.08;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-hero--rich .hero-overlay-content h1 {
  font-size: clamp(32px, 3vw, 46px) !important;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: 0 !important;
  text-transform: none !important;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
}

body.page-feuilles-simples-et-copies-doubles.cf-univers-papetrie-v3 .cf-pap-v3-hero--rich {
  min-height: 800px;
}

body.page-feuilles-simples-et-copies-doubles.cf-univers-papetrie-v3 .cf-pap-v3-picto-tag {
  white-space: normal;
  max-width: 100%;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-hero .hero-overlay-content p,
body.cf-univers-papetrie-v3 .cf-pap-v3-hero .hero-overlay-body {
  font-size: 17px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

body.cf-univers-papetrie-v3 .hero-overlay-body p {
  margin: 0 0 1em;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

body.cf-univers-papetrie-v3 .hero-overlay-body p:last-child {
  margin-bottom: 0;
}

body.cf-univers-papetrie-v3 .hero-overlay-body .cf-pap-v3-hero-quote,
body.cf-univers-papetrie-v3 .hero-overlay-body blockquote {
  margin: 1.25em 0 0;
  padding: 0;
  border: 0;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: #374296;
}

/* CHOISIR */
body.cf-univers-papetrie-v3 .choisir-section {
  padding: 20px 40px 60px;
  text-align: center;
}

body.cf-univers-papetrie-v3 .section-title {
  font-family: 'Caveat', cursive;
  font-size: 80px;
  color: var(--cf-v3-primary-blue, #374296);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1;
}

body.cf-univers-papetrie-v3 .section-desc {
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  color: #333;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 500;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-choisir-desc {
  margin: 0 0 100px;
  text-align: left;
  max-width: 100%;
}

/* Multi-paragraph intro (DYS): keep paragraph rhythm inside the same block. */
body.cf-univers-papetrie-v3 .cf-pap-v3-choisir-desc--rich p {
  margin: 0 0 18px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-choisir-desc--rich p:last-child {
  margin-bottom: 0;
}

/* Text-only variant (Carnets): no option cards, so drop the grid spacing. */
body.cf-univers-papetrie-v3 .cf-pap-v3-choisir--text-only {
  padding-bottom: 20px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-choisir--text-only .cf-pap-v3-choisir-desc {
  margin-bottom: 0;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-section-desc {
  margin: 0 0 40px;
  text-align: left;
  max-width: 100%;
}

body.cf-univers-papetrie-v3 .reference-section .section-desc.cf-pap-v3-ref-desc {
  text-align: left;
  margin: 0 0 40px 0;
  max-width: 100%;
}

body.cf-univers-papetrie-v3 .choisir-options {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 100px;
  margin-bottom: 50px;
}

body.cf-univers-papetrie-v3 .option-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: center;
}

body.cf-univers-papetrie-v3 .option-item:hover {
  transform: scale(1.05);
}

body.cf-univers-papetrie-v3 .option-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  color: #222;
}

body.cf-univers-papetrie-v3 .icon-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  position: relative;
  color: var(--cf-v3-primary-blue, #374296);
}

body.cf-univers-papetrie-v3 .icon-placeholder.bordered {
  border: 1px solid #ccc;
}

body.cf-univers-papetrie-v3 .option-desc {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #555;
  margin-top: 15px;
  max-width: 250px;
  line-height: 1.5;
  text-align: center;
}

body.cf-univers-papetrie-v3 .btn-small-blue {
  background-color: transparent;
  color: var(--cf-v3-primary-blue, #374296);
  border: 1px solid var(--cf-v3-primary-blue, #374296);
  border-radius: 20px;
  text-decoration: none;
  padding: 8px 20px;
  margin-top: 15px;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: none;
}

body.cf-univers-papetrie-v3 .option-item:hover .btn-small-blue {
  background-color: var(--cf-v3-primary-blue, #374296);
  color: white;
}

/* COLLECTIONS / GAMMES */
body.cf-univers-papetrie-v3 .collections-section {
  padding: 0 40px 60px;
}

/* Hero → Découvrir nos gammes (no Comment choisir in between) */
body.cf-univers-papetrie-v3.cf-v3-direct-gammes .collections-section {
  padding-top: 60px;
}

body.cf-univers-papetrie-v3 .content-blocks {
  display: grid;
  grid-auto-rows: auto;
}

body.cf-univers-papetrie-v3 .block-row {
  display: flex;
  height: 500px;
  min-height: 350px;
  background-color: var(--cf-v3-bg-gray, #e6e6e6);
  overflow: hidden;
}

body.cf-univers-papetrie-v3 .block-image {
  flex: 1.5;
  background: var(--cf-v3-primary-blue, #374296);
  position: relative;
  min-height: 0;
  overflow: hidden;
}

body.cf-univers-papetrie-v3 .block-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.cf-univers-papetrie-v3 .block-text {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow-y: auto;
}

body.cf-univers-papetrie-v3 .block-text h2 {
  font-family: 'Caveat', cursive;
  font-size: 56px;
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--cf-v3-primary-blue, #374296);
}

body.cf-univers-papetrie-v3 .block-desc {
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  font-weight: 600;
  color: #333;
}

/* Gamme rows grow with their copy: every line and every picto stays visible. */
@media (min-width: 1025px) {
  body.cf-univers-papetrie-v3 .block-row {
    height: auto;
    min-height: 500px;
  }
}

body.cf-univers-papetrie-v3 .block-text {
  overflow: visible;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-pictos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  flex-shrink: 0;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-picto-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1.5px solid var(--cf-v3-primary-blue, #374296);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--cf-v3-primary-blue, #374296);
  white-space: nowrap;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-picto-tag .material-symbols-outlined {
  font-size: 16px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-picto-tag--green {
  border-color: #3d9a5e;
  color: #3d9a5e;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-picto-tag--pink {
  border-color: #c24c86;
  color: #c24c86;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-picto-tag--dark {
  border-color: var(--cf-v3-dark-blue, #1f1462);
  color: var(--cf-v3-dark-blue, #1f1462);
  background: white;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-picto-tag--warm {
  border-color: #c07d3a;
  color: #c07d3a;
}

/* REFERENCE — title matches Loisirs créatifs / Emballage / collections */
body.cf-univers-papetrie-v3 .reference-section {
  padding: 40px;
  text-align: left;
}

body.cf-univers-papetrie-v3 .reference-section .cf-pap-v3-align-left {
  text-align: left;
}

body.cf-univers-papetrie-v3 .reference-section .section-title,
body.cf-univers-papetrie-v3 .cf-pap-v3-ref-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 40px;
  color: #1f1462;
  text-shadow: none;
  text-align: left;
}

body.cf-univers-papetrie-v3 .reference-section .text-center {
  text-align: left;
}

body.cf-univers-papetrie-v3 .reference-grid {
  display: block;
  width: 100%;
  margin-top: 30px;
}

body.cf-univers-papetrie-v3 .ref-col {
  width: 100%;
  max-width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.cf-univers-papetrie-v3 .ref-col h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
  color: #222;
  text-align: left;
}

body.cf-univers-papetrie-v3 .catalog-mockup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  display: flex;
  overflow: hidden;
  min-height: min(88vh, 920px);
  height: min(88vh, 920px);
}

body.cf-univers-papetrie-v3 .catalog-mockup iframe {
  border: none;
  width: 100%;
  height: 100%;
  min-height: min(88vh, 920px);
  flex: 1;
}

/* Map removed from univers reference section — catalog is full width. */
body.cf-univers-papetrie-v3 .map-mockup {
  display: none !important;
}

/* GRID SECTIONS */
body.cf-univers-papetrie-v3 .grid-section {
  padding: 20px 40px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-nouveautes {
  padding-top: 20px;
  padding-bottom: 60px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-discover {
  padding-top: 40px;
  padding-bottom: 60px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-blog {
  margin-bottom: 100px;
}

body.cf-univers-papetrie-v3 .section-title-left {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #1f1462;
  text-transform: uppercase;
  margin-bottom: 20px;
}

body.cf-univers-papetrie-v3 .lined-bg {
  background-image: repeating-linear-gradient(
    transparent,
    transparent 29px,
    #dbe4ef 29px,
    #dbe4ef 30px
  );
}

body.cf-univers-papetrie-v3 .three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

body.cf-univers-papetrie-v3 .blog-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  height: 100%;
}

body.cf-univers-papetrie-v3 .blog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 25px;
}

body.cf-univers-papetrie-v3 .lined-bg .blog-card img {
  object-fit: cover;
  background-color: #f0f2f8;
}

body.cf-univers-papetrie-v3 .blog-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--cf-v3-dark-blue, #1f1462);
  text-transform: uppercase;
  margin-bottom: 15px;
  line-height: 1.3;
}

body.cf-univers-papetrie-v3 .blog-date {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: #777;
  margin-bottom: 15px;
}

body.cf-univers-papetrie-v3 .blog-desc {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

body.cf-univers-papetrie-v3 .btn-blue {
  background-color: var(--cf-v3-primary-blue, #374296);
  color: white;
  text-decoration: none;
  padding: 16px 36px;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  margin-top: auto;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.cf-univers-papetrie-v3 .btn-blue:hover {
  background-color: var(--cf-v3-dark-blue, #1f1462);
  color: white;
}

/* MODALS */
body.cf-univers-papetrie-v3 .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.cf-univers-papetrie-v3 .modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.cf-univers-papetrie-v3 .modal-content {
  background: white;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  border-radius: 8px;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

body.cf-univers-papetrie-v3 .modal-content::-webkit-scrollbar {
  display: none;
}

body.cf-univers-papetrie-v3 .modal-overlay.active .modal-content {
  transform: translateY(0);
}

body.cf-univers-papetrie-v3 .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #333;
  line-height: 1;
  padding: 0;
}

body.cf-univers-papetrie-v3 .modal-title {
  font-family: 'Montserrat', sans-serif;
  color: var(--cf-v3-primary-pink, #c24c86);
  font-size: 32px;
  text-align: center;
  margin: 0 0 30px;
  text-transform: uppercase;
}

body.cf-univers-papetrie-v3 .modal-subtitle {
  font-size: 16px;
  color: #666;
  display: block;
  text-transform: none;
  font-style: italic;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
}

body.cf-univers-papetrie-v3 .format-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

body.cf-univers-papetrie-v3 .format-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

body.cf-univers-papetrie-v3 .format-icon {
  background-color: var(--cf-v3-primary-pink, #c24c86);
  color: white;
  width: 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}

body.cf-univers-papetrie-v3 .format-icon::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  background-image: radial-gradient(circle, white 2px, transparent 2px);
  background-size: 10px 10px;
}

body.cf-univers-papetrie-v3 .format-icon.blue {
  background-color: var(--cf-v3-primary-blue, #374296);
}

body.cf-univers-papetrie-v3 .format-icon.darkblue {
  background-color: var(--cf-v3-dark-blue, #1f1462);
}

body.cf-univers-papetrie-v3 .format-text h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--cf-v3-primary-blue, #374296);
  margin: 0;
}

body.cf-univers-papetrie-v3 .format-text .english {
  font-size: 14px;
  color: #666;
  font-style: italic;
  font-weight: 400;
}

body.cf-univers-papetrie-v3 .format-text .dim {
  font-weight: 600;
  margin-top: 5px;
}

body.cf-univers-papetrie-v3 .format-text .benefit {
  color: var(--cf-v3-primary-blue, #374296);
  font-weight: 600;
}

body.cf-univers-papetrie-v3 .format-text .benefit .english {
  color: #666;
  font-weight: 400;
}

body.cf-univers-papetrie-v3 .reglure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: center;
  margin-top: 20px;
}

body.cf-univers-papetrie-v3 .reglure-item .circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px dashed var(--cf-v3-primary-blue, #374296);
  margin: 0 auto 15px;
  position: relative;
  overflow: hidden;
}

body.cf-univers-papetrie-v3 .circle.seyes {
  background: repeating-linear-gradient(
    transparent,
    transparent 19px,
    var(--cf-v3-primary-blue, #374296) 19px,
    var(--cf-v3-primary-blue, #374296) 20px
  );
}

body.cf-univers-papetrie-v3 .circle.seyes::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  bottom: 0;
  width: 1px;
  background: var(--cf-v3-brand-red, #a72338);
}

body.cf-univers-papetrie-v3 .circle.squared {
  background:
    repeating-linear-gradient(
      transparent,
      transparent 19px,
      var(--cf-v3-primary-blue, #374296) 19px,
      var(--cf-v3-primary-blue, #374296) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      var(--cf-v3-primary-blue, #374296) 19px,
      var(--cf-v3-primary-blue, #374296) 20px
    );
}

body.cf-univers-papetrie-v3 .circle.lined {
  background: repeating-linear-gradient(
    transparent,
    transparent 29px,
    var(--cf-v3-primary-blue, #374296) 29px,
    var(--cf-v3-primary-blue, #374296) 30px
  );
}

body.cf-univers-papetrie-v3 .circle.blank {
  background: #fff;
}

body.cf-univers-papetrie-v3 .reglure-item h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--cf-v3-primary-blue, #374296);
  text-transform: uppercase;
  margin: 0;
}

body.cf-univers-papetrie-v3 .reglure-item .english {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

body.cf-univers-papetrie-v3 .reliure-item {
  display: flex;
  align-items: center;
  border: 2px solid var(--cf-v3-primary-blue, #374296);
  border-radius: 20px;
  margin-bottom: 15px;
  padding: 15px 30px;
  gap: 20px;
}

body.cf-univers-papetrie-v3 .reliure-color-box {
  width: 100px;
  height: 60px;
  background-color: var(--cf-v3-primary-blue, #374296);
  border-radius: 4px;
  flex-shrink: 0;
}

body.cf-univers-papetrie-v3 .reliure-text {
  text-align: left;
}

body.cf-univers-papetrie-v3 .reliure-text h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--cf-v3-primary-blue, #374296);
  font-size: 18px;
  text-transform: uppercase;
  margin: 0;
}

body.cf-univers-papetrie-v3 .reliure-text .english {
  font-size: 14px;
  color: #666;
  font-style: italic;
  font-weight: 400;
}

body.cf-univers-papetrie-v3 .reliure-text .benefit {
  color: var(--cf-v3-primary-pink, #c24c86);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-top: 5px;
  text-transform: uppercase;
}

body.cf-univers-papetrie-v3 .reliure-text .benefit .english {
  text-transform: none;
  font-weight: 400;
  color: #666;
  font-style: italic;
}

/* Cahiers — 4 Comment choisir options (incl. pagination). */
body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-choisir--cahiers .choisir-options {
  flex-wrap: wrap;
  gap: 48px 40px;
  justify-content: center;
}

body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-choisir--cahiers .option-item {
  width: 240px;
}

/* Cahiers — Par Pagination popup. */
body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-pagination-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 10px 10px 20px;
}

/* Cahiers — Comment choisir guides (papier / réglures) + reliure photos. */
body.page-cahiers.cf-univers-papetrie-v3 .modal-content--cahiers-papier,
body.page-cahiers.cf-univers-papetrie-v3 .modal-content--cahiers-reglure {
  max-width: min(720px, 94vw);
  padding: 28px 24px 24px;
}

body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-cahiers-guide {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-cahiers-guide-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-color-box--photo {
  width: 92px;
  height: 92px;
  padding: 0;
  background: #fff;
  border: 1.5px solid var(--cf-v3-primary-blue, #374296);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-color-box--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-item {
  align-items: center;
  padding: 12px 20px;
  gap: 18px;
}

/* Fine-tune framing per binding so the feature sits in the thumb. */
body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-item[data-reliure="1"] img { object-position: 15% 40%; }
body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-item[data-reliure="2"] img { object-position: 30% 45%; }
body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-item[data-reliure="3"] img { object-position: 20% 45%; }
body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-item[data-reliure="4"] img { object-position: 25% 40%; }
body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-item[data-reliure="5"] img { object-position: 35% 35%; }
body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-item[data-reliure="6"] img { object-position: 25% 35%; }
body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-item[data-reliure="7"] img { object-position: 35% 50%; }

@media (max-width: 640px) {
  body.page-cahiers.cf-univers-papetrie-v3 .modal-content--cahiers-papier,
  body.page-cahiers.cf-univers-papetrie-v3 .modal-content--cahiers-reglure {
    max-width: 96vw;
    padding: 22px 14px 16px;
  }

  body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-color-box--photo {
    width: 72px;
    height: 72px;
  }

  body.cf-univers-papetrie-v3 .modal-content--reliure-photos .reliure-item {
    padding: 10px 12px;
    gap: 12px;
  }
}

body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-pagination-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-pagination-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--cf-v3-primary-pink, #c24c86);
  line-height: 1;
}

body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-pagination-book {
  position: relative;
  width: 88px;
  height: 110px;
  background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
  border: 2px solid var(--cf-v3-primary-blue, #374296);
  border-radius: 4px 10px 10px 4px;
  box-shadow: inset -10px 0 0 rgba(55, 66, 150, 0.12);
}

body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-pagination-book::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 10px;
  bottom: 10px;
  width: 14px;
  background:
    radial-gradient(circle at 50% 12%, var(--cf-v3-primary-pink, #c24c86) 3px, transparent 4px),
    radial-gradient(circle at 50% 28%, var(--cf-v3-primary-pink, #c24c86) 3px, transparent 4px),
    radial-gradient(circle at 50% 44%, var(--cf-v3-primary-pink, #c24c86) 3px, transparent 4px),
    radial-gradient(circle at 50% 60%, var(--cf-v3-primary-pink, #c24c86) 3px, transparent 4px),
    radial-gradient(circle at 50% 76%, var(--cf-v3-primary-pink, #c24c86) 3px, transparent 4px),
    radial-gradient(circle at 50% 92%, var(--cf-v3-primary-pink, #c24c86) 3px, transparent 4px);
}

body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-pagination-text {
  margin: 0;
  max-width: 420px;
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

body.page-cahiers.cf-univers-papetrie-v3 .cf-pap-v3-pagination-text-en {
  margin: 0;
  max-width: 420px;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #888;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  body.cf-univers-papetrie-v3 .cf-pap-v3-hero.hero {
    padding: 60px 5%;
    min-height: auto;
    justify-content: center;
  }

  body.cf-univers-papetrie-v3 .hero-overlay-content {
    padding: 40px;
    max-width: 100%;
  }

  body.cf-univers-papetrie-v3 .section-title {
    font-size: 56px;
  }

  body.cf-univers-papetrie-v3 .reference-section .section-title,
  body.cf-univers-papetrie-v3 .cf-pap-v3-ref-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #1f1462;
    text-align: left;
  }

  body.cf-univers-papetrie-v3 .hero-overlay-content h1 {
    font-size: 30px;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-hero--rich .hero-overlay-content h1 {
    font-size: 30px !important;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-hero--rich .hero-overlay-content {
    padding: 32px;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-hero .hero-overlay-content p,
  body.cf-univers-papetrie-v3 .cf-pap-v3-hero .hero-overlay-body {
    font-size: 16px;
  }

  body.cf-univers-papetrie-v3 .choisir-options {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  body.cf-univers-papetrie-v3 .option-item {
    width: 100%;
    max-width: 360px;
  }

  body.cf-univers-papetrie-v3 .three-col-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body.cf-univers-papetrie-v3 .block-row {
    flex-direction: column;
    min-height: 0;
    height: auto;
  }

  body.cf-univers-papetrie-v3 .block-image {
    min-height: 260px;
  }

  body.cf-univers-papetrie-v3 .reference-grid {
    display: block;
    width: 100%;
  }

  body.cf-univers-papetrie-v3 .catalog-mockup {
    min-height: min(72vh, 720px);
    height: min(72vh, 720px);
  }

  body.cf-univers-papetrie-v3 .catalog-mockup iframe {
    min-height: min(72vh, 720px);
  }

  body.cf-univers-papetrie-v3 .block-text {
    padding: 32px 28px;
  }

  body.cf-univers-papetrie-v3 .btn-small-blue,
  body.cf-univers-papetrie-v3 .btn-blue {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  body.cf-univers-papetrie-v3 .reglure-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.cf-univers-papetrie-v3 main.cf-pap-v3-main {
    margin-top: 0;
  }

  body.cf-univers-papetrie-v3 .choisir-section,
  body.cf-univers-papetrie-v3 .collections-section,
  body.cf-univers-papetrie-v3 .grid-section,
  body.cf-univers-papetrie-v3 .reference-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.cf-univers-papetrie-v3 .reference-section .section-title,
  body.cf-univers-papetrie-v3 .cf-pap-v3-ref-title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  body.cf-univers-papetrie-v3 .block-text {
    padding: 30px 20px;
  }

  body.cf-univers-papetrie-v3 .block-text h2 {
    font-size: 40px;
  }

  body.cf-univers-papetrie-v3 .reliure-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }

  body.cf-univers-papetrie-v3 .btn-small-blue,
  body.cf-univers-papetrie-v3 .btn-blue {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* ── Scolaire: collections-section (Découvrir nos gammes) ───── */

@media (max-width: 1024px) {
  body.cf-univers-papetrie-v3 .collections-section {
    padding: 0 20px 48px;
  }

  body.cf-univers-papetrie-v3.cf-v3-direct-gammes .collections-section {
    padding-top: 48px;
  }

  body.cf-univers-papetrie-v3 .collections-section .content-blocks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-auto-rows: auto;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    height: auto;
    overflow: visible;
    gap: 0;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-image {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    order: 1;
    position: relative;
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-text {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    order: 2;
    padding: 28px 24px;
    box-sizing: border-box;
  }

  /* Text-first / flipped rows: image stays on top when stacked */
  body.cf-univers-papetrie-v3 .collections-section .block-row--text-first .block-image,
  body.cf-univers-papetrie-v3 .collections-section .block-row.is-flipped .block-image {
    order: 1;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-row--text-first .block-text,
  body.cf-univers-papetrie-v3 .collections-section .block-row.is-flipped .block-text {
    order: 2;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-text h2 {
    font-size: clamp(1.75rem, 5vw + 0.5rem, 2.75rem);
    line-height: 1.1;
    margin-bottom: 16px;
    width: 100%;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-desc {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    width: 100%;
    margin: 0;
  }

  body.cf-univers-papetrie-v3 .collections-section .cf-pap-v3-pictos-row {
    width: 100%;
  }

  body.cf-univers-papetrie-v3 .collections-section .cf-pap-v3-picto-tag {
    white-space: normal;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-text .btn-blue,
  body.cf-univers-papetrie-v3 .collections-section .block-text .btn-block,
  body.cf-univers-papetrie-v3 .collections-section .block-text a.btn-blue {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    margin-top: 20px;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body.cf-univers-papetrie-v3 .collections-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.cf-univers-papetrie-v3 .collections-section .content-blocks {
    gap: 16px;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-image {
    aspect-ratio: 4 / 3;
    max-height: 360px;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-text {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  body.cf-univers-papetrie-v3 .collections-section .block-text {
    padding: 20px 16px;
  }

  body.cf-univers-papetrie-v3 .collections-section .block-text h2 {
    font-size: clamp(1.5rem, 6vw + 0.5rem, 2rem);
  }
}

/* ── G.Lalo: Types de papiers ─────────────────────────────── */
body.cf-univers-papetrie-v3 .cf-pap-v3-paper-types {
  padding: 20px 0 70px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-types .section-title {
  text-align: left;
  margin: 0 0 40px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card {
  --cf-paper-card-bg: #4A2C7A;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, 0.16), transparent 52%),
    linear-gradient(160deg, color-mix(in srgb, var(--cf-paper-card-bg) 88%, #fff) 0%, var(--cf-paper-card-bg) 48%, color-mix(in srgb, var(--cf-paper-card-bg) 82%, #000) 100%);
  background-color: var(--cf-paper-card-bg);
  color: #fff;
  padding: 48px 40px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 0;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card--visual {
  padding: 0;
  min-height: 0;
  background: #f4f1ec;
  box-shadow:
    inset 0 0 0 1px rgba(40, 30, 20, 0.08),
    0 8px 22px rgba(30, 22, 40, 0.08);
  align-items: stretch;
  justify-content: flex-start;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card--visual::before,
body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card--visual::after {
  display: none;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-visual {
  margin: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 807 / 1024;
  object-fit: cover;
  transition: transform 0.55s ease;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card--visual:hover .cf-pap-v3-paper-type-visual img {
  transform: scale(1.03);
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.035) 2px,
      rgba(255, 255, 255, 0.035) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.04) 3px,
      rgba(0, 0, 0, 0.04) 4px
    );
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card::after {
  content: '';
  position: absolute;
  inset: 14px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card h3,
body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card p {
  position: relative;
  z-index: 1;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card h3 {
  margin: 0 0 16px;
  font-family: 'Libre Baskerville', 'Times New Roman', Georgia, serif;
  font-size: clamp(1.2rem, 1.05rem + 0.75vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  max-width: 18ch;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card h3::after {
  content: '';
  display: block;
  width: 42px;
  height: 1px;
  margin: 14px auto 0;
  background: rgba(255, 255, 255, 0.55);
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card p {
  margin: 0;
  font-family: 'Libre Baskerville', 'Times New Roman', Georgia, serif;
  font-size: clamp(0.94rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
  max-width: 40ch;
  font-weight: 400;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 14px 28px rgba(20, 18, 40, 0.18);
}

body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card--visual:hover {
  box-shadow:
    inset 0 0 0 1px rgba(40, 30, 20, 0.1),
    0 16px 32px rgba(30, 22, 40, 0.16);
}

@media (max-width: 1024px) {
  body.cf-univers-papetrie-v3 .cf-pap-v3-paper-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.cf-univers-papetrie-v3 .cf-pap-v3-paper-types-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card {
    min-height: 200px;
    padding: 36px 26px;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card--visual {
    padding: 0;
    min-height: 0;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card:hover {
    transform: none;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-paper-type-card--visual:hover .cf-pap-v3-paper-type-visual img {
    transform: none;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-paper-types .section-title {
    font-size: clamp(2.75rem, 10vw, 4.5rem);
  }
}

/* Déficients et Dys — « Choisir sa réglure » popup (legacy) */
body.cf-univers-papetrie-v3 .modal-content--reglures-dys {
  max-width: min(920px, 94vw);
  padding: 36px 34px 28px;
  text-align: left;
}

body.cf-univers-papetrie-v3 .modal-title--reglures-dys {
  color: #e2187a;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

body.cf-univers-papetrie-v3 .modal-title--reglures-dys .modal-subtitle {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 0.95rem;
  font-weight: 500;
}

/* DYS Comment choisir — 2 columns: réglure DYS / déficient visuel */
body.cf-univers-papetrie-v3 .cf-pap-v3-choisir--dys .cf-pap-v3-dys-reglures-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
  width: 100%;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-reglure-card {
  background: #fff;
  border: 1px solid #e8eaf2;
  border-radius: 4px;
  padding: 22px 20px 20px;
  text-align: left;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-reglure-card__title {
  margin: 0 0 4px;
  color: #e2187a;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-reglure-card__sub {
  margin: 0 0 14px;
  color: #777;
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 500;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: center;
  margin-top: 6px;
}

/* DV (déficient visuel): official magnifying-glass + high-contrast ruling image */
body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes-sample,
body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes-sample--dv {
  position: relative;
  min-height: 0;
  margin: 0;
  border: 1px solid #e5e7ef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

/*
 * DYS: official CIEL / HERBE / TERRE / FEU diagram image
 * (Ligne du ciel, herbe, terre, feu + Chemin de l'amitié).
 */
body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes-sample--dys {
  position: relative;
  min-height: 0;
  margin: 0;
  border: 1px solid #e5e7ef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes-sample--img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes-sample--img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes-specs {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes-specs li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid #e5e7ef;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--cf-v3-dark-blue, #1f1462);
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: #111;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes-benefit {
  margin: 0;
  padding: 14px 16px;
  background: #f7f8fb;
  border-left: 4px solid #e2187a;
  line-height: 1.55;
}

@media (max-width: 980px) {
  body.cf-univers-papetrie-v3 .cf-pap-v3-choisir--dys .cf-pap-v3-dys-reglures-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes {
    grid-template-columns: 1fr;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-dys-seyes-sample--img img {
    max-height: 220px;
  }

  body.cf-univers-papetrie-v3 .modal-content--reglures-dys {
    padding: 24px 16px 16px;
  }
}

/* Déficients et DYS — square gammes grid (3 per row), like loisirs créatifs */
body.cf-univers-papetrie-v3 .collections-section--dys-grid {
  padding: 0 40px 60px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-gammes-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 40px;
  padding: 0 0 20px;
  width: 100%;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-gamme-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
  border: none;
  overflow: visible;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-gamme-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-gamme-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-gamme-card:hover .cf-pap-v3-dys-gamme-img img {
  transform: scale(1.04);
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-gamme-card h2 {
  font-family: 'Jost', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--cf-v3-primary-blue, #374296);
  margin: 15px 0 8px;
  padding: 0;
  line-height: 1.2;
  text-align: left;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-gamme-card .cf-pap-v3-pictos-row {
  margin-top: 4px;
  margin-bottom: 12px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-dys-gamme-desc {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  color: #555;
  margin: 0;
  text-align: left;
}

@media (max-width: 1024px) {
  body.cf-univers-papetrie-v3 .collections-section--dys-grid {
    padding: 0 24px 48px;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-dys-gammes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  body.cf-univers-papetrie-v3 .cf-pap-v3-dys-gammes-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }
}

/* ── Enveloppes et pochettes tradi: grammage + format modals ─ */
body.cf-univers-papetrie-v3 .modal-content--pochettes-grammage,
body.cf-univers-papetrie-v3 .modal-content--pochettes-format {
  max-width: min(980px, 96vw);
  padding: 32px 24px 28px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-grammage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-grammage-card {
  border: 1px solid #d8d8d8;
  background: #fff;
  padding: 22px 18px 20px;
  text-align: center;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-grammage-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eef5fb;
  color: #1f6fb2;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-grammage-badge .material-symbols-outlined {
  font-size: 28px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-grammage-card h3 {
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  color: #1a1a1a;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-grammage-feature {
  margin: 0 0 10px;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f6fb2;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-grammage-desc {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #444;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-card {
  border: 1px solid #c5d8ec;
  background: #fff;
  overflow: hidden;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-head {
  background: #e8f1fa;
  padding: 12px 14px;
  text-align: center;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-head strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #163f66;
  line-height: 1.25;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-head span {
  display: block;
  margin-top: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: #456484;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: 128px;
  border-top: 1px solid #c5d8ec;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #fafcfe;
  border-right: 1px solid #e2ebf4;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-svg {
  width: 100%;
  max-width: 180px;
  height: auto;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-copy {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-copy p {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}

body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-fold {
  color: #1f6fb2 !important;
  font-weight: 600;
  font-size: 0.82rem !important;
}

body.page-pochettes.cf-univers-papetrie-v3 .choisir-options {
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
}

@media (max-width: 900px) {
  body.cf-univers-papetrie-v3 .cf-pap-v3-poch-grammage-grid,
  body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-grid {
    grid-template-columns: 1fr;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-body {
    grid-template-columns: 1fr;
  }

  body.cf-univers-papetrie-v3 .cf-pap-v3-poch-format-diagram {
    border-right: none;
    border-bottom: 1px solid #e2ebf4;
  }

  body.page-pochettes.cf-univers-papetrie-v3 .choisir-options {
    grid-template-columns: 1fr;
  }
}

