/* Drawing listings: SEO header, filters, action cards, long-form block. */

.ar-wrap{max-width:1180px;margin:0 auto;padding:26px 20px 20px}

/* ---------------- breadcrumb + header ---------------- */
.ar__crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 18px;font-size:.86rem}
.ar__crumbs a{color:var(--col-muted);text-decoration:none;font-weight:600}
.ar__crumbs a:hover{color:var(--col-accent-text);text-decoration:underline}
.ar__crumbs span[aria-hidden]{color:var(--col-border)}
.ar__crumbs [aria-current]{color:var(--col-heading);font-weight:700}

.ar__head{margin:0 0 22px}
.ar__head-text{max-width:760px}
.ar__title{font-size:clamp(1.8rem,4vw,2.7rem);margin:0 0 12px;line-height:1.12}
.ar__intro{margin:0 0 12px;font-size:1.02rem;line-height:1.75;color:var(--col-text);max-width:680px}
.ar__count{margin:0;color:var(--col-muted);font-size:.92rem;font-weight:600}

/* ---------------- filters ---------------- */
.ar__filters{
  background:var(--col-white);border:1px solid var(--col-border);
  border-radius:var(--radius-card);padding:13px 16px;margin:0 0 26px;
  /* Difficulty and Style share one row; they only stack on a phone. */
  display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;
  gap:10px 26px;box-shadow:var(--shadow-card)
}
.ar__row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
/* Not flex:1 - growing this row pushed Style to the far right. Both rows sit
   at their natural width so Style follows straight after the last chip. */
.ar__row--diff{flex:0 1 auto}
/* The select stretched to the row width and pushed its label onto a second
   line, so Style read as stacked while Difficulte read as inline. */
.ar__row--select{flex:0 0 auto;flex-wrap:nowrap;gap:12px}
.ar__row--select .ar__label{min-width:0;white-space:nowrap}
.ar__label{
  font-size:.72rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;
  color:var(--col-muted);min-width:74px
}
.a-chip__n{
  display:inline-block;margin-left:5px;font-size:.78rem;font-weight:800;
  color:var(--col-muted)
}
.a-chip.is-on .a-chip__n{color:rgba(255,255,255,.75)}
/* A level with nothing in it stays on screen so the scale reads whole. */
.a-chip.is-off{opacity:.42;cursor:default;background:var(--col-band)}

.ar__select{
  font:inherit;font-size:.92rem;font-weight:600;color:var(--col-text);
  background:var(--col-white);border:1px solid var(--col-border);
  border-radius:var(--radius-pill);padding:9px 34px 9px 16px;cursor:pointer;
  appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--col-heading) 50%),
                   linear-gradient(135deg,var(--col-heading) 50%,transparent 50%);
  background-position:calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size:5px 5px,5px 5px;background-repeat:no-repeat
}
.ar__select:focus{outline:2px solid var(--col-accent);outline-offset:1px}

/* ---------------- cards ---------------- */
.ar__grid{display:flex;flex-wrap:wrap;gap:18px;margin:0 0 30px}
.dc{
  flex:0 1 calc(25% - 14px);min-width:0;display:flex;flex-direction:column;gap:9px;
  background:var(--col-white);border:1px solid var(--col-border);
  border-radius:var(--radius-card);padding:12px;box-shadow:var(--shadow-card);
  transition:transform .22s var(--ease),box-shadow .22s var(--ease)
}
.dc:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.dc__media{display:block;aspect-ratio:3/4;overflow:hidden;border-radius:10px;background:var(--col-cream)}
.dc__media img{width:100%;height:100%;object-fit:cover;display:block}

.dc__tools{display:flex;gap:6px}
.dc__btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  flex:1 1 auto;min-width:0;padding:9px 10px;border-radius:var(--radius-pill);
  border:1px solid var(--col-border);background:var(--col-white);
  color:var(--col-heading);font:inherit;font-weight:700;font-size:.8rem;
  cursor:pointer;text-decoration:none;white-space:nowrap;
  transition:background .15s var(--ease),border-color .15s var(--ease)
}
.dc__ico{width:17px;height:17px;flex:0 0 auto;display:block}
.dc__btn:hover{background:var(--col-band);border-color:var(--col-heading)}
.dc__btn--main{background:var(--col-heading);border-color:var(--col-heading);color:#fff}
.dc__btn--main:hover{background:var(--col-ink);border-color:var(--col-ink);color:#fff}
.dc__btn--icon{flex:0 0 auto;width:38px;padding:9px 0}
.dc__btn[aria-pressed="true"]{background:var(--col-accent-solid);border-color:var(--col-accent-solid);color:#fff}

.dc__title{font-size:.98rem;margin:2px 0 0;line-height:1.28}
.dc__title a{color:var(--col-heading);text-decoration:none}
.dc__title a:hover{color:var(--col-accent-text)}
.dc__meta{margin:0;font-size:.82rem;color:var(--col-muted);font-weight:600}

/* ---------------- pagination ---------------- */
.ar__pager{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin:0 0 48px}
.ar__pager .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:42px;height:42px;padding:0 13px;border-radius:var(--radius-pill);
  background:var(--col-white);border:1px solid var(--col-border);
  color:var(--col-text);text-decoration:none;font-weight:700;font-size:.9rem
}
.ar__pager .page-numbers:hover{border-color:var(--col-heading)}
.ar__pager .page-numbers.current{background:var(--col-heading);border-color:var(--col-heading);color:#fff}

/* ---------------- long-form block ---------------- */
/* Every page ends with this block, so it owns the gap that separates it from
   whatever came before - the callers must not each invent their own. */
/* 800px put this prose at 83 characters a line; comfortable reading is 45-75
   and 80 is the usual upper bound. 720px lands at ~75. */
.ar__long{max-width:720px;margin:46px 0 20px}
.ar__block{margin:0 0 34px}
.ar__h2{font-size:clamp(1.3rem,2.8vw,1.75rem);margin:0 0 14px;line-height:1.2}
.ar__block p{margin:0 0 15px;line-height:1.8;font-size:1rem}

.ar__q{
  background:var(--col-white);border:1px solid var(--col-border);
  border-radius:14px;margin:0 0 9px;overflow:hidden
}
.ar__q summary{
  cursor:pointer;padding:15px 18px;font-weight:700;color:var(--col-heading);
  font-size:.98rem;list-style:none;display:flex;align-items:center;
  justify-content:space-between;gap:12px
}
.ar__q summary::-webkit-details-marker{display:none}
.ar__q summary::after{
  content:"";width:8px;height:8px;flex:0 0 auto;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);transition:transform .2s var(--ease)
}
.ar__q[open] summary::after{transform:rotate(225deg) translateY(-2px)}
.ar__q summary:hover{background:var(--col-band)}
.ar__q p{margin:0;padding:0 18px 16px;line-height:1.75;font-size:.95rem}

/* position + overflow so the pencil motif can run off the corner and be cut. */
.ar__book{
  position:relative;overflow:hidden;
  display:flex;align-items:center;gap:22px;flex-wrap:wrap;justify-content:space-between;
  background:var(--col-band);border:1px solid var(--col-border);
  border-radius:var(--radius-card);padding:22px 24px;margin:0 0 10px
}
.ar__book-title{margin:0 0 6px;font-family:var(--font-display);font-weight:700;
  font-size:1.15rem;color:var(--col-heading)}
.ar__book-text{margin:0;color:var(--col-text);font-size:.94rem;line-height:1.65;max-width:460px}
/* Mirrored into the corner past the button. Smaller than the banner's: this
   card is 157px tall and only its very corner is free. */
.c-pencils--book{right:-22px;bottom:-26px;width:104px;height:73px;transform:scaleX(-1)}

/* ---------------- responsive ---------------- */
@media (max-width:1000px){ .dc{flex:0 1 calc(33.333% - 12px)} }
@media (max-width:700px){
  .ar-wrap{padding:20px 16px 16px}
  .dc{flex:0 1 calc(50% - 9px);padding:10px;gap:8px}
  /* Icons only on a phone: three labelled pills do not fit a 163px card.
     Rounded squares rather than pills - a lone glyph reads better centred in
     a square than floating in a stadium shape. */
  .dc__btn-t{
    position:absolute;width:1px;height:1px;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap
  }
  .dc__btn{flex:1 1 0;padding:0;height:44px;border-radius:13px}
  .dc__ico{width:21px;height:21px}
  .ar__filters{flex-direction:column;align-items:stretch;gap:12px}
  .dc__title{font-size:.9rem}
  .dc__meta{font-size:.76rem}
  .ar__filters{padding:12px 13px}
  .ar__label{min-width:100%;margin-bottom:-3px}
  .ar__select{width:100%}
  .ar__long{margin-top:34px}
  /* The button goes full width when this stacks, so the corner the motif used
     is gone. Extra bottom padding opens a strip for it instead of dropping it. */
  .ar__book{padding:18px 18px 52px;gap:16px}
  .c-pencils--book{right:-20px;bottom:-24px;width:104px;height:73px}
  .ar__book .c-btn{width:100%;justify-content:center}
}

/* See the note in chrome.css. */
.dc__btn:hover,.dc__btn:focus,.dc__btn:active{color:var(--col-heading)}
.dc__btn--main:hover,.dc__btn--main:focus,.dc__btn--main:active{color:#fff}
.dc__btn[aria-pressed="true"]:hover,.dc__btn[aria-pressed="true"]:focus{color:#fff}
.ar__pager .page-numbers:hover,.ar__pager .page-numbers:focus{color:var(--col-heading)}
.ar__pager .page-numbers.current:hover{color:#fff}
/* Hello Elementor's reset also styles bare buttons:
   `button:hover{background-color:#c36;color:#fff}` at (0,1,1), which outranks
   every single-class rule here. Any <button> of ours whose hover changed only
   a transform inherited Hello's pink background AND white text - the Imprimer
   button measured 1.85:1, the carnet arrows 1.23:1. Each restates both. */
.dc__btn:hover,.dc__btn:focus{background:var(--col-band);color:var(--col-heading)}
.dc__btn--main:hover,.dc__btn--main:focus{background:var(--col-ink);color:#fff}
/* breadcrumb hover was 4.18:1 on the cream page */
.ar__crumbs a:hover,.ar__crumbs a:focus{color:var(--col-accent-deep)}

