/* ========================================================================== 
   ÉCLORYA | ARTICLE DU CARNET | CAHIER DE BORD
   Le listing reste en cartes postales ; l'article devient une longue page
   de carnet avec photos collées/scotchées et lecture très aérée.
   ========================================================================== */

.eclorya-carnet-article-page {
  --eca-paper: #fbf4e7;
  --eca-paper-deep: #f2e6d4;
  --eca-ink: #211b17;
  --eca-soft: #6d6056;
  --eca-gold: #aa7a49;
  --eca-copper: #956044;
  --eca-line: rgba(86, 64, 44, .13);
  --eca-rule: rgba(136, 111, 82, .075);
  background: #fffdfa;
  color: var(--eca-ink);
}

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

.ec-journal {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 16%, rgba(174,129,80,.05), transparent 27%),
    linear-gradient(180deg, #fffdfa 0%, #fbf7f0 100%);
  font-family: "Work Sans", sans-serif;
}

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

/* --------------------------------------------------------------------------
   Hero article
   -------------------------------------------------------------------------- */
.ec-journal-hero {
  position: relative;
  padding: clamp(52px, 6vw, 92px) 0 clamp(56px, 6vw, 92px);
  border-bottom: 1px solid rgba(174,129,80,.16);
  background:
    linear-gradient(108deg, rgba(247,238,222,.82), rgba(255,253,249,.96) 53%, rgba(244,233,215,.78)),
    repeating-linear-gradient(0deg, rgba(100,70,40,.018) 0 1px, transparent 1px 5px);
}

.ec-journal-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -90px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(148,98,69,.10);
  border-radius: 50%;
  pointer-events: none;
}

.ec-journal-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: center;
}

.ec-journal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: #87776a;
  font-size: 11px;
}

.ec-journal-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ec-journal-breadcrumb a:hover { color: var(--eca-gold); }

.ec-journal-category {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--eca-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}

.ec-journal-hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(43px, 5vw, 73px);
  line-height: 1.01;
  font-weight: 400;
  letter-spacing: -.038em;
  color: #1c1713;
}

.ec-journal-hand {
  max-width: 650px;
  margin: 22px 0 8px;
  font-family: "La Belle Aurore", cursive;
  font-size: clamp(27px, 2.4vw, 38px);
  line-height: 1.16;
  color: #9b6847;
}

.ec-journal-deck {
  max-width: 650px;
  margin: 22px 0 0;
  color: #64584e;
  font-size: 15px;
  line-height: 1.8;
}

.ec-journal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
  color: #88786b;
  font-size: 11px;
  letter-spacing: .025em;
}

.ec-journal-hero__visual {
  position: relative;
  margin: 0;
  padding: 14px 14px 36px;
  background: #fffaf1;
  box-shadow: 0 24px 56px rgba(68,45,28,.13);
  transform: rotate(.6deg);
}

.ec-journal-hero__visual::after {
  content: "";
  position: absolute;
  inset: 14px 14px 36px;
  box-shadow: inset 0 0 0 1px rgba(61,44,31,.08);
  pointer-events: none;
}

.ec-journal-hero__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ec-journal-hero__visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 9px;
  color: #926344;
  font-family: "La Belle Aurore", cursive;
  font-size: 17px;
  transform: rotate(-2deg);
}

.ec-journal-tape {
  position: absolute;
  z-index: 4;
  width: 98px;
  height: 25px;
  background: rgba(219,197,157,.68);
  box-shadow: inset 0 0 0 1px rgba(119,90,57,.07);
  backdrop-filter: blur(1px);
}

.ec-journal-tape--hero {
  top: 2px;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
}

/* --------------------------------------------------------------------------
   Grand cahier
   -------------------------------------------------------------------------- */
.ec-journal-notebook-wrap {
  position: relative;
  padding: clamp(60px, 7vw, 112px) 28px clamp(72px, 8vw, 120px);
}

.ec-journal-notebook {
  position: relative;
  width: min(1110px, calc(100% - 24px));
  margin: 0 auto;
  padding: clamp(46px, 6vw, 88px) clamp(45px, 7vw, 105px) clamp(60px, 7vw, 95px) clamp(76px, 9vw, 132px);
  border: 1px solid rgba(101,76,51,.18);
  border-radius: 5px 10px 8px 4px;
  background:
    linear-gradient(90deg, transparent 0 81px, rgba(178,116,84,.20) 82px 83px, transparent 84px),
    repeating-linear-gradient(0deg, transparent 0 34px, var(--eca-rule) 35px 36px),
    repeating-linear-gradient(90deg, rgba(120,88,56,.012) 0 1px, transparent 1px 5px),
    var(--eca-paper);
  box-shadow: 0 28px 70px rgba(67,46,30,.12);
}

.ec-journal-notebook::before,
.ec-journal-notebook::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(101,76,51,.10);
  background: #f6ebdc;
}

.ec-journal-notebook::before {
  inset: 11px -10px -9px 14px;
  transform: rotate(.24deg);
}

.ec-journal-notebook::after {
  inset: 20px -17px -15px 26px;
  transform: rotate(-.18deg);
  opacity: .7;
}

.ec-journal-rings {
  position: absolute;
  left: -19px;
  top: 58px;
  bottom: 58px;
  width: 38px;
  background:
    radial-gradient(circle at 24px 12px, #f8eddd 0 6px, rgba(84,60,40,.24) 6.5px 8px, transparent 8.5px) 0 0 / 38px 56px repeat-y;
  pointer-events: none;
}

.ec-journal-rings::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 28px;
  background:
    linear-gradient(90deg, transparent 0 8px, rgba(169,127,76,.55) 9px 11px, #e0bb75 12px 15px, rgba(120,86,48,.50) 16px 18px, transparent 19px);
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 21px, transparent 21px 56px);
  mask: repeating-linear-gradient(0deg, #000 0 21px, transparent 21px 56px);
}

.ec-journal-margin-line {
  position: absolute;
  left: 82px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(174,111,80,.16);
  pointer-events: none;
}

.ec-journal-notebook__heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: clamp(46px, 5vw, 72px);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(89,65,44,.13);
}

.ec-journal-notebook__heading > div { display: grid; gap: 5px; }
.ec-journal-notebook__kicker {
  color: var(--eca-gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .24em;
}
.ec-journal-notebook__heading strong {
  font-family: "Bodoni Moda", serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: .01em;
}
.ec-journal-notebook__date {
  color: #8d7d70;
  font-size: 11px;
  letter-spacing: .12em;
}

/* --------------------------------------------------------------------------
   Typographie du contenu existant
   -------------------------------------------------------------------------- */
.ec-journal-entry {
  position: relative;
  color: #352c25;
  font-size: 16px;
  line-height: 1.88;
}

.ec-journal-entry > *:first-child { margin-top: 0; }
.ec-journal-entry > *:last-child { margin-bottom: 0; }

.ec-journal-entry p,
.ec-journal-entry ul,
.ec-journal-entry ol,
.ec-journal-entry blockquote,
.ec-journal-entry table {
  margin-top: 0;
  margin-bottom: 27px;
}

.ec-journal-entry h1,
.ec-journal-entry h2,
.ec-journal-entry h3,
.ec-journal-entry h4 {
  color: #221b17;
  font-family: "Bodoni Moda", serif;
  font-weight: 400;
  letter-spacing: -.025em;
}

.ec-journal-entry h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.08; margin: 62px 0 24px; }
.ec-journal-entry h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; margin: 68px 0 25px; }
.ec-journal-entry h3 { font-size: clamp(25px, 2.5vw, 33px); line-height: 1.16; margin: 48px 0 19px; }
.ec-journal-entry h4 { font-size: 22px; line-height: 1.2; margin: 38px 0 16px; }

.ec-journal-entry h2::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 12px 9px 0;
  background: var(--eca-gold);
}

.ec-journal-entry a {
  color: #8e5e3e;
  text-decoration-color: rgba(142,94,62,.35);
  text-underline-offset: 3px;
}

.ec-journal-entry strong { color: #272019; font-weight: 600; }

.ec-journal-entry ul,
.ec-journal-entry ol {
  padding-left: 1.3em;
}

.ec-journal-entry li { margin-bottom: 9px; }
.ec-journal-entry li::marker { color: #a87549; }

.ec-journal-entry hr,
.ec-journal-entry .wp-block-separator {
  width: 90px;
  margin: 52px auto;
  border: 0;
  border-top: 1px solid rgba(169,120,72,.42);
}

/* Citations = petit papier épinglé */
.ec-journal-entry blockquote,
.ec-journal-entry .wp-block-quote {
  position: relative;
  margin: 42px 0;
  padding: 30px clamp(28px, 4vw, 48px);
  border: 1px solid rgba(106,77,50,.13);
  border-left: 0;
  background: rgba(255,250,240,.82);
  box-shadow: 0 11px 24px rgba(66,46,31,.06);
  color: #5e4f44;
  transform: rotate(-.2deg);
}

.ec-journal-entry blockquote::before,
.ec-journal-entry .wp-block-quote::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 82px;
  height: 20px;
  background: rgba(220,197,157,.62);
  transform: translateX(-50%) rotate(-2deg);
}

.ec-journal-entry blockquote p,
.ec-journal-entry .wp-block-quote p {
  margin-bottom: 0;
  font-family: "La Belle Aurore", cursive;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.35;
  color: #9b6847;
}

/* Images : photos collées/scotchées dans le cahier */
.ec-journal-entry figure.wp-block-image,
.ec-journal-entry figure.wp-caption,
.ec-journal-entry .wp-block-gallery,
.ec-journal-entry > figure {
  position: relative;
  max-width: 780px;
  margin: 48px auto 54px;
}

.ec-journal-entry figure.wp-block-image,
.ec-journal-entry figure.wp-caption,
.ec-journal-entry > figure:not(.wp-block-gallery) {
  padding: 11px 11px 34px;
  background: #fffaf0;
  box-shadow: 0 18px 38px rgba(68,47,31,.12);
  transform: rotate(-.42deg);
}

.ec-journal-entry figure.wp-block-image:nth-of-type(even),
.ec-journal-entry figure.wp-caption:nth-of-type(even) { transform: rotate(.48deg); }

.ec-journal-entry figure.wp-block-image::before,
.ec-journal-entry figure.wp-caption::before,
.ec-journal-entry > figure:not(.wp-block-gallery)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -10px;
  left: 50%;
  width: 92px;
  height: 23px;
  background: rgba(218,194,153,.66);
  box-shadow: inset 0 0 0 1px rgba(111,79,48,.05);
  transform: translateX(-50%) rotate(-4deg);
}

.ec-journal-entry figure img,
.ec-journal-entry .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

.ec-journal-entry figcaption,
.ec-journal-entry .wp-caption-text {
  margin: 10px 8px -20px;
  color: #8f6448;
  font-family: "La Belle Aurore", cursive;
  font-size: 19px;
  line-height: 1.2;
  text-align: center;
}

.ec-journal-entry .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ec-journal-entry .wp-block-gallery figure {
  margin: 0;
  padding: 9px;
  background: #fffaf0;
  box-shadow: 0 11px 26px rgba(68,47,31,.10);
}

/* Encarts Gutenberg / groupes : notes de cours */
.ec-journal-entry .wp-block-group.has-background,
.ec-journal-entry .wp-block-columns.has-background,
.ec-journal-entry .wp-block-media-text.has-background {
  margin-block: 38px;
  padding: clamp(24px, 4vw, 42px) !important;
  border: 1px solid rgba(102,75,51,.12);
  border-radius: 3px;
  background-color: rgba(255,250,241,.82) !important;
  box-shadow: 0 10px 24px rgba(68,47,31,.055);
}

.ec-journal-entry .wp-block-pullquote {
  padding: 30px 0;
  border-top: 1px solid rgba(169,120,72,.25);
  border-bottom: 1px solid rgba(169,120,72,.25);
}

.ec-journal-entry .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.ec-journal-entry .wp-block-pullquote blockquote::before { display: none; }

/* FAQ natif / blocs details */
.ec-journal-entry details,
.ec-journal-entry .wp-block-details {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(82,61,43,.14);
  background: rgba(255,253,248,.42);
}

.ec-journal-entry details:first-of-type { border-top: 1px solid rgba(82,61,43,.14); }
.ec-journal-entry summary {
  position: relative;
  padding: 17px 42px 17px 3px;
  cursor: pointer;
  color: #2e251f;
  font-weight: 500;
  list-style: none;
}
.ec-journal-entry summary::-webkit-details-marker { display: none; }
.ec-journal-entry summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  color: var(--eca-gold);
  font-family: Georgia, serif;
  font-size: 21px;
  transform: translateY(-50%);
}
.ec-journal-entry details[open] summary::after { content: "−"; }
.ec-journal-entry details > *:not(summary) { margin-inline: 3px; }

/* Tableaux */
.ec-journal-entry .wp-block-table,
.ec-journal-entry table {
  overflow-x: auto;
}
.ec-journal-entry table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,252,246,.72);
}
.ec-journal-entry th,
.ec-journal-entry td {
  padding: 13px 14px;
  border: 1px solid rgba(82,61,43,.12);
  text-align: left;
  vertical-align: top;
}
.ec-journal-entry th { color: #3a2e25; background: rgba(231,211,182,.26); }

/* Éléments ajoutés par des plugins que l'on remplace par notre bloc lié */
.ec-journal-entry .jp-relatedposts,
.ec-journal-entry .yarpp-related,
.ec-journal-entry .crp_related,
.ec-journal-entry .rp4wp-related-posts,
.ec-journal-entry .sharedaddy,
.ec-journal-entry .sd-sharing-enabled {
  display: none !important;
}

.ec-journal-endnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(91,67,46,.13);
  color: #887466;
  text-align: center;
}
.ec-journal-endnote span { color: rgba(151,102,68,.52); font-size: 26px; }
.ec-journal-endnote p { margin: 0; font-family: "La Belle Aurore", cursive; font-size: 21px; }

/* --------------------------------------------------------------------------
   Lectures liées : les cartes postales reviennent en fin d'article
   -------------------------------------------------------------------------- */
.ec-journal-related {
  padding-bottom: clamp(70px, 8vw, 116px);
}

.ec-journal-related__heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 32px;
  margin-bottom: 34px;
  padding-top: 8px;
}

.ec-journal-related__heading .ec-carnet-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.ec-journal-related__heading h2 {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.035em;
}

.ec-journal-related__heading > a {
  color: #765842;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid rgba(169,120,72,.35);
}

.ec-journal-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.ec-journal-related .ec-postcard__title { font-size: clamp(24px, 2vw, 30px); }

@media (max-width: 980px) {
  .ec-journal-hero__grid { grid-template-columns: 1fr; }
  .ec-journal-hero__copy { max-width: 760px; }
  .ec-journal-hero__visual { max-width: 760px; }
  .ec-journal-notebook {
    padding-left: clamp(68px, 10vw, 100px);
    padding-right: clamp(35px, 6vw, 70px);
  }
  .ec-journal-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-journal-related__grid .ec-postcard:last-child { display: none; }
}

@media (max-width: 680px) {
  .ec-journal-shell { width: min(100% - 30px, 620px); }
  .ec-journal-hero { padding-block: 42px 52px; }
  .ec-journal-hero__grid { gap: 34px; }
  .ec-journal-breadcrumb { margin-bottom: 20px; }
  .ec-journal-hero h1 { font-size: clamp(39px, 12vw, 57px); }
  .ec-journal-hand { font-size: 28px; }
  .ec-journal-deck { font-size: 14px; }
  .ec-journal-hero__visual { padding: 10px 10px 31px; transform: none; }
  .ec-journal-hero__image { aspect-ratio: 4 / 3; }

  .ec-journal-notebook-wrap { padding: 42px 9px 62px 17px; }
  .ec-journal-notebook {
    width: calc(100% - 9px);
    padding: 38px 20px 52px 48px;
    background:
      linear-gradient(90deg, transparent 0 34px, rgba(178,116,84,.18) 35px 36px, transparent 37px),
      repeating-linear-gradient(0deg, transparent 0 31px, var(--eca-rule) 32px 33px),
      var(--eca-paper);
  }
  .ec-journal-margin-line { left: 35px; }
  .ec-journal-rings { left: -18px; width: 33px; }
  .ec-journal-notebook__heading { align-items: flex-start; flex-direction: column; display: flex; gap: 10px; margin-bottom: 38px; }
  .ec-journal-entry { font-size: 15px; line-height: 1.78; }
  .ec-journal-entry h2 { margin-top: 52px; }
  .ec-journal-entry figure.wp-block-image,
  .ec-journal-entry figure.wp-caption,
  .ec-journal-entry > figure { margin-block: 38px 42px; }
  .ec-journal-entry .wp-block-gallery { grid-template-columns: 1fr; }
  .ec-journal-entry blockquote,
  .ec-journal-entry .wp-block-quote { padding: 27px 22px; }

  .ec-journal-related__heading { grid-template-columns: 1fr; align-items: start; }
  .ec-journal-related__heading > a { justify-self: start; }
  .ec-journal-related__grid { grid-template-columns: 1fr; }
  .ec-journal-related__grid .ec-postcard:last-child { display: block; }
}

/* ========================================================================== 
   V2 | CAHIER PLUS LARGE + ARTICLE DE REFERENCE
   ========================================================================== */
@media (min-width: 981px) {
  .ec-journal-notebook {
    width: min(1360px, calc(100% - 44px));
    padding-left: clamp(92px, 7vw, 122px);
    padding-right: clamp(62px, 6vw, 96px);
  }
  .ec-journal-margin-line { left: 76px; }
  .ec-journal-entry { font-size: 16.5px; }
}

.ec-logbook {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.ec-logbook p { max-width: 76ch; }
.ec-logbook h2 { margin-top: 0; }
.ec-logbook h2::before { display: none; }

.ec-logbook-label {
  margin: 0 0 10px !important;
  color: var(--eca-gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ec-logbook-hand {
  margin: 22px 0 0 !important;
  color: #a06949;
  font-family: "La Belle Aurore", cursive;
  font-size: clamp(24px, 2.2vw, 33px);
  line-height: 1.2;
}

.ec-logbook-opening,
.ec-logbook-spread,
.ec-logbook-origin,
.ec-logbook-next {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .72fr);
  gap: clamp(32px, 5vw, 74px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 78px);
}

.ec-logbook-opening h2,
.ec-logbook-spread h2,
.ec-logbook-origin h2,
.ec-logbook-next h2,
.ec-logbook-section h2 {
  font-size: clamp(31px, 3.2vw, 45px);
  line-height: 1.08;
  margin-bottom: 22px;
}

.ec-logbook-note,
.ec-logbook-paper-scrap {
  position: relative;
  padding: 30px 30px 28px;
  border: 1px solid rgba(102,75,51,.13);
  background: rgba(255,250,239,.92);
  box-shadow: 0 15px 34px rgba(67,47,31,.08);
}
.ec-logbook-note--tilt { transform: rotate(1.1deg); }
.ec-logbook-note__pin {
  position: absolute;
  top: -12px;
  right: 24px;
  width: 18px;
  height: 40px;
  border: 2px solid rgba(148,107,70,.55);
  border-radius: 10px;
  transform: rotate(7deg);
}
.ec-logbook-note__title {
  margin: 0 0 15px !important;
  color: #9b6847;
  font-family: "La Belle Aurore", cursive;
  font-size: 29px;
}
.ec-logbook-note ul { margin-bottom: 0; }

.ec-logbook-photo {
  position: relative;
  margin: clamp(42px, 5vw, 68px) auto !important;
  padding: 12px 12px 38px !important;
  background: #fffaf0;
  box-shadow: 0 18px 38px rgba(68,47,31,.12);
  transform: rotate(-.35deg);
}
.ec-logbook-photo--wide { max-width: 940px !important; }
.ec-logbook-photo img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.ec-logbook-photo figcaption {
  margin: 10px 8px -22px !important;
  color: #8f6448;
  font-family: "La Belle Aurore", cursive;
  font-size: 21px;
  text-align: center;
}
.ec-logbook-tape {
  position: absolute;
  z-index: 3;
  top: -11px;
  left: 50%;
  width: 105px;
  height: 25px;
  background: rgba(218,194,153,.66);
  transform: translateX(-50%) rotate(-4deg);
}

.ec-logbook-section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 22px;
  margin: clamp(54px, 6vw, 84px) 0;
}
.ec-logbook-section__number {
  padding-top: 5px;
  color: #b07b4e;
  font-family: "Bodoni Moda", serif;
  font-size: 20px;
  border-top: 1px solid rgba(169,120,72,.45);
}
.ec-logbook-section__content { min-width: 0; }

.ec-logbook-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 72px;
}
.ec-logbook-benefits article {
  min-height: 210px;
  padding: 25px 22px;
  border: 1px solid rgba(95,71,49,.12);
  background: rgba(255,252,245,.72);
  box-shadow: 0 10px 25px rgba(67,47,31,.045);
}
.ec-logbook-benefits article:nth-child(2n) { transform: rotate(.25deg); }
.ec-logbook-benefits article:nth-child(2n+1) { transform: rotate(-.2deg); }
.ec-logbook-benefits article > span {
  color: #b07b4e;
  font-size: 10px;
  letter-spacing: .14em;
}
.ec-logbook-benefits h3 {
  margin: 12px 0 10px;
  font-size: 27px;
}
.ec-logbook-benefits p {
  margin-bottom: 0;
  color: #66584d;
  font-size: 14px;
  line-height: 1.65;
}

.ec-logbook-paper-scrap {
  margin-top: 18px;
  padding: 36px 34px;
  transform: rotate(-1.2deg);
  background:
    linear-gradient(rgba(255,250,238,.94), rgba(255,250,238,.94)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(126,94,61,.06) 28px 29px);
}
.ec-logbook-paper-scrap::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 38%;
  width: 90px;
  height: 22px;
  background: rgba(219,197,157,.64);
  transform: rotate(3deg);
}
.ec-logbook-paper-scrap p {
  margin: 0 0 17px !important;
  color: #966247;
  font-family: "La Belle Aurore", cursive;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.3;
}
.ec-logbook-paper-scrap small { color: #817166; }

.ec-logbook-link {
  display: inline-block;
  margin-top: 6px;
  color: #76553e !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(169,120,72,.34);
}

.ec-logbook-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 30px !important;
  padding: 0 !important;
  list-style: none;
}
.ec-logbook-steps li {
  position: relative;
  margin: 0;
  padding: 22px 22px 22px 58px;
  border: 1px solid rgba(98,73,50,.12);
  background: rgba(255,252,246,.72);
}
.ec-logbook-steps li::before {
  content: counter(list-item);
  position: absolute;
  left: 18px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(168,118,73,.55);
  border-radius: 50%;
  color: #9d6b46;
  font-family: "Bodoni Moda", serif;
}
.ec-logbook-steps strong { display: block; margin-bottom: 3px; }
.ec-logbook-steps span { display: block; color: #75675b; font-size: 13px; line-height: 1.55; }

.ec-logbook-origin {
  padding: clamp(30px, 4vw, 48px);
  border-top: 1px solid rgba(169,120,72,.26);
  border-bottom: 1px solid rgba(169,120,72,.26);
  background: rgba(255,252,246,.46);
}
.ec-logbook-facts { display: grid; gap: 10px; }
.ec-logbook-facts > div {
  display: grid;
  gap: 2px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(94,70,48,.12);
}
.ec-logbook-facts span { color: #9a7659; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.ec-logbook-facts strong { font-family: "Bodoni Moda", serif; font-size: 18px; font-weight: 400; }

.ec-logbook-quote {
  max-width: 900px;
  margin: 70px auto !important;
}
.ec-logbook-quote p { max-width: none; }

.ec-logbook-faq details {
  margin: 0;
  border-bottom: 1px solid rgba(88,65,44,.14);
  background: rgba(255,253,248,.56);
}
.ec-logbook-faq details:first-child { border-top: 1px solid rgba(88,65,44,.14); }
.ec-logbook-faq summary { font-size: 15px; }
.ec-logbook-faq details p { padding: 0 36px 18px 4px; color: #6d6056; }

.ec-logbook-next {
  align-items: end;
  margin-top: 76px;
  padding-top: 34px;
  border-top: 1px solid rgba(95,70,48,.14);
}
.ec-logbook-next__links { display: grid; gap: 10px; }
.ec-logbook-next__links a {
  padding: 13px 0;
  color: #71533e !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(169,120,72,.25);
}

.ec-logbook-footnotes {
  margin-top: 52px;
  padding: 24px 26px;
  border: 1px solid rgba(95,70,48,.1);
  background: rgba(242,230,212,.48);
  color: #77695e;
  font-size: 12px;
  line-height: 1.65;
}
.ec-logbook-footnotes p { margin: 0 0 8px !important; max-width: none; }
.ec-logbook-footnotes p:last-child { margin-bottom: 0 !important; }

@media (max-width: 980px) {
  .ec-logbook-opening,
  .ec-logbook-spread,
  .ec-logbook-origin,
  .ec-logbook-next { grid-template-columns: 1fr; }
  .ec-logbook-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .ec-logbook-section { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .ec-logbook-benefits { grid-template-columns: 1fr; }
  .ec-logbook-benefits article { min-height: 0; transform: none !important; }
  .ec-logbook-steps { grid-template-columns: 1fr; }
  .ec-logbook-photo { margin-inline: -5px !important; }
  .ec-logbook-note,
  .ec-logbook-paper-scrap { transform: none; }
}

/* ========================================================================== 
   V3 | VOIX DU CARNET + PETITS GRIBOUILLAGES MANUSCRITS
   Les éléments restent volontairement discrets : 2 à 4 visibles à la fois.
   ========================================================================== */

/* Un peu plus d'air pour les longs articles de référence. */
@media (min-width: 1180px) {
  .ec-journal-notebook {
    width: min(1420px, calc(100% - 54px));
    padding-left: clamp(96px, 7vw, 128px);
    padding-right: clamp(72px, 6vw, 104px);
  }
  .ec-logbook { max-width: 1220px; }
}

/* Petits échanges manuscrits Mimi / Zouzou. */
.ec-logbook-dialogue {
  position: relative;
  max-width: 720px;
  margin: 30px 0 8px;
  padding: 20px 24px 18px 32px;
  border-left: 1px solid rgba(167,115,74,.38);
  color: #785a47;
  transform: rotate(-.22deg);
}
.ec-logbook-dialogue::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 19px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(167,115,74,.55);
  border-radius: 50%;
  background: var(--eca-paper);
}
.ec-logbook-dialogue p {
  margin: 0 0 8px !important;
  max-width: none;
  font-family: "La Belle Aurore", cursive;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.25;
}
.ec-logbook-dialogue p:last-child { margin-bottom: 0 !important; }
.ec-logbook-dialogue strong {
  display: inline-block;
  margin-right: 6px;
  color: #a06949;
  font-family: "Work Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  vertical-align: .2em;
}
.ec-logbook-dialogue--soft {
  margin-top: 28px;
  padding-right: 8px;
  border-left-color: rgba(167,115,74,.24);
}

/* Les cartes problèmes/solutions ressemblent davantage à des notes de carnet. */
.ec-logbook-problem-grid article {
  position: relative;
  overflow: visible;
}
.ec-logbook-problem-grid article:nth-child(1)::after,
.ec-logbook-problem-grid article:nth-child(4)::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 13px;
  width: 36px;
  height: 11px;
  border-bottom: 2px solid rgba(169,111,72,.30);
  border-radius: 50%;
  transform: rotate(-7deg);
}

/* --------------------------------------------------------------------------
   10 petits motifs réutilisables dans le Carnet
   -------------------------------------------------------------------------- */
.ec-doodle {
  position: absolute;
  display: block;
  pointer-events: none;
  color: rgba(154,101,67,.48);
  opacity: .82;
}

/* 1. Petite étoile */
.ec-doodle--mini-star {
  right: 18px;
  bottom: 14px;
  width: 24px;
  height: 24px;
}
.ec-doodle--mini-star::before,
.ec-doodle--mini-star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%,-50%) rotate(45deg);
}
.ec-doodle--mini-star::after { transform: translate(-50%,-50%) rotate(-45deg); }

/* 2. Petit cœur à la main */
.ec-doodle--heart {
  right: 22px;
  bottom: 14px;
  font-family: "La Belle Aurore", cursive;
  font-size: 35px;
  transform: rotate(-8deg);
}
.ec-doodle--heart::before { content: "♡"; }

/* 3. Soulignement irrégulier, à appliquer sur un span. */
.ec-doodle-underline {
  position: relative;
  display: inline;
  white-space: normal;
}
.ec-doodle-underline::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.14em;
  height: 5px;
  border-bottom: 2px solid rgba(164,108,71,.38);
  border-radius: 50%;
  transform: rotate(-1.4deg);
}

/* 4. Trois petites croix */
.ec-doodle-crosses::after {
  content: "×   ×   ×";
  display: inline-block;
  margin-left: 9px;
  color: rgba(154,101,67,.43);
  font-family: "La Belle Aurore", cursive;
  font-size: 17px;
  letter-spacing: 3px;
  transform: rotate(-4deg);
}

/* 5. Cercle griffonné autour d'un mot court. */
.ec-doodle-circle {
  position: relative;
  display: inline-block;
  padding: 0 .12em;
}
.ec-doodle-circle::after {
  content: "";
  position: absolute;
  inset: -.22em -.38em -.12em;
  border: 1.5px solid rgba(154,101,67,.38);
  border-radius: 51% 46% 53% 48%;
  transform: rotate(-4deg);
  pointer-events: none;
}

/* 6. Vague manuscrite */
.ec-doodle-wave {
  width: 56px;
  height: 14px;
  border-top: 2px solid rgba(154,101,67,.36);
  border-radius: 50%;
  transform: rotate(-4deg);
}

/* 7. Petite flèche courbe */
.ec-doodle-arrow {
  width: 54px;
  height: 32px;
  border-top: 1.6px solid rgba(154,101,67,.40);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.ec-doodle-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(20deg);
}

/* 8. Mini brindille botanique */
.ec-doodle-leaf {
  width: 47px;
  height: 28px;
  border-bottom: 1.5px solid rgba(154,101,67,.37);
  transform: rotate(-24deg);
}
.ec-doodle-leaf::before,
.ec-doodle-leaf::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 6px;
  border: 1.3px solid rgba(154,101,67,.37);
  border-radius: 80% 20% 80% 20%;
}
.ec-doodle-leaf::before { left: 12px; bottom: 4px; transform: rotate(28deg); }
.ec-doodle-leaf::after { left: 26px; bottom: 8px; transform: rotate(-18deg); }

/* 9. Crochet de marge */
.ec-doodle-bracket {
  width: 18px;
  height: 66px;
  border-left: 1.5px solid rgba(154,101,67,.35);
  border-top: 1.5px solid rgba(154,101,67,.35);
  border-bottom: 1.5px solid rgba(154,101,67,.35);
  border-radius: 6px 0 0 6px;
}

/* 10. Petite spirale */
.ec-doodle-spiral {
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(154,101,67,.36);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(24deg);
}
.ec-doodle-spiral::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.2px solid rgba(154,101,67,.30);
  border-top-color: transparent;
  border-radius: 50%;
}

/* Doodles fixes du cahier : volontairement très peu nombreux. */
.ec-journal-notebook > .ec-journal-doodle { z-index: 1; }
.ec-journal-doodle--a { top: 33px; right: 70px; }
.ec-journal-doodle--b { top: 46%; left: 31px; }
.ec-journal-doodle--c { bottom: 112px; right: 45px; }
.ec-journal-doodle--d { bottom: 30px; left: 112px; }

/* Petite note sur le principe éditorial. */
.ec-logbook-note > p:not(.ec-logbook-note__title) {
  margin-bottom: 0;
  color: #5f5147;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .ec-journal-doodle--b,
  .ec-journal-doodle--c { display: none; }
}

@media (max-width: 680px) {
  .ec-logbook-dialogue { padding-left: 22px; }
  .ec-logbook-dialogue p { font-size: 23px; }
  .ec-journal-notebook > .ec-journal-doodle { opacity: .45; transform: scale(.82); }
  .ec-journal-doodle--a { right: 30px; }
  .ec-journal-doodle--d { left: 70px; }
}


/* ========================================================================== 
   V4 | CARNET PLUS INTIME
   - photos dans le cahier plus petites
   - gribouillages plus visibles
   - petites notes manuscrites en marge
   ========================================================================== */

.ec-journal-notebook {
  overflow: hidden;
}

.ec-journal-notebook > .ec-journal-doodle {
  z-index: 2;
  color: rgba(156, 98, 61, .74);
  opacity: 1;
  transform: scale(1.16);
}

.ec-journal-doodle--a { top: 24px; right: 56px; }
.ec-journal-doodle--b { top: 178px; left: 26px; }
.ec-journal-doodle--c { top: 42%; right: 38px; bottom: auto; }
.ec-journal-doodle--d { bottom: 56px; left: 114px; }
.ec-journal-doodle--e { top: 282px; right: 92px; }
.ec-journal-doodle--f { bottom: 214px; right: 72px; }

.ec-doodle--crosses {
  font-family: "La Belle Aurore", cursive;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 7px;
}
.ec-doodle--crosses::before { content: "× × ×"; }

.ec-logbook-note,
.ec-logbook-paper-scrap,
.ec-logbook-margin-note {
  position: relative;
}

.ec-logbook-margin-note {
  max-width: 330px;
  margin: 10px 0 34px auto;
  padding: 20px 22px 18px;
  border: 1px solid rgba(103, 74, 49, .10);
  background: rgba(255, 249, 239, .88);
  box-shadow: 0 10px 24px rgba(67,47,31,.06);
  color: #8e6244;
  font-family: "La Belle Aurore", cursive;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.25;
  transform: rotate(-1.4deg);
}

.ec-logbook-margin-note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 34px;
  width: 82px;
  height: 22px;
  background: rgba(219,197,157,.64);
  transform: rotate(4deg);
}

.ec-logbook-photo {
  max-width: 560px !important;
  margin: 34px auto 46px !important;
  padding: 11px 11px 31px !important;
  box-shadow: 0 14px 34px rgba(68,47,31,.10);
}

.ec-logbook-photo--wide {
  max-width: 620px !important;
}

.ec-logbook-photo--small {
  max-width: 430px !important;
}

.ec-logbook-photo img {
  max-height: 360px;
  object-fit: cover;
}

.ec-logbook-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 900px;
  margin: 22px auto 56px;
}

.ec-logbook-photo-pair figure {
  position: relative;
  margin: 0 !important;
  padding: 11px 11px 31px !important;
  background: #fffaf0;
  box-shadow: 0 14px 30px rgba(68,47,31,.10);
}

.ec-logbook-photo-pair figure:nth-child(1) { transform: rotate(-1deg); }
.ec-logbook-photo-pair figure:nth-child(2) { transform: rotate(.9deg); }

.ec-logbook-photo-pair figure::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 84px;
  height: 20px;
  background: rgba(218,194,153,.66);
  transform: translateX(-50%) rotate(-3deg);
}

.ec-logbook-photo-pair img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ec-logbook-photo-pair figcaption {
  margin: 8px 6px -18px !important;
  color: #8f6448;
  font-family: "La Belle Aurore", cursive;
  font-size: 18px;
  text-align: center;
}

.ec-logbook-opening,
.ec-logbook-spread,
.ec-logbook-origin,
.ec-logbook-next {
  gap: clamp(28px, 4vw, 64px);
}

.ec-logbook-opening p,
.ec-logbook-spread p,
.ec-logbook-origin p,
.ec-logbook-next p,
.ec-logbook-section p {
  max-width: 68ch;
}

.ec-logbook-dialogue {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .ec-journal-doodle--e,
  .ec-journal-doodle--f { display: none; }
  .ec-logbook-photo-pair { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 680px) {
  .ec-journal-notebook > .ec-journal-doodle { transform: scale(.92); opacity: .8; }
  .ec-journal-doodle--b,
  .ec-journal-doodle--c { display: none; }
  .ec-logbook-photo,
  .ec-logbook-photo--wide,
  .ec-logbook-photo--small {
    max-width: 100% !important;
  }
  .ec-logbook-photo img { max-height: none; }
  .ec-logbook-margin-note {
    margin: 8px 0 30px;
    max-width: none;
    transform: rotate(-.4deg);
  }
}


/* ========================================================================== 
   V4.1 | FINITIONS DU CARNET DE REFERENCE
   - 2 vraies photos seulement dans l'article
   - cartes problèmes comme petites fiches papier
   - 2 gribouillages botaniques plus visibles en marge
   ========================================================================== */

.ec-logbook-photo--botanical {
  margin-top: 18px !important;
  margin-bottom: 64px !important;
  transform: rotate(.75deg) !important;
}

.ec-logbook-problem-grid article {
  min-height: 0;
  border-radius: 1px;
  background:
    linear-gradient(rgba(255,250,241,.94), rgba(255,250,241,.94)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(120,88,56,.045) 26px 27px);
  box-shadow: 0 11px 24px rgba(67,47,31,.07);
  border: 1px solid rgba(106,77,50,.12);
}

.ec-logbook-problem-grid article:nth-child(1) { transform: rotate(-.55deg); }
.ec-logbook-problem-grid article:nth-child(2) { transform: rotate(.35deg); }
.ec-logbook-problem-grid article:nth-child(3) { transform: rotate(-.28deg); }
.ec-logbook-problem-grid article:nth-child(4) { transform: rotate(.48deg); }

.ec-logbook-problem-grid article:nth-child(1)::before,
.ec-logbook-problem-grid article:nth-child(3)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -8px;
  left: 50%;
  width: 66px;
  height: 18px;
  background: rgba(218,194,153,.58);
  transform: translateX(-50%) rotate(-3deg);
}

.ec-logbook-problem-grid article:nth-child(2)::before,
.ec-logbook-problem-grid article:nth-child(4)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 13px;
  right: -7px;
  width: 22px;
  height: 54px;
  border: 1.5px solid rgba(154,101,67,.38);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.ec-journal-botanical-doodle {
  position: absolute;
  z-index: 1;
  width: 90px;
  height: 110px;
  opacity: .62;
  pointer-events: none;
}

.ec-journal-botanical-doodle::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 10px;
  width: 1.5px;
  height: 88px;
  background: rgba(150,96,61,.46);
  transform: rotate(22deg);
  transform-origin: bottom center;
}

.ec-journal-botanical-doodle::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 58px;
  height: 70px;
  background:
    radial-gradient(ellipse at 28% 18%, transparent 0 42%, rgba(150,96,61,.48) 44% 47%, transparent 49%) 0 0 / 32px 30px,
    radial-gradient(ellipse at 72% 42%, transparent 0 42%, rgba(150,96,61,.42) 44% 47%, transparent 49%) 0 0 / 34px 34px;
  transform: rotate(-6deg);
}

.ec-journal-botanical-doodle--one { top: 28%; right: 18px; transform: rotate(9deg); }
.ec-journal-botanical-doodle--two { top: 68%; left: 20px; transform: rotate(-14deg) scale(.86); }

@media (max-width: 980px) {
  .ec-journal-botanical-doodle { opacity: .38; transform: scale(.74); }
}

@media (max-width: 680px) {
  .ec-journal-botanical-doodle { display: none; }
  .ec-logbook-problem-grid article { transform: none !important; }
}


/* ========================================================================== 
   V4.2 | MIMI & ZOUZOU CACHÉES DERRIÈRE LA PHOTO
   Le PNG est déjà présent dans assets/sisters-images/ sur le serveur.
   ========================================================================== */
.ec-logbook-photo--sisters-peek {
  overflow: visible;
  z-index: 4;
}

.ec-logbook-photo--sisters-peek::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 18px;
  right: -145px;
  width: 178px;
  height: 235px;
  background: url("../sisters-images/soeurs-eclorya-cachees-derriere-photo.png") center / contain no-repeat;
  filter: drop-shadow(0 10px 12px rgba(71, 45, 27, .08));
  pointer-events: none;
}

.ec-logbook-photo--sisters-peek > img,
.ec-logbook-photo--sisters-peek > figcaption,
.ec-logbook-photo--sisters-peek > .ec-logbook-tape {
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) {
  .ec-logbook-photo--sisters-peek::after {
    right: -74px;
    width: 145px;
    height: 192px;
  }
}

@media (max-width: 680px) {
  .ec-logbook-photo--sisters-peek::after {
    top: 22px;
    right: -28px;
    width: 102px;
    height: 138px;
  }
}
