/* Lot 5.1 — relevés PC 1536×1024, ressources originales copiées sans retouche. */
@font-face { font-family: Lora; src: url('fonts/Lora-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Lora; src: url('fonts/Lora-SemiBold.woff2') format('woff2'); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: Lora; src: url('fonts/Lora-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Lato; src: url('fonts/Lato-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --page: #F9F2E8; --paper: #FEFCF5; --accent: #72804E; --section: #EEEBDA;
  --date: #F2EEDE; --selected: #C8D1A9; --week: #F0EFDF; --line: #C3C9B1;
  --forest: #293820; --ink: #242620; --muted: #918d80; --border: #DED7C8;
}
.sr-only, #selected-period.is-default {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip-path: inset(50%); white-space: nowrap !important; border: 0 !important;
}
.sr-only:focus-within { position: static !important; width: auto !important; height: auto !important; clip-path: none; white-space: normal !important; }
html { background: var(--page); color: var(--ink); font-family: Lato, sans-serif; }
body { position: relative; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: url('textures/papier.webp') repeat; opacity: .1; mix-blend-mode: multiply;
}
img { flex-shrink: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
.app-header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--line); padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 1.5rem; color: var(--forest); text-decoration: none; min-width: 0; }
.brand h1 { font-family: Lora, serif; font-style: italic; font-weight: 400; font-size: 2.5rem; margin: 0; }
.brand>img { width: 3.5rem; height: 3.5rem; }
.header-access { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.header-access a, .header-access button { display: inline-flex; align-items: center; gap: .75rem; color: var(--forest); text-decoration: none; border: 0; background: none; }
.header-access [aria-disabled=true] { cursor: default; }
#notice:empty { display: none; }
#notice:not(:empty), #error:not([hidden]) { padding: .75rem; border: 1px solid var(--line); background: var(--paper); }
.general-create { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.general-create>summary { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: .6rem; background: var(--accent); color: white; font-family: Lora, serif; border: 1px solid #667543; border-radius: 1rem; list-style: none; }
.general-create>summary::-webkit-details-marker { display:none; }
.general-create>summary img { filter: brightness(0) invert(1); }
.general-create .task-form { margin-top: 1rem; }
.general-create section { border: 0; padding: 0; margin: 0; }
.workspace { margin-top: 2.5rem; }
#calendar { align-self: start; border: 1px solid var(--border); background: rgb(254 252 245 / .75); border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 3px 8px rgb(83 66 28 / .045); }
#calendar button { color: var(--forest); }
.calendar-navigation { justify-content: space-between; }
.calendar-navigation button { border: 0; background: none; padding: 0; }
.calendar-table .week-column { width: 13.3%; }
.calendar-table th:first-child { background: var(--week); }
.calendar-table thead th:first-child { border-radius: .75rem .75rem 0 0; }
.calendar-table tbody tr:last-child th { border-radius: 0 0 .75rem .75rem; }
.calendar-table button { color: #10120d; font-family: Lato,sans-serif; }
.calendar-table .adjacent { color: var(--muted); }
.calendar-table [aria-pressed=true], .calendar-table [aria-current=date] { background: var(--selected); border-radius: .85rem; font-weight: 400; text-decoration: none; outline: none; }
.calendar-table [aria-pressed=true]:not([aria-current=date]) { box-shadow: inset 0 0 0 1px var(--accent); }
.calendar-table :focus-visible { outline: 3px solid var(--forest); outline-offset: -3px; }
.day-indicator, .legend-dot { background: var(--accent); border: 1px solid #4d602f; border-radius: 50%; width: .65rem; height: .65rem; box-sizing: border-box; }
.day-indicator { position: absolute; left: calc(50% - .325rem); bottom: .2rem; font-size: 0; }
.calendar-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1.8rem; }
#calendar-today { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; border: 1px solid var(--border); border-radius: 1rem; background: #f7f5e9; box-shadow: 0 2px 4px rgb(83 66 28 / .05); }
.calendar-legend { display: inline-flex; align-items: center; gap: .8rem; margin: 0; font-size: 1rem; }
.context-add { margin-top: 1rem; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); background: var(--paper); border-radius: .6rem; }
.quick-filters { display: flex; flex-wrap: wrap; gap: .9rem; margin: 0; border-bottom: 2px solid var(--border); padding: .5rem 0 1.3rem; }
.quick-filters button { font-family: Lora,serif; border: 2px solid var(--border); border-radius: 1rem; background: rgb(254 252 245 / .6); color: var(--forest); }
.quick-filters [aria-pressed=true] { background: linear-gradient(120deg,#6b7948,#84905b); color: white; border-color: #64733e; font-weight: 400; text-decoration: none; }
#dated-section, #undated-section { border: 0; padding: 0 0 1.8rem; margin: 1.4rem 0 0; border-radius: 1.25rem; background: rgb(254 252 245 / .65); box-shadow: 0 4px 10px rgb(83 66 28 / .045); }
#dated-heading, #undated-heading { display: flex; align-items: center; gap: 1.25rem; font-family: Lora,serif; font-weight: 600; color: var(--forest); margin: 0; padding: .4rem 1.6rem; background: var(--section); border-radius: 1rem; line-height: 1.4; }
.task-list { margin: 0; }
.task-row { margin-inline: 1.6rem; gap: .75rem; border-color: var(--border); }
.task-row input[type=checkbox] { appearance: none; background: url('icons/a-faire.svg') left center / 38px 38px no-repeat; border: 0; border-radius: .25rem; cursor: pointer; }
.task-row input[type=checkbox]:checked { background-image: url('icons/effectuee.svg'); }
.task-menu summary { margin-inline:auto; display: flex; align-items: center; justify-content: center; padding: 0; }
#selected-period:not(.is-default) { color: var(--forest); margin: .75rem 0 -.5rem; font-size: 1rem; }
@media (min-width:64rem) {
  body { padding: 0 24px; }
  main { max-width: 1680px; }
  .app-header { height: 119px; box-sizing: border-box; padding: 0 24px 0 48px; flex-wrap: nowrap; }
  .brand { gap: 24px; }
  .brand>img { width: 84px; height: 84px; }
  .brand h1 { font-size: 60px; line-height: 1.2; white-space: nowrap; }
  .header-access { gap: 54px; flex-wrap: nowrap; }
  .header-access a, .header-access button { font-size: 24px; padding: 0; gap: 14px; white-space: nowrap; }
  .workspace { margin-top: 42px; grid-template-columns: minmax(0, .373fr) minmax(0, .627fr); gap: 30px; }
  #calendar { padding: 24px; }
  .calendar-navigation { height: 64px; margin-bottom: 12px; }
  #calendar-month { font-family: Lora,serif; font-weight: 600; font-size: 36px; line-height: 1.25; text-decoration: none; }
  #calendar-previous, #calendar-next { width: 48px; min-width: 48px; height: 64px; display: flex; align-items:center; justify-content:center; }
  .calendar-table { margin-left: -11px; width: calc(100% + 11px); }
  .calendar-table thead { height: 45px; }
  .calendar-table thead th { font-family: Lora,serif; font-weight: 600; font-size: 24px; color: var(--forest); }
  .calendar-table tbody tr { height: 61.5px; }
  .calendar-table button { font-size: 28px; min-height: 61.5px; padding: 0; }
  .calendar-table [data-date] { max-width: 60px; margin-inline: auto; }
  .calendar-table abbr { white-space: nowrap; }
  .calendar-footer { margin-top: 29px; min-height: 64px; }
  #calendar-today { font-size: 26px; min-height: 64px; padding: 9px 20px; }
  .calendar-legend { font-size: 20px; }
  .general-create { margin-top: 24px; padding-top: 24px; }
  .general-create>summary { min-height: 64px; font-size: 30px; box-sizing: border-box; background: linear-gradient(115deg,#879260,#72804E); }
  .quick-filters { flex-wrap: nowrap; gap: 14px; padding: 8px 0 21px; }
  .quick-filters button { font-size: 25px; min-height: 60px; white-space: nowrap; padding: 8px 20px; }
  #dated-section, #undated-section { margin-top: 23px; padding-bottom: 30px; }
  #dated-heading, #undated-heading { font-size: 32px; min-height: 54px; box-sizing: border-box; padding: 4px 27px; gap: 22px; }
  main[data-view=pending] .task-list { padding: 8px 0 0; }
  main[data-view=pending] .task-row { display: grid; grid-template-columns: 48px minmax(0,1fr) 154px 72px; align-items: center; column-gap: 12px; min-height: 65px; box-sizing: border-box; padding: 0; margin-inline: 27px 24px; }
  main[data-view=pending] .task-row>div { display: contents; }
  main[data-view=pending] .task-row input { grid-column: 1; grid-row: 1; }
  main[data-view=pending] .task-title { grid-column: 2; grid-row: 1; margin: 8px 0; font-size: 28px; line-height: 1.3; }
  main[data-view=pending] .task-dates { grid-column: 3; grid-row: 1; font-size: 26px; background: var(--date); color: #141610; text-align: center; border-radius: 12px; line-height: 40px; margin: 0; white-space: nowrap; }
  main[data-view=pending] .task-menu { grid-column: 4; grid-row: 1; }
  #undated-section .task-row { min-height: 61.5px; }
  #undated-section .task-title { grid-column: 2 / 4; }
}
@media (min-width:64rem) and (max-width:1399px) {
  .app-header { padding-inline: 12px; }
  .brand h1 { font-size: 48px; }
  .header-access { gap: 24px; }
  .header-access a, .header-access button { font-size:20px; gap:8px; }
  #calendar-month { font-size: 29px; }
  .quick-filters { gap: 8px; }
  .quick-filters button { font-size: 20px; padding-inline: 12px; }
  #calendar-today { font-size: 21px; padding-inline: 10px; }
  .calendar-legend { font-size: 16px; }
  main[data-view=pending] .task-row { grid-template-columns: 48px minmax(0,1fr) 132px 48px; margin-inline:20px; gap:8px; }
  main[data-view=pending] .task-title { font-size: 23px; }
  main[data-view=pending] .task-dates { font-size:22px; }
}
@media (max-width:63.999rem) {
  .brand { gap:.6rem; }
  .brand h1 { font-size: 2rem; }
  .brand>img { width:3rem; height:3rem; }
  .header-access { gap:.5rem; }
  .header-access a, .header-access button { padding:.3rem; gap:.35rem; }
  .header-access img { width:1.4rem; height:1.4rem; }
  .header-access [aria-disabled=true] { font-size: .875rem; }
  #calendar { padding:.75rem; }
  .calendar-navigation img { width:1.5rem; height:1.5rem; }
  .calendar-table thead abbr { font-size:.7rem; }
  .calendar-table thead th:first-child abbr { font-size:.65rem; }
  .calendar-footer { margin-top:1rem; }
  .task-title { min-width:0; }
  #dated-heading, #undated-heading { font-size:1.25rem; gap:.5rem; padding:.5rem; }
  #dated-heading img, #undated-heading img { width:1.5rem; height:1.5rem; }
  .task-row { margin-inline:.5rem; }
  .general-create>summary { font-size:1.25rem; }
  .quick-filters { gap:.5rem; }
}
/* Ajustements issus de la première capture réelle, à échelle 1:1. */
body::before { mix-blend-mode: soft-light; opacity: .14; }
#calendar .calendar-table button { color: #10120d; }
#calendar .calendar-table button.adjacent { color: var(--muted); }
@media (min-width:64rem) {
  .brand h1 { font-size: 57px; }
  #calendar-month { font-size: 34px; transform: translateX(6px); }
  #calendar-previous img { transform: translateX(8px); }
  .calendar-table [data-date], .calendar-table thead th:not(:first-child) { position:relative; left:7px; }
  .calendar-navigation { margin-bottom:13px; }
  .general-create { margin-top:25px; padding-top:23px; }
  .general-create>summary { line-height:1.2; }
  #calendar { padding-bottom:28px; }
  .quick-filters { gap:15px; }
  .quick-filters button:nth-child(1) { width:141px; }
  .quick-filters button:nth-child(2) { width:168px; }
  .quick-filters button:nth-child(3) { width:197px; }
  .quick-filters button:nth-child(4) { width:159px; }
  .quick-filters button:nth-child(5) { width:157px; }
}
@media (min-width:64rem) and (max-width:1399px) {
  .brand h1 { font-size:48px; }
  #calendar-month { font-size:29px; transform:none; }
  .quick-filters { gap:8px; }
  .quick-filters button:nth-child(n) { width:auto; flex:1; }
}
@media (min-width:64rem) {
  .header-access { gap:48px; }
  .header-access a, .header-access button { font-size:22px; }
  .general-create>summary { padding-left:48px; padding-right:10px; }
}
@media (min-width:1400px) {
  .calendar-footer { display:grid; grid-template-columns:214px minmax(0,1fr); column-gap:72px; }
  #calendar-today { width:214px; padding-inline:18px; }
  .calendar-legend { font-size:22px; }
}
@media (min-width:64rem) and (max-width:1399px) {
  .header-access { gap:24px; }
  .header-access a, .header-access button { font-size:20px; }
}
@media (min-width:64rem) and (max-width:1399px) {
  .calendar-table thead th { font-size:20px; }
}
@media (min-width:64rem) and (max-width:1199px) {
  .quick-filters { flex-wrap:wrap; }
  .quick-filters button:nth-child(n) { flex:0 1 auto; }
  .calendar-table thead th { font-size:18px; }
}

/* Lot 5.1 bis : ajustements optiques sans déplacement des composants. */
@font-face { font-family:Lora; src:url('fonts/Lora-MediumItalic.woff2') format('woff2'); font-weight:500; font-style:italic; font-display:swap; }
@font-face { font-family:Lora; src:url('fonts/Lora-SemiBoldItalic.woff2') format('woff2'); font-weight:600; font-style:italic; font-display:swap; }
@font-face { font-family:Lora; src:url('fonts/Lora-Medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:Lato; src:url('fonts/Lato-Bold.ttf') format('truetype'); font-weight:700; font-style:normal; font-display:swap; }
:root { --page-underlay:#FBF4EA; --panel-underlay:#FFFDF6; --task-ink:#10120F; }
html { background-color:var(--page-underlay); }
body::before {
  background-size:640px 640px;
  filter:contrast(3) brightness(1.8);
  mix-blend-mode:multiply;
  opacity:.09;
}
#calendar, #dated-section, #undated-section {
  position:relative;
  background:var(--panel-underlay);
}
#calendar::before, #dated-section::before, #undated-section::before {
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:url('textures/papier.webp') repeat; background-size:512px 512px;
  filter:contrast(3) brightness(1.8); mix-blend-mode:multiply; opacity:.045;
}
#calendar > *, #dated-section > *, #undated-section > * { position:relative; }
@media (min-width:64rem) {
  .brand h1 { font-weight:500; }
  .quick-filters button { font-family:Lato,sans-serif; font-size:26px; line-height:1.2; height:60px; }
  .calendar-table thead th { font-family:Lato,sans-serif; font-weight:400; }
  #calendar .calendar-table button { font-size:27px; }
  #calendar .calendar-table [aria-pressed=true], #calendar .calendar-table [aria-current=date] { font-weight:700; }
  #dated-heading, #undated-heading { font-size:30px; font-weight:500; }
  main[data-view=pending] .task-title { color:var(--task-ink); }
  main[data-view=pending] .task-dates { font-size:23px; }
  .general-create>summary { font-family:Lato,sans-serif; font-size:30px; padding-left:36px; }
}
@media (min-width:64rem) and (max-width:1399px) {
  .quick-filters button { font-size:20px; }
  main[data-view=pending] .task-dates { font-size:21px; }
}
