/* ========================================================================== 
   ÉCLORYA | LE CARNET | CARTES POSTALES
   Isolé à .eclorya-carnet-page pour ne pas toucher aux autres pages.
   ========================================================================== */

.eclorya-carnet-page {
  --ec-paper: #fbf7ef;
  --ec-paper-2: #f5ecdd;
  --ec-ivory: #fffdfa;
  --ec-ink: #1e1915;
  --ec-soft: #74685d;
  --ec-gold: #ad8050;
  --ec-gold-soft: #d8bd91;
  --ec-line: rgba(66, 48, 34, .14);
  --ec-shadow: 0 18px 45px rgba(65, 45, 28, .10);
  background: #fffdfa;
  color: var(--ec-ink);
}

.eclorya-carnet-page #primary,
.eclorya-carnet-page .content-area,
.eclorya-carnet-page .site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.eclorya-carnet-page .content-container,
.eclorya-carnet-page .site-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.ec-carnet {
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 20%, rgba(173,128,80,.055), transparent 28%),
    linear-gradient(180deg, #fffdfa 0%, #fcfaf6 100%);
  font-family: "Work Sans", sans-serif;
}

.ec-carnet-shell {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.ec-carnet-hero {
  position: relative;
  padding: clamp(82px, 9vw, 138px) 24px clamp(62px, 7vw, 100px);
  text-align: center;
  background:
    linear-gradient(112deg, rgba(248,239,223,.86), rgba(255,253,249,.94)),
    repeating-linear-gradient(0deg, rgba(100,70,40,.018) 0 1px, transparent 1px 5px);
  border-bottom: 1px solid rgba(173,128,80,.16);
}

.ec-carnet-hero::before,
.ec-carnet-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  opacity: .13;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 80%, transparent 61%, #936245 62% 63%, transparent 64%),
    radial-gradient(ellipse at 60% 70%, transparent 68%, #936245 69% 70%, transparent 71%);
}

.ec-carnet-hero::before { left: -90px; top: 18px; transform: rotate(-28deg); }
.ec-carnet-hero::after { right: -92px; bottom: -40px; transform: rotate(145deg); }

.ec-carnet-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.ec-carnet-eyebrow,
.ec-carnet-featured-label > span {
  margin: 0 0 16px;
  color: var(--ec-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.ec-carnet-hero h1 {
  max-width: 920px;
  margin: 0 auto;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(46px, 6.2vw, 90px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.04em;
  color: #18130f;
}

.ec-carnet-hero--category h1 {
  font-size: clamp(48px, 5.8vw, 82px);
}

.ec-carnet-hand {
  margin: 20px auto 6px;
  font-family: "La Belle Aurore", cursive;
  font-size: clamp(25px, 2.7vw, 39px);
  line-height: 1.15;
  color: #9b6a48;
}

.ec-carnet-intro {
  max-width: 720px;
  margin: 20px auto 0;
  color: #65594f;
  font-size: 15px;
  line-height: 1.8;
}

/* Catégories */
.ec-carnet-categories {
  background: rgba(255,253,250,.96);
  border-bottom: 1px solid var(--ec-line);
  position: relative;
  z-index: 4;
}

.ec-carnet-categories__inner {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-block: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ec-carnet-categories__inner::-webkit-scrollbar { display: none; }

.ec-carnet-categories a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid rgba(173,128,80,.19);
  border-radius: 999px;
  color: #5f5349;
  background: #fbf6ee;
  font-size: 12px;
  text-decoration: none;
  transition: .2s ease;
}

.ec-carnet-categories a:hover,
.ec-carnet-categories a.is-active {
  background: #a97847;
  color: #fff;
  border-color: #a97847;
  box-shadow: 0 7px 18px rgba(105,72,43,.13);
  font-weight: 500;
}

/* Contenu */
.ec-carnet-content {
  padding-block: clamp(62px, 7vw, 105px) clamp(48px, 5vw, 72px);
}

.ec-carnet-featured-label {
  text-align: center;
  margin-bottom: 24px;
}

.ec-carnet-featured-label > span { display: block; margin-bottom: 6px; }
.ec-carnet-featured-label p { margin: 0; color: #817266; font-size: 13px; }

/* Carte postale */
.ec-postcard {
  position: relative;
  min-width: 0;
}

.ec-postcard__paper {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 22px;
  overflow: hidden;
  border: 1px solid rgba(99,74,51,.14);
  border-radius: 3px 9px 5px 8px;
  background:
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.1)),
    repeating-linear-gradient(0deg, rgba(117,87,57,.018) 0 1px, transparent 1px 4px),
    #f9f2e5;
  box-shadow: var(--ec-shadow);
  transform: rotate(-.35deg);
  transition: transform .25s ease, box-shadow .25s ease;
}

.ec-carnet-grid .ec-postcard:nth-child(2n) .ec-postcard__paper { transform: rotate(.45deg); }
.ec-carnet-grid .ec-postcard:nth-child(3n) .ec-postcard__paper { transform: rotate(-.18deg); }

.ec-postcard:hover .ec-postcard__paper {
  transform: translateY(-5px) rotate(0);
  box-shadow: 0 25px 55px rgba(65,45,28,.14);
}

.ec-postcard__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  padding: 0 2px 10px;
  color: #a8794b;
}

.ec-postcard__number {
  font-family: "Bodoni Moda", serif;
  font-size: 14px;
  letter-spacing: .16em;
}

.ec-postcard__stamp {
  display: inline-flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  margin-top: -3px;
  border: 1px solid rgba(147,98,69,.46);
  border-radius: 50%;
  font-family: "La Belle Aurore", cursive;
  font-size: 14px;
  transform: rotate(9deg);
  color: rgba(147,98,69,.72);
}

.ec-postcard__image-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ddcd;
  border: 7px solid #fffaf1;
  box-shadow: 0 5px 12px rgba(65,45,28,.09);
}

.ec-postcard__image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(65,45,28,.08);
  pointer-events: none;
}

.ec-postcard__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.ec-postcard:hover .ec-postcard__image { transform: scale(1.025); }

.ec-postcard__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 9px 2px;
}

.ec-postcard__category {
  align-self: flex-start;
  margin-bottom: 10px;
  color: #a16e46;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  text-decoration: none;
}

.ec-postcard__title {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(24px, 1.8vw, 31px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.025em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ec-postcard__title a { color: #201a16; text-decoration: none; }

.ec-postcard__excerpt {
  margin: 12px 0 18px;
  color: #6b5e54;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ec-postcard__read {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(173,128,80,.42);
  color: #2a211b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.ec-postcard__read span { color: var(--ec-gold); margin-left: 5px; }

.ec-postcard__botanical {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(148,100,66,.25);
  font-family: Georgia, serif;
  font-size: 33px;
  transform: rotate(-20deg);
  pointer-events: none;
}

/* La carte à la une est une vraie grande carte postale horizontale. */
.ec-postcard--featured {
  max-width: 1120px;
  margin: 0 auto clamp(55px, 6vw, 82px);
}

.ec-postcard--featured .ec-postcard__paper {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 0;
  padding: 22px;
  transform: rotate(-.12deg);
}

.ec-postcard--featured .ec-postcard__topline {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 30px;
  right: 30px;
  pointer-events: none;
}

.ec-postcard--featured .ec-postcard__image-link {
  aspect-ratio: 16 / 11;
  min-height: 420px;
}

.ec-postcard--featured .ec-postcard__content {
  padding: 68px clamp(28px, 4vw, 58px) 30px;
  justify-content: center;
}

.ec-postcard--featured .ec-postcard__category { font-size: 11px; }
.ec-postcard--featured .ec-postcard__title {
  font-size: clamp(36px, 3.4vw, 52px);
  -webkit-line-clamp: 3;
}
.ec-postcard--featured .ec-postcard__excerpt {
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
}

/* Grille de cartes */
.ec-carnet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
}

/* Pagination */
.ec-carnet-pagination {
  margin-top: clamp(46px, 5vw, 68px);
}

.ec-carnet-pagination .page-numbers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.ec-carnet-pagination .page-numbers li { margin: 0; }

.ec-carnet-pagination .page-numbers a,
.ec-carnet-pagination .page-numbers span {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #5c4d42;
  text-decoration: none;
  font-family: "Bodoni Moda", serif;
  font-size: 17px;
  line-height: 1;
}

.ec-carnet-pagination .page-numbers a:hover {
  color: #936245;
  border-bottom-color: rgba(147,98,69,.45);
}

.ec-carnet-pagination .page-numbers .current {
  color: #936245;
  border-bottom-color: #ae8150;
  font-weight: 500;
}

.ec-carnet-pagination .prev,
.ec-carnet-pagination .next {
  padding-inline: 12px;
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Note de fin */
.ec-carnet-note {
  border-top: 1px solid rgba(173,128,80,.18);
  background: linear-gradient(110deg, #f1e4d1, #fbf6ec 62%, #efe0ca);
}

.ec-carnet-note__inner {
  display: grid;
  grid-template-columns: minmax(190px, .68fr) minmax(0, 1.32fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  max-width: 970px;
  padding-block: clamp(28px, 4vw, 52px);
}

.ec-carnet-note__girls {
  margin: 0;
  justify-self: end;
  width: min(270px, 24vw);
}

.ec-carnet-note__girls img {
  display: block;
  width: 100%;
  height: auto;
}

.ec-carnet-note__copy { text-align: left; }
.ec-carnet-note .ec-carnet-hand { margin: 0; }
.ec-carnet-note__copy > p:last-child { max-width: 600px; margin: 10px 0 0; color: #6d6055; font-size: 13px; line-height: 1.7; }

.ec-carnet-empty { text-align: center; padding-block: 80px; }
.ec-carnet-empty .ec-carnet-hand { margin-top: 0; }

@media (max-width: 1100px) {
  .ec-carnet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-postcard--featured .ec-postcard__image-link { min-height: 360px; }
}

@media (max-width: 760px) {
  .ec-carnet-shell { width: min(100% - 30px, 620px); }
  .ec-carnet-hero { padding: 72px 20px 58px; }
  .ec-carnet-hero h1 { font-size: clamp(43px, 13vw, 63px); }
  .ec-carnet-categories__inner { justify-content: flex-start; width: 100%; padding-inline: 15px; }
  .ec-carnet-content { padding-top: 50px; }

  .ec-postcard--featured .ec-postcard__paper {
    grid-template-columns: 1fr;
    padding: 14px 14px 22px;
  }
  .ec-postcard--featured .ec-postcard__topline {
    position: static;
    grid-column: 1;
    grid-row: 1;
    padding-inline: 3px;
  }
  .ec-postcard--featured .ec-postcard__image-link {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .ec-postcard--featured .ec-postcard__content {
    grid-column: 1;
    grid-row: 3;
    padding: 22px 10px 6px;
  }
  .ec-postcard--featured .ec-postcard__title { font-size: 37px; }

  .ec-carnet-grid { grid-template-columns: 1fr; gap: 26px; }
  .ec-postcard__paper,
  .ec-carnet-grid .ec-postcard:nth-child(n) .ec-postcard__paper { transform: none; }
  .ec-postcard__title { font-size: 30px; }

  .ec-carnet-note__inner {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }
  .ec-carnet-note__girls {
    justify-self: center;
    width: min(250px, 72vw);
    margin-bottom: -4px;
  }
  .ec-carnet-note__copy { text-align: center; }
  .ec-carnet-note__copy > p:last-child { margin-inline: auto; }
}
