@font-face {
  font-family: ClecodArchivo;
  src: url('../fonts/archivo.woff') format('woff');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Tout est limité au composant : aucune règle body, html ou bouton globale. */
.ccfd-root {
  /* Charte CLECOD : rouge de marque #e20100 (meta theme-color du site). */
  --ccfd-red: #e20100;
  --ccfd-red-deep: #b70100;
  --ccfd-ink: #20212b;
  --ccfd-line: #e9e9ed;
  --ccfd-card-width: 280px;
  --ccfd-card-width-desktop: 340px;
  --ccfd-darkness: 0.55;
  --ccfd-muted-opacity: 0.4;
  width: 100%;
  max-width: 1132px;
  margin: 0 auto;
  color: var(--ccfd-ink);
  background: #fff;
  font-family: ClecodArchivo, Arial, sans-serif;
  font-size: 14px;
  font-synthesis: none;
  text-align: left;
  container-type: inline-size;
  container-name: ccfd;
}
.ccfd-root *, .ccfd-root *::before, .ccfd-root *::after { box-sizing: border-box; }
.ccfd-root [hidden] { display: none !important; }
.ccfd-root button, .ccfd-root a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ccfd-root button { font: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; margin: 0; }
.ccfd-root a { text-decoration: none; color: inherit; }
.ccfd-root button:focus-visible, .ccfd-root a:focus-visible, .ccfd-root [tabindex]:focus-visible { outline: 3px solid var(--ccfd-red-deep, #b70100); outline-offset: 5px; }
.ccfd-root img { display: block; max-width: 100%; box-shadow: none; }
.ccfd-root svg { width: 22px; height: 22px; flex-shrink: 0; }
.ccfd-root .ccfd-eyebrow { margin: 0 0 9px; padding: 0; font: 650 9px/1.5 ClecodArchivo, Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; color: #666672; }
.ccfd-root .ccfd-journal-label { display: flex; align-items: center; gap: 8px; padding: 30px 0 10px; margin: 0; }
.ccfd-root .ccfd-journal-label > span { width: 6px; height: 6px; background: var(--ccfd-red); }
.ccfd-root .ccfd-editor-notice { margin: 12px; padding: 12px 16px; border: 1px solid #d8d8df; border-radius: 8px; background: #fafafa; font: 13px/1.6 Arial, sans-serif; }
.ccfd-root .ccfd-editor-notice summary { cursor: pointer; font-weight: 600; }
.ccfd-root .ccfd-empty { font: 13px/1.6 ClecodArchivo, Arial, sans-serif; color: #777780; padding: 16px 0; margin: 0; }
.ccfd-root .ccfd-effect-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 8px 16px; }
.ccfd-root .ccfd-effect-switch button { min-height: 44px; padding: 10px 17px; border: 1px solid #dedee5; border-radius: 8px; background: #fff; color: #6b6b76; font-size: 11px; font-weight: 550; box-shadow: none; }
.ccfd-root .ccfd-effect-switch button[aria-pressed="true"] { background: var(--ccfd-ink); border-color: var(--ccfd-ink); color: #fff; }

.ccfd-root .ccfd-fan-shell { display: none; position: relative; overflow: hidden; }
.ccfd-root[data-ccfd-ready="true"] .ccfd-fan-shell { display: block; }
.ccfd-root:not([data-ccfd-ready="true"]) .ccfd-effect-switch { display: none; }
.ccfd-root .ccfd-stage {
  --ccfd-w: var(--ccfd-card-width-desktop);
  --ccfd-h: calc(var(--ccfd-w) * 1.5);
  --ccfd-top: 24px;
  height: calc(var(--ccfd-h) * 1.32 + var(--ccfd-top));
  position: relative;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline-offset: -5px !important;
}
.ccfd-root .ccfd-stage.ccfd-dragging { cursor: grabbing; }
.ccfd-root .ccfd-deck { position: absolute; inset: 0; isolation: isolate; }
.ccfd-root button.ccfd-card {
  position: absolute;
  top: var(--ccfd-top);
  left: 50%;
  width: var(--ccfd-w);
  height: var(--ccfd-h);
  min-height: 0;
  border: 2px solid #fff;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  transform-origin: 50% 160%;
  transform: translate3d(-50%, 0, 0);
  box-shadow: 0 3px 7px #24242e10, 0 12px 28px #24242e14;
  background: #35343c;
  color: #fff;
  transition: none;
  will-change: transform;
  touch-action: pan-y;
}
.ccfd-root button.ccfd-card[aria-pressed="true"] { box-shadow: 0 7px 15px #24242e15, 0 22px 40px #24242e19; }
.ccfd-root .ccfd-card > img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; border-radius: 0; }
.ccfd-root .ccfd-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,#10111b2c 0%,transparent 26%,#12131d20 40%,#12131dbf 68%,#12131deb 100%); pointer-events: none; }
.ccfd-root .ccfd-category { position: absolute; top: 13px; left: 13px; z-index: 2; display: inline-block; max-width: calc(100% - 26px); border-radius: 4px; padding: 7px 10px; background: var(--ccfd-red); color: #fff; font-size: 11px; line-height: 1.2; font-weight: 600; box-shadow: 0 2px 8px #1b16211a; }
.ccfd-root .ccfd-card-copy { position: absolute; bottom: 20px; left: 17px; right: 17px; z-index: 3; color: #fff; font-size: 23px; line-height: 1.12; letter-spacing: -.035em; font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ccfd-root .ccfd-shade { position: absolute; inset: 0; z-index: 4; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
.ccfd-root .ccfd-controls { position: relative; z-index: 101; display: flex; align-items: center; flex-direction: column; margin: 0 auto 25px; }
.ccfd-root .ccfd-buttons { display: flex; align-items: flex-start; justify-content: center; gap: 10px; }
.ccfd-root button.ccfd-round { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: #f0f0f3; border: 1px solid #e3e3e8; color: var(--ccfd-ink); box-shadow: 0 1px 2px #18192304; transition: background .2s,opacity .2s; }
.ccfd-root .ccfd-round svg { width: 17px; height: 17px; }
.ccfd-root button.ccfd-reset { margin-top: 9px; }
.ccfd-root button.ccfd-round:hover:not(:disabled) { background: #e7e7ed; }
.ccfd-root button.ccfd-round:disabled { opacity: .3; cursor: default; }
.ccfd-root .ccfd-hint { font-size: 9px; line-height: 1.4; color: #93939e; margin: 15px 0 0; padding: 0; }

.ccfd-root .ccfd-publications { padding: 43px 0 42px; }
.ccfd-root .ccfd-posts-panel + .ccfd-posts-panel { margin-top: 30px; }
.ccfd-root[data-ccfd-ready="true"] .ccfd-posts-panel { margin-top: 0; }
.ccfd-root .ccfd-posts-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.ccfd-root .ccfd-posts-heading h3 { font: 600 30px/1.15 ClecodArchivo, Arial, sans-serif; letter-spacing: -.045em; margin: 0; padding: 0; color: var(--ccfd-ink); }
.ccfd-root .ccfd-posts-heading h3 > span { color: var(--ccfd-red); }
.ccfd-root .ccfd-post-count { font-size: 9px; color: #8d8d98; padding-bottom: 4px; white-space: nowrap; }
.ccfd-root .ccfd-post-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
.ccfd-root .ccfd-post { background: #fff; min-width: 0; margin: 0; padding: 0; border: 0; }
.ccfd-root .ccfd-post-link { display: block; width: 100%; text-align: left; padding: 0; color: var(--ccfd-ink); }
.ccfd-root .ccfd-post-image { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1.95; background: #eee; }
.ccfd-root .ccfd-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); border-radius: 0; }
.ccfd-root .ccfd-post-link:hover .ccfd-post-image img { transform: scale(1.045); }
.ccfd-root .ccfd-image-arrow { position: absolute; bottom: 10px; right: 10px; width: 29px; height: 29px; display: grid; place-items: center; background: #fffefbf0; color: var(--ccfd-ink); border-radius: 50%; font-size: 16px; }
.ccfd-root .ccfd-post-date { display: block; margin: 17px 0 9px; font-size: 9px; color: #8a8a94; }
.ccfd-root .ccfd-post-text h4 { font: 600 20px/1.25 ClecodArchivo, Arial, sans-serif; letter-spacing: -.035em; color: var(--ccfd-ink); margin: 0 0 9px; padding: 0; }
.ccfd-root .ccfd-post-text p { font-size: 11px; line-height: 1.65; color: #777780; margin: 0; }
.ccfd-root .ccfd-reading { display: flex; align-items: center; gap: 5px; color: #777780; font-size: 9px; margin-top: 13px; }
.ccfd-root .ccfd-reading svg { width: 11px; height: 11px; }
.ccfd-root .ccfd-post-link:hover h4 { color: var(--ccfd-red-deep, #b70100); }
.ccfd-root .ccfd-archive-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 11px; margin-top: 18px; color: var(--ccfd-red-deep, #b70100); text-decoration: underline; text-underline-offset: 4px; }
.ccfd-root .ccfd-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@container ccfd (max-width: 850px) {
  .ccfd-root .ccfd-stage { --ccfd-w: min(var(--ccfd-card-width-desktop),310px); }
}
@container ccfd (max-width: 600px) {
  .ccfd-root .ccfd-journal-label { padding: 23px 22px 12px; }
  .ccfd-root .ccfd-stage { --ccfd-w: min(var(--ccfd-card-width),calc(100cqi - 64px)); --ccfd-top: 18px; }
  .ccfd-root button.ccfd-card { border-radius: 16px; }
  .ccfd-root .ccfd-category { top: 11px; left: 11px; padding: 7px 9px; }
  .ccfd-root .ccfd-card-copy { left: 14px; right: 14px; bottom: 18px; font-size: 24px; }
  .ccfd-root .ccfd-controls { margin-bottom: 19px; }
  .ccfd-root .ccfd-buttons { gap: 9px; }
  .ccfd-root .ccfd-hint { margin-top: 13px; }
  .ccfd-root .ccfd-publications { padding: 31px 22px 28px; }
  .ccfd-root .ccfd-posts-heading { gap: 10px; margin-bottom: 8px; }
  .ccfd-root .ccfd-posts-heading .ccfd-eyebrow { font-size: 8px; line-height: 1.5; letter-spacing: .1em; margin-bottom: 8px; }
  .ccfd-root .ccfd-posts-heading h3 { font-size: 26px; line-height: 1.13; max-width: 250px; }
  .ccfd-root .ccfd-post-count { font-size: 8px; }
  .ccfd-root .ccfd-post-grid { grid-template-columns: 1fr; gap: 0; }
  .ccfd-root .ccfd-post { padding: 19px 0; border-bottom: 1px solid var(--ccfd-line); }
  .ccfd-root .ccfd-post:last-child { border: 0; padding-bottom: 6px; }
  .ccfd-root .ccfd-post-link { display: grid; grid-template-columns: 102px minmax(0,1fr); gap: 15px; }
  .ccfd-root .ccfd-post-image { aspect-ratio: auto; height: 139px; border-radius: 9px; }
  .ccfd-root .ccfd-image-arrow { width: 22px; height: 22px; font-size: 13px; right: 6px; bottom: 6px; }
  .ccfd-root .ccfd-post-date { font-size: 8px; margin: 2px 0 8px; }
  .ccfd-root .ccfd-post-text h4 { font-size: 18px; line-height: 1.18; margin-bottom: 7px; }
  .ccfd-root .ccfd-post-text p { font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ccfd-root .ccfd-reading { font-size: 9px; margin-top: 8px; gap: 4px; }
  .ccfd-root .ccfd-reading svg { width: 9px; height: 9px; }
}
@container ccfd (max-width: 360px) {
  .ccfd-root .ccfd-card-copy { font-size: 22px; }
  .ccfd-root .ccfd-post-link { grid-template-columns: 88px minmax(0,1fr); gap: 12px; }
  .ccfd-root .ccfd-post-text h4 { font-size: 17px; }
  .ccfd-root .ccfd-post-count { display: none; }
}
@media (min-width: 768px) { .ccfd-root[data-ccfd-mobile-only="true"] { display: none; } }

/* Panneaux rendus par le thème (posts_style="theme"), hors de .ccfd-root :
   aucun style du composant ne s'y applique, le design reste celui du thème. */
.ccfd-theme-panels { margin-top: 6px; }
.ccfd-theme-panels [data-ccfd-panel][hidden] { display: none !important; }
@media (min-width: 768px) { .ccfd-theme-panels[data-ccfd-mobile-only="true"] { display: none; } }

/* Sur mobile, l'éventail monte juste sous le fil d'ariane : le padding-top
   de contenu Qode (45px, appliqué jusqu'à 1200px) est annulé seulement
   sous 768px et seulement sur les pages qui contiennent l'éventail. */
@media (max-width: 767.98px) {
  #qodef-page-inner:has(.ccfd-root[data-ccfd]) {
    padding-top: 0;
  }
  .ccfd-root[data-ccfd] {
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ccfd-root *, .ccfd-root *::before, .ccfd-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
