/* Le coffre — refonte du 1er octobre 2026. */
/* Objets papier : couleurs fixes du document, du calendrier et du journal. */
:root {
  --papier: #fff;
  --encre-papier: #303044;
  --papier-lavande: #eeebf6;
  --papier-accent: #69598f;
  --papier-creme: #fbfaf7;
  --papier-segment: #f0eeed;
  --papier-detail-1: #1d1a2826;
  --papier-panneau: #f6f5f9;
  --papier-detail-2: #cfc8e0;
  --papier-detail-3: #b9b3c8;
  --papier-succes: #3e6a54;
  --papier-detail-4: #d7d3e0;
  --papier-detail-5: #e6e0f3;
  --papier-detail-6: #1d1a2866;
  --papier-detail-7: #b8d0c1;
  --papier-detail-8: #000000a6;
  --papier-detail-9: #e8f0eb;
  --papier-action: #ecebf0;
  --papier-action-encre: #4b4957;
  --papier-modifie: #f5ecda;
  --papier-modifie-encre: #815d24;
  --papier-lignes: #eceaf1;
  --papier-detail-10: #a49dbb;
  --papier-action-violet: #574a79;
}
:root[data-theme="dark"] { --papier: #fbfaf7; }

.cf-hero { position: relative; isolation: isolate; overflow-x: clip; padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.cf-hero::before { content: ''; position: absolute; z-index: -1; right: -10%; top: 12%; width: min(980px, 90vw); height: 80%; border-radius: 50%; pointer-events: none; filter: blur(10px); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); }
.cf-hero-grid { display: grid; gap: 40px clamp(32px, 5vw, 80px); align-items: center; grid-template-columns: minmax(0, 10fr) minmax(0, 12fr); }
.cf-hero-copy { display: grid; gap: 24px; justify-items: start; }
.cf-hero-copy .kicker { margin-bottom: -2px; }
.cf-hero h1 { font-size: clamp(42px, 5.4vw, 78px); line-height: 1; letter-spacing: -0.022em; }
.cf-module-note { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--text); background: transparent; border-radius: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); max-width: 32em; }
.cf-module-note svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.cf-module-note b { font-weight: 600; }
.cf-hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.cf-hero-copy > :nth-child(2) { animation-delay: .06s; }
.cf-hero-copy > :nth-child(3) { animation-delay: .12s; }
.cf-hero-copy > :nth-child(4) { animation-delay: .18s; }
.cf-hero-copy > :nth-child(5) { animation-delay: .24s; }
.cf-stage { position: relative; isolation: isolate; border-radius: 28px; animation: rise .9s cubic-bezier(.2,.7,.2,1) .2s both; padding: clamp(118px, 10.5vw, 150px) clamp(18px, 3.4vw, 48px) 20px; background: var(--stage); overflow: hidden; }
.cf-stage .visual-caption { margin-top: 14px; text-align: center; color: color-mix(in srgb, var(--muted) 35%, var(--text)); }
.docf { background: var(--papier); color: var(--encre-papier); border-radius: 16px; box-shadow: var(--shadow-paper); padding: 22px 22px 14px; font-size: 13.5px; line-height: 1.45; display: grid; gap: 16px; position: relative; z-index: 1; margin-top: 18px; }
.docf svg { flex: none; }
.docf-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--ink-line); }
.docf-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--papier-lavande); color: var(--papier-accent); display: grid; place-items: center; }
.docf-ic svg { width: 21px; height: 21px; }
.docf-title b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.1vw, 27px); line-height: 1.1; }
.docf-title small { display: block; color: var(--ink-muted); font-size: 12.5px; margin-top: 3px; }
.docf-brand { align-self: start; display: inline-flex; align-items: center; gap: 6px; background: var(--papier-accent); color: var(--papier); border-radius: 20px; padding: 4px 11px 4px 8px; font-size: 11.5px; font-weight: 500; }
.docf-brand svg { width: 11px; height: 14px; }
.docf-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.docf-label svg { width: 13px; height: 13px; }
.docf-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lk { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border: 1px solid var(--ink-line); border-radius: 11px; background: var(--papier-creme); min-width: 0; }
.lk img { width: 24px; height: 30px; object-fit: cover; border-radius: 2px; }
.lk-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--papier-segment); color: var(--papier-accent); display: grid; place-items: center; }
.lk-ic svg { width: 15px; height: 15px; }
.lk small { display: block; font-size: 10.5px; color: var(--ink-muted); line-height: 1.2; }
.lk b { display: block; font-weight: 500; font-size: 13px; line-height: 1.25; white-space: nowrap; }
.docf-conf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.docf-conf .docf-label { margin: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--papier-segment); font-size: 12.5px; }
.seg span { padding: 5px 12px; border-radius: 8px; white-space: nowrap; color: color-mix(in srgb, var(--ink-muted) 75%, var(--encre-papier)); }
.seg .on { background: var(--papier); color: var(--encre-papier); font-weight: 500; box-shadow: 0 1px 2px var(--papier-detail-1); }
.docf-due { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 12px 22px; align-items: center; padding: 16px 16px 12px; border-radius: 12px; background: var(--papier-panneau); }
.due-date b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; white-space: nowrap; }
.due-date .docf-label { margin-bottom: 4px; }
.due-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.due-steps::before { content: ''; position: absolute; left: 11px; right: calc(33.33% - 11px); top: 10px; height: 1.5px; background: var(--papier-detail-2); }
.due-steps li { position: relative; display: grid; gap: 1px; justify-items: start; }
.due-steps i { width: 22px; height: 22px; border-radius: 50%; background: var(--papier); border: 1.5px solid var(--papier-detail-3); display: grid; place-items: center; margin-bottom: 5px; position: relative; }
.due-steps .done i { background: var(--papier-succes); border-color: var(--papier-succes); color: var(--papier); }
.due-steps i svg { width: 13px; height: 13px; }
.due-steps b { font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.due-steps small { font-size: 11px; color: var(--ink-muted); }
.due-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 1px dashed var(--papier-detail-4); font-size: 12px; color: var(--ink-muted); }
.due-note svg { width: 14px; height: 14px; color: var(--papier-accent); }
.docf-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--ink-line); font-size: 12px; color: var(--ink-muted); }
.docf-foot span { display: inline-flex; align-items: center; gap: 6px; }
.docf-foot svg { width: 14px; height: 14px; color: var(--papier-accent); }
.cf-hero + .assurances .assurance { font-size: 15px; }
.cf-class-grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.cf-verso img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; border-radius: 6px; box-shadow: var(--shadow-art); }
.cf-class-copy { display: grid; padding-top: 4px; gap: 22px; }
.cf-origins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 0; }
.cf-origins li { display: grid; position: relative; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px 14px; align-items: center; padding: 22px 22px 24px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px; background: var(--surface); box-shadow: var(--shadow-soft); }
.cf-origins .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--wash); color: var(--accent); display: grid; place-items: center; grid-row: 1; grid-column: 1; }
.cf-origins .ic svg { width: 21px; height: 21px; }
.cf-origins .from { line-height: 1.35; grid-row: 1; grid-column: 2; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cf-origins b { font-family: var(--serif); font-weight: 400; grid-row: 2; grid-column: 1 / -1; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.1; padding-top: 6px; }
.cf-origins-note { max-width: 40em; }
.cf-types { margin-top: 10px; padding: 22px 24px 0; border-radius: 18px 18px 6px 6px; background: var(--stage); box-shadow: inset 0 -14px 0 color-mix(in srgb, var(--accent) 22%, var(--stage)); }
.cf-types h3 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.cf-chips { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 4px; padding-bottom: 14px; }
.cf-chips li { line-height: 1.35; border-radius: 10px 10px 2px 2px; border: 1px solid var(--line); border-bottom: 3px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--surface); padding: 9px 14px 8px; font-size: 14px; }
.cf-due-sec { background: var(--surface); border-block: 1px solid var(--line); }
.cf-due-grid { display: grid; gap: 48px clamp(32px, 5vw, 88px); align-items: center; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.cf-due-copy { display: grid; gap: 22px; }
.cf-due-copy .kicker { margin-bottom: -4px; }
.cf-points { display: grid; }
.cf-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
.cf-points li:last-child { border-bottom: 1px solid var(--line); }
.cf-points .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--wash); color: var(--accent); display: grid; place-items: center; }
.cf-points .tick svg { width: 14px; height: 14px; }
.cf-agenda-wrap { background: var(--stage); border-radius: 28px; padding: clamp(24px, 4vw, 52px) clamp(18px, 3.4vw, 48px) 18px; }
.cf-agenda-wrap .visual-caption { text-align: center; margin-top: 14px; color: color-mix(in srgb, var(--muted) 35%, var(--text)); }
.agenda { background: var(--papier); color: var(--encre-papier); border-radius: 18px; box-shadow: var(--shadow-paper); overflow: hidden; }
.ag-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--papier-accent); color: var(--papier); padding: 16px 22px 14px; }
.ag-head::before { content: ''; position: absolute; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--papier-creme); left: 12px; }
.ag-head::after { content: ''; position: absolute; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--papier-creme); right: 12px; }
.ag-head span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--papier-detail-5); }
.ag-head span svg { width: 16px; height: 16px; }
.ag-head b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.ag-rows { padding: 4px 20px; }
.ag-row { display: grid; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ink-line); grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; }
.ag-row:last-child { border-bottom: 0; }
.ag-day { display: grid; justify-items: center; line-height: 1; padding-right: 14px; border-right: 1px solid var(--ink-line); }
.ag-day b { font-family: var(--serif); font-weight: 400; line-height: .95; font-size: 32px; }
.ag-day small { font-size: 11.5px; color: var(--ink-muted); margin-top: 4px; }
.ag-doc { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; }
.ag-doc img { width: 30px; height: 38px; object-fit: cover; border-radius: 2px; box-shadow: 0 4px 10px -4px var(--papier-detail-6); }
.ag-doc b { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; }
.ag-doc small { display: block; font-size: 12px; color: var(--ink-muted); line-height: 1.35; }
.ag-rem { display: inline-flex; gap: 4px; }
.ag-rem i { font-style: normal; font-size: 11px; font-weight: 500; padding: 3px 7px; border-radius: 7px; border: 1px solid var(--papier-detail-4); color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ag-rem i.done { background: var(--st-green-bg); border-color: var(--st-green-bg); color: var(--st-green); }
.ag-foot { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 22px 16px; border-top: 1px solid var(--ink-line); background: var(--papier-panneau); font-size: 11.5px; color: var(--ink-muted); }
.ag-foot span { display: inline-flex; align-items: center; gap: 7px; }
.ag-foot i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--papier-detail-4); background: var(--papier); }
.ag-foot i.done { background: var(--st-green-bg); border-color: var(--papier-detail-7); }
.cf-journal { padding-block: var(--section); }
.cf-journal-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(32px, 5vw, 80px); align-items: center; }
.cf-journal-copy { display: grid; gap: 22px; }
.cf-journal-copy .kicker { margin-bottom: -4px; }
.cf-journal-copy h2 { color: var(--band-text); }
.cf-journal-visual .visual-caption { color: var(--band-muted); text-align: center; margin-top: 14px; }
.jr { background: var(--papier); color: var(--encre-papier); border-radius: 18px; box-shadow: 0 30px 70px -24px var(--papier-detail-8); overflow: hidden; font-size: 13px; }
.jr-head { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--ink-line); }
.jr-head b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.jr-head small { display: block; color: var(--ink-muted); font-size: 12.5px; }
.jr-table { padding: 0 22px; }
.jr-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
.jr-row:last-child { border-bottom: 0; }
.jr-th { padding: 10px 0 8px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.jr-when { font-weight: 500; font-variant-numeric: tabular-nums; }
.jr-when small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-muted); }
.jr-who small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-muted); }
.jr-act small { font-weight: 400; display: inline; font-size: 11px; color: inherit; opacity: 1; }
.jr-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.jr-who i { font-style: normal; width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--papier-lavande); color: var(--papier-accent); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.jr-who i.alt { background: var(--papier-detail-9); color: var(--papier-succes); }
.jr-who > span { line-height: 1.25; }
.jr-act { font-weight: 500; justify-self: start; display: inline-grid; padding: 3px 10px; border-radius: 20px; background: var(--papier-action); color: var(--papier-action-encre); font-size: 12.5px; line-height: 1.4; }
.jr-act.mod { background: var(--papier-modifie); color: var(--papier-modifie-encre); }
.jr-ip { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.jr-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 22px 14px; background: var(--papier-panneau); border-top: 1px solid var(--ink-line); font-size: 12px; color: var(--ink-muted); }
.jr-foot > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.jr-foot > span:first-child svg { width: 15px; height: 15px; color: var(--papier-accent); }
.cf-compose .compose-copy { align-self: start; }
.cf-around { width: 100%; display: grid; gap: 18px; }
.cf-around .mod-list li:last-child { grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.cf-sig { font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-left: 8px; vertical-align: 2px; }
.cf-compose .cmp-progress .track-bar i { width: 62.5%; }
.cf-compose .compose { align-self: center; }
.cf-compose .cmp-top small { display: block; line-height: 1.45; margin-top: 2px; }
.p-chemise { position: absolute; z-index: -1; left: clamp(12px, 3vw, 40px); right: clamp(12px, 3vw, 40px); top: clamp(54px, 5vw, 70px); bottom: 54px; border-radius: 4px 16px 16px 16px; background: color-mix(in srgb, var(--accent) 16%, var(--stage)); transform: rotate(-1.1deg); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 24%, transparent); }
.p-chemise-onglet { position: absolute; left: 0; bottom: 100%; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 18px 7px 14px; border-radius: 12px 12px 0 0; background: inherit; color: color-mix(in srgb, var(--accent) 80%, var(--text)); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-chemise-onglet svg { width: 16px; height: 16px; flex: none; }
.p-feuille { position: absolute; z-index: -1; right: clamp(24px, 6vw, 80px); top: clamp(78px, 7vw, 98px); width: 50%; height: 170px; background: var(--papier); border-radius: 3px; box-shadow: var(--shadow-paper); transform: rotate(2.6deg); padding: 18px 20px; display: grid; align-content: start; gap: 9px; }
.p-feuille-k { justify-self: end; font-family: var(--serif); font-size: 17px; color: var(--encre-papier); margin-bottom: 4px; }
.p-feuille i { display: block; height: 6px; border-radius: 3px; background: var(--papier-lignes); }
.p-feuille i:nth-of-type(2) { width: 82%; }
.p-feuille i:nth-of-type(4) { width: 64%; }
.visual-caption { margin-top: 18px; }
.assurances { background: var(--surface); }
.assurance { gap: 16px; }
.assurance svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--wash); }
.cf-verso { position: sticky; top: 108px; }
.cf-origins .to { display: none; }
.cf-origins li:nth-child(odd) { transform: rotate(-.5deg); }
.cf-origins li:nth-child(even) { transform: rotate(.4deg); }
.cf-chips li:nth-child(3n+1) { padding-top: 14px; }
.cf-chips li:nth-child(3n+2) { padding-top: 11px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.cf-chips li:nth-child(3n) { padding-top: 17px; }
.p-ag-corps { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.p-mois { padding: 18px 18px 16px 22px; border-right: 1px solid var(--ink-line); background: var(--papier-creme); }
.p-mois-j { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; margin-bottom: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--ink-muted); }
.p-mois-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.p-mois-g span { position: relative; display: grid; place-items: center; height: 26px; margin-bottom: 4px; border-radius: 50%; font-size: 12px; color: var(--encre-papier); font-variant-numeric: tabular-nums; }
.p-mois-g span:nth-child(7n) { color: var(--ink-muted); }
.p-mois-g span:nth-child(7n-1) { color: var(--ink-muted); }
.p-mois-g .echeance { width: 26px; justify-self: center; background: var(--papier-accent); color: var(--papier) !important; font-weight: 600; box-shadow: 0 0 0 3px var(--papier-lavande); }
.p-mois-g .rappel::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; border: 1px solid var(--papier-detail-10); background: var(--papier); }
.jr-row:nth-child(3) .jr-act { background: var(--papier-lavande); color: var(--papier-action-violet); }
.cf-autour { margin-top: clamp(56px, 7vw, 96px); }
.cf-around .group-title { padding-top: 22px; border-top: 2px solid var(--text); }
.cf-around .mod-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cf-around .mod-list li { grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.cf-around .mod-list b { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.15; }
.cf-around .mod-list span { margin-top: 6px; }

@media (max-width: 1180px) {
  .jr-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr) minmax(0, 1fr); }
  .jr-row .jr-ip { display: none; }
  .jr-th span:last-child { display: none; }
  .cf-origins { grid-template-columns: minmax(0, 1fr); }
  .p-ag-corps { grid-template-columns: minmax(0, 1fr); }
  .p-mois { border-right: 0; border-bottom: 1px solid var(--ink-line); display: grid; grid-template-columns: minmax(0, 360px); justify-content: center; }
}

@media (max-width: 1020px) {
  .cf-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-due-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-journal-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-stage { max-width: 680px; }
  .cf-class-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-verso { max-width: 560px; position: static; }
  .cf-verso img { aspect-ratio: 16 / 10; object-position: 50% 45%; }
  .cf-journal-copy { order: -1; }
  .jr-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); }
  .jr-row .jr-ip { display: block; }
  .jr-th span:last-child { display: block; }
  .cf-origins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-around .mod-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .cf-hero-copy .actions { width: 100%; }
  .cf-hero-copy .actions .btn { flex: 1 1 auto; }
  .cf-stage { border-radius: 22px; padding: 104px 10px 14px; }
  .docf { padding: 18px 16px 12px; gap: 14px; margin-top: 12px; }
  .docf-head { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .docf-ic { width: 38px; height: 38px; }
  .docf-brand { display: none; }
  .docf-due { grid-template-columns: minmax(0, 1fr); padding: 14px 12px 10px; }
  .seg span { padding: 5px 10px; }
  .cf-origins li { gap: 4px 14px; padding: 18px 18px 20px; grid-template-columns: 40px minmax(0, 1fr); }
  .cf-origins .ic { width: 40px; height: 40px; align-self: start; grid-row: 1; }
  .cf-types { padding: 18px 14px 0; }
  .cf-chips li { padding: 6px 12px; font-size: 13.5px; padding-inline: 11px; }
  .cf-verso img { border-radius: 18px; aspect-ratio: 4 / 3.4; }
  .cf-agenda-wrap { border-radius: 22px; padding: 22px 10px 14px; }
  .ag-rows { padding: 2px 14px; }
  .ag-head {
    padding: 22px 16px 16px; }
  .ag-row { gap: 8px 12px; grid-template-columns: 46px minmax(0, 1fr); }
  .ag-day { padding-right: 10px; grid-row: span 2; }
  .ag-day b { font-size: 30px; }
  .ag-rem { grid-column: 2; }
  .ag-foot { padding: 12px 16px 14px; }
  .jr-head { padding: 16px; }
  .jr-table { padding: 0 16px; }
  .jr-th { display: none !important; }
  .jr-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 0; }
  .jr-row .jr-who { grid-column: 1; grid-row: 1; }
  .jr-row .jr-act { grid-column: 2; grid-row: 1; text-align: right; }
  .jr-row .jr-when { grid-column: 1; grid-row: 2; display: flex; gap: 6px; align-items: baseline; font-weight: 400; color: var(--ink-muted); font-size: 12px; padding-left: 39px; }
  .jr-row .jr-when small { font-size: 12px; }
  .jr-row .jr-ip { grid-column: 2; grid-row: 2; display: block; text-align: right; font-size: 11.5px; }
  .jr-foot { padding: 12px 16px 14px; }
  .cf-compose .actions { width: 100%; }
  .cf-sig { display: inline-block; margin-left: 6px; }
  .p-chemise { left: 8px; right: 8px; top: 48px; bottom: 46px; }
  .p-chemise-onglet { font-size: 11px; padding: 8px 14px 6px 12px; }
  .p-feuille { right: 14px; top: 64px; width: 58%; height: 120px; padding: 12px 14px; }
  .assurance { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 14px; }
  .assurance:nth-child(odd) { padding-left: 0; }
  .assurance svg { width: 38px; height: 38px; padding: 9px; }
  .cf-origins { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cf-origins li:nth-child(n) { transform: none; }
  .p-mois { padding: 16px 14px; grid-template-columns: minmax(0, 1fr); }
  .jr-act { justify-self: end; }
}

@media (max-width: 400px) {
  .lk b { white-space: normal; }
  .seg span { padding: 5px 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-origins li:nth-child(n) { transform: none; }
}

.cf-compose .cmp-card.dim {
  opacity: 1;
  background: color-mix(in srgb, var(--surface) 90%, var(--stage));
}

.cf-verso .visual-caption {
  color: color-mix(in srgb, var(--muted) 35%, var(--text));
}

:root:not([data-theme="dark"]) .cf-hero-copy .lede {
  color: color-mix(in srgb, var(--muted) 70%, var(--text));
}

:root:not([data-theme="dark"]) .cf-origins-note {
  color: color-mix(in srgb, var(--muted) 70%, var(--text));
}

@media (min-width: 721px) and (max-width: 1020px) {
  .cta::before {
    background: linear-gradient(90deg, color-mix(in srgb, var(--band) 95%, transparent), color-mix(in srgb, var(--band) 90%, transparent));
  }
}
