/**
 * Papeterie sub-pages — v3 (NosFournituresScolaires, etc.)
 */

:root {
  --cf-pap-sub-primary-blue: #374296;
  --cf-pap-sub-text-dark: #1a1a1a;
}

body.cf-papeterie-subpage-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
  );
}

body.cf-papeterie-subpage-v3 main.cf-pap-sub-v3-main {
  padding: 0;
  margin: 0;
  max-width: none;
  font-family: 'Jost', sans-serif;
  color: var(--cf-pap-sub-text-dark);
}

body.cf-papeterie-subpage-v3 main.cf-pap-sub-v3-main h1,
body.cf-papeterie-subpage-v3 main.cf-pap-sub-v3-main h2,
body.cf-papeterie-subpage-v3 main.cf-pap-sub-v3-main h3 {
  letter-spacing: normal;
}

body.cf-papeterie-subpage-v3 main.cf-pap-sub-v3-main p {
  margin-bottom: 0;
}

/* Hero */
body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-hero.hero {
  height: 850px;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 100px 10%;
  background-color: #1a1a3a;
  background-size: cover;
  background-position: center;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-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-papeterie-subpage-v3 .cf-pap-sub-v3-hero-overlay-content {
  background: #fff;
  padding: 40px;
  max-width: 480px;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-hero-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(32px, 3vw, 46px);
  color: var(--cf-pap-sub-primary-blue);
  margin: 0 0 25px;
  font-weight: 700;
  line-height: 1.08;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-hero-title--compact {
  word-break: break-word;
}

/* Long pro title must stay inside the white hero text block. */
body.cf-papeterie-subpage-v3--fournitures-professionnelles .cf-pap-sub-v3-hero-overlay-content {
  max-width: 560px;
  padding: 40px 44px;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-hero .cf-pap-sub-v3-hero-overlay-content p {
  font-family: 'Jost', sans-serif;
  font-size: 17px !important;
  line-height: 1.6;
  color: #555;
}

/* Gammes */
body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-collections.collections-section {
  padding: 0 40px 60px;
  margin-top: 100px;
}

/* Full-width grid like mockup — no theme .container max-width. */
body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

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

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-content-blocks.content-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0 0 20px;
  grid-auto-rows: 1fr;
}

/* Scoped card — reset clairefontaine-brand .collection-card */
body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-collection-card {
  display: flex;
  flex-direction: column;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transform: none;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-collection-card:hover {
  box-shadow: none;
  transform: none;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-col-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e6e6e6;
  flex-shrink: 0;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-collection-card:hover .cf-pap-sub-v3-col-img img {
  transform: scale(1.04);
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-collection-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-collection-card--link:focus-visible {
  outline: 2px solid var(--cf-pap-sub-primary-blue);
  outline-offset: 4px;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-collection-card h2 {
  font-family: 'Jost', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--cf-pap-sub-primary-blue);
  margin-top: 15px;
  margin-bottom: 8px;
}

body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-collection-card .block-desc {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  color: #555;
}

@media (max-width: 1024px) {
  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-hero.hero {
    height: 600px;
    padding: 60px 5%;
  }

  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-section-title.section-title {
    font-size: 56px;
  }

  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-hero-title {
    font-size: 30px;
  }

  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-hero .cf-pap-sub-v3-hero-overlay-content p {
    font-size: 16px !important;
  }

  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-content-blocks.content-blocks {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-collections.collections-section {
    margin-top: 60px;
    padding: 0 24px 48px;
  }
}

@media (max-width: 768px) {
  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-hero.hero {
    height: auto;
    min-height: 420px;
    padding: 40px 20px;
    justify-content: center;
    align-items: flex-end;
  }

  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-hero-overlay-content {
    max-width: none;
    padding: 28px 24px;
  }

  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-section-title.section-title {
    font-size: 42px;
  }

  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-content-blocks.content-blocks {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.cf-papeterie-subpage-v3 .cf-pap-sub-v3-collections.collections-section {
    margin-top: 40px;
    padding: 0 20px 40px;
  }
}
