/*
Theme Name: Pierre-Henri Delaval
Theme URI: https://www.ph-delaval.com/
Author: Pierre-Henri Delaval
Description: Thème « L'agenda de la semaine » pour ph-delaval.com : la semaine du manager ouverte sur le bureau, une encre marine sur pages lignées, le ruban orange du logo. Page d'accueil, pages, articles, fiches formations, blog et formulaire de contact.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: phdelaval
*/


@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  /* couverture toilée */
  --cloth: #022e51;
  --cloth-deep: #011f38;
  --cloth-ink: #dbe4ec;
  /* page imprimée en une encre */
  --paper: #f6f7f4;
  --ink: #0d3857;
  --ink-soft: #425a6e;
  --rule: #cdd8e2;
  --tint: #eaf0f4;
  /* signet ruban : la seule autre couleur */
  --verm: #c75318;
  --verm-deep: #a3420f;
  --verm-btn: #b84a13; /* orange du logo, assombri d'un cran pour le texte blanc (5:1) */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --margin: clamp(12px, 2.2vw, 36px);
  --bar-h: 3.5rem;
  --line: 1.9rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--cloth);
  font-variant-numeric: tabular-nums;
  caret-color: var(--verm);
  accent-color: var(--ink);
  scrollbar-color: var(--ink) var(--cloth-deep);
}
::selection { background: var(--ink); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
abbr[title] { text-decoration: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--verm); outline-offset: 3px; border-radius: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: var(--margin); top: -4rem; z-index: 10;
  background: var(--paper); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700;
}
.skip:focus { top: 0.5rem; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: inherit; font-weight: 700; font-stretch: 105%;
  font-size: 1rem; line-height: 1.2;
  color: #fff; background: var(--verm-btn);
  border: 0; border-radius: 2px;
  padding: 0.8rem 1.15rem;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:hover { background: var(--verm-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--ink-soft); cursor: progress; }
.btn--big { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); padding: 0.95rem 1.4rem; }

/* ---------- barre de couverture ---------- */
.cover-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--bar-h);
  padding: 0.5rem var(--margin);
  color: var(--cloth-ink);
}
.brand { display: flex; align-items: baseline; gap: 0.75rem; text-decoration: none; }
.brand-name { font-weight: 800; font-stretch: 112%; font-size: 1.125rem; letter-spacing: -0.01em; color: #fff; }
.brand-trade { font-size: 0.875rem; }
.cover-nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.75rem); font-size: 0.9375rem; }
.cover-nav a { text-decoration: none; padding: 0.35rem 0; }
.cover-nav a:hover { text-decoration: underline; }
.cover-nav .nav-cta { border: 1px solid currentColor; padding: 0.35rem 0.8rem; border-radius: 2px; }
.menu-toggle {
  display: none;
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--cloth-ink);
  background: none; border: 1px solid currentColor; border-radius: 2px; padding: 0.35rem 0.8rem; cursor: pointer;
}
.cover-nav .nav-cta:hover { background: var(--paper); color: var(--ink); text-decoration: none; }

/* ---------- la semaine ---------- */
.agenda { padding: 0 var(--margin) var(--margin); }

.spread {
  --gutter-x: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "head-l head-r"
    "lun jeu"
    "mar ven"
    "mer we";
  min-height: calc(100svh - var(--bar-h) - var(--margin));
  background:
    linear-gradient(90deg,
      transparent calc(var(--gutter-x) - 28px),
      rgb(1 31 56 / 0.10) calc(var(--gutter-x) - 1px),
      rgb(1 31 56 / 0.35) var(--gutter-x),
      rgb(1 31 56 / 0.08) calc(var(--gutter-x) + 1px),
      transparent calc(var(--gutter-x) + 22px)),
    var(--paper);
  box-shadow: 0 1px 0 var(--cloth-deep), 0 18px 40px -24px rgb(0 0 0 / 0.55);
  border-radius: 3px;
}

.page-head { padding: clamp(1rem, 2vw, 1.75rem) clamp(1.1rem, 2.4vw, 2.5rem) 1rem; border-bottom: 3px solid var(--ink); }
.page-head--left { grid-area: head-l; }
.page-head--right { grid-area: head-r; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; text-align: right; gap: 0.35rem; }
.page-head h1 {
  font-size: clamp(2rem, 1.2rem + 2.9vw, 4.25rem);
  font-weight: 800; font-stretch: 118%;
  line-height: 0.95; letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-intro { font-size: 0.9375rem; max-width: 34em; margin-top: 0.6rem; color: var(--ink-soft); }
.page-head--right .page-intro { margin-top: 0; }
.week-label { font-weight: 700; font-stretch: 90%; font-size: 1rem; letter-spacing: 0.01em; }

.day {
  position: relative;
  display: grid;
  grid-template-columns: clamp(3.6rem, 5vw, 5rem) minmax(0, 1fr) 1.5rem;
  gap: 0 clamp(0.75rem, 1.4vw, 1.4rem);
  padding: 0.9rem clamp(1.1rem, 2.4vw, 2.5rem) 0.9rem clamp(1.1rem, 2.4vw, 2.5rem);
  border-top: 1px solid var(--ink);
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px) var(--line));
  background-position: 0 0.9rem;
  transition: background-color 200ms var(--ease-out);
}
.day[data-weekday="1"], .day[data-weekday="4"] { border-top: 0; }
.day[data-weekday="1"] { grid-area: lun; } .day[data-weekday="2"] { grid-area: mar; } .day[data-weekday="3"] { grid-area: mer; }
.day[data-weekday="4"] { grid-area: jeu; } .day[data-weekday="5"] { grid-area: ven; } .day[data-weekday="6"] { grid-area: we; }

.day-date { display: flex; flex-direction: column; line-height: 1; border-right: 1px solid var(--ink); padding-right: 0.6rem; }
.dname { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.dnum { font-size: clamp(2.4rem, 1.6rem + 2vw, 3.9rem); font-weight: 800; font-stretch: 62%; letter-spacing: -0.02em; margin-top: 0.2rem; }
.dname--sun { margin-top: 0.6rem; }
.dnum--sun { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); }

.day-body { min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.situation {
  font-size: clamp(1.3rem, 0.9rem + 1.15vw, 2.1rem);
  font-weight: 700; font-stretch: 100%;
  line-height: 1.08; letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 22ch;
}
.situation:focus { outline: none; }
.day[data-today] .situation { font-size: clamp(1.5rem, 1rem + 1.45vw, 2.55rem); }
.day-link { text-decoration: none; }
.day-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.day-link:focus-visible { outline: none; }
.day:has(.day-link:focus-visible) { outline: 2px solid var(--verm); outline-offset: -4px; }
.day:not(.day--free):hover { background-color: var(--tint); }
.day:hover .day-link { text-decoration: underline; text-decoration-thickness: 2px; }
.offer { font-size: 0.9375rem; color: var(--ink-soft); font-weight: 500; }
.offer::before { content: ""; display: inline-block; width: 1.1em; height: 1px; background: currentColor; vertical-align: 0.3em; margin-right: 0.5em; }

.hours { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.6875rem; font-stretch: 75%; color: var(--ink-soft); text-align: right; padding: 0.15rem 0; }

.answer { display: none; }
html:not(.js) .day:target .answer { display: block; }

.day--free .day-body { justify-content: space-between; gap: 1rem; }
.situation--free { max-width: 18ch; }
.free-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; position: relative; z-index: 2; }
.free-direct { font-size: 0.9375rem; }
.free-direct a { font-weight: 600; white-space: nowrap; }

/* le ruban et la ligne « maintenant » */
.ribbon {
  position: absolute; z-index: 3; top: -6px;
  width: 20px; height: 0;
  background: var(--verm);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 12px), 0 100%);
  box-shadow: 0 0 0 transparent;
  pointer-events: none;
  opacity: 0;
  transition: height 900ms var(--ease-out), left 500ms var(--ease-out), opacity 200ms linear;
}
.ribbon.is-set { opacity: 1; }
.now {
  position: absolute; z-index: 2; height: 0;
  border-top: 1.5px solid var(--verm);
  pointer-events: none; display: none;
}
.now.is-set { display: block; }
.spread.is-focused .now span { display: none; }
.now span {
  position: absolute; left: calc(100% + 4px); top: 0; transform: translateY(-50%);
  font-size: 0.625rem; font-weight: 700; font-stretch: 75%; letter-spacing: 0.02em;
  color: var(--verm-deep); white-space: nowrap;
}
.now::before { content: ""; position: absolute; left: -4px; top: -4.75px; width: 8px; height: 8px; border-radius: 50%; background: var(--verm); }

/* ---------- jour ouvert : il prend la page ---------- */
.day.is-active .answer { display: block; }
.answer > p + p { margin-top: 1rem; }
.answer { max-width: 40em; margin-top: 0.9rem; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.55; position: relative; z-index: 2; }
.keep { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 0.75rem 0; font-weight: 600; }
.keep span { font-weight: 500; color: var(--ink-soft); margin-right: 0.3em; }
.answer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.close { font-size: 0.9375rem; font-weight: 600; }
.close { display: inline-flex; align-items: center; gap: 0.45em; }
.close::before {
  content: ""; width: 1.1em; height: 0.75em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M21 7H2M7.5 1.5 2 7l5.5 5.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M21 7H2M7.5 1.5 2 7l5.5 5.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.day.is-active { background-color: var(--paper); }
.day.is-active .day-link::after { display: none; }
.day.is-active .day-link { cursor: default; }
.day.is-active:hover .day-link { text-decoration: none; }

@media (min-width: 1000px) {
  .spread.is-focused {
    --gutter-x: 34%;
    grid-template-columns: 34% 66%;
    grid-template-rows: auto repeat(5, auto) 1fr;
    grid-template-areas: none;
  }
  .spread.is-focused .page-head--left { grid-column: 1; grid-row: 1; }
  .spread.is-focused .page-head--left h1 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); }
  .spread.is-focused .page-head--left .page-intro { display: none; }
  .spread.is-focused .page-head--right { display: none; }
  .spread.is-focused .day { grid-area: auto; grid-column: 1; padding-block: 0.7rem; border-top: 1px solid var(--ink); }
  .spread.is-focused .day:not(.is-active) .situation { font-size: 1.0625rem; max-width: none; }
  .spread.is-focused .day:not(.is-active) .dnum { font-size: 1.9rem; }
  .spread.is-focused .day:not(.is-active) .dname--sun,
  .spread.is-focused .day:not(.is-active) .dnum--sun,
  .spread.is-focused .day:not(.is-active) .hours,
  .spread.is-focused .day:not(.is-active) .free-direct { display: none; }
  .spread.is-focused .day:not(.is-active) .offer { font-size: 0.8125rem; }
  .spread.is-focused .day--free:not(.is-active) .btn--big { font-size: 0.9375rem; padding: 0.6rem 0.9rem; }
  .spread.is-focused .day.is-active {
    grid-column: 2; grid-row: 1 / 8;
    border-top: 0;
    padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4.5rem);
    grid-template-columns: clamp(5rem, 8vw, 8rem) minmax(0, 1fr) 1.5rem;
  }
  .spread.is-focused .day.is-active .situation { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 4.25rem); max-width: 16ch; line-height: 1; letter-spacing: -0.03em; font-stretch: 108%; }
  .spread.is-focused .day.is-active .dnum { font-size: clamp(4rem, 2rem + 4.5vw, 7rem); }
  .spread.is-focused .day.is-active .offer { font-size: 1.0625rem; }
}

/* transitions de vue : le jour grandit */
::view-transition-group(*) { animation-duration: 520ms; animation-timing-function: cubic-bezier(0.2, 0.9, 0.2, 1); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; object-position: left top; }
#lundi { view-transition-name: day-lundi; } #mardi { view-transition-name: day-mardi; } #mercredi { view-transition-name: day-mercredi; }
#jeudi { view-transition-name: day-jeudi; } #vendredi { view-transition-name: day-vendredi; } #week-end { view-transition-name: day-we; }
.page-head--left { view-transition-name: head-l; }

/* ---------- pages suivantes ---------- */
.sheet { padding: 0 var(--margin) var(--margin); }
.sheet-inner {
  --mcol: clamp(2.75rem, 6vw, 6.5rem);
  --mgap: clamp(1rem, 2.2vw, 2.25rem);
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent calc(var(--mcol) - 1px), var(--ink) calc(var(--mcol) - 1px), var(--ink) var(--mcol), transparent var(--mcol)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), #e0e7ed calc(var(--line) - 1px) var(--line));
  border-radius: 3px;
  padding: clamp(1.5rem, 3.5vw, 3.5rem) clamp(1.1rem, 4vw, 4.5rem) clamp(2rem, 4.5vw, 4.5rem) calc(var(--mcol) + var(--mgap));
  box-shadow: 0 1px 0 var(--cloth-deep);
}
.sheet-title {
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3.25rem);
  font-weight: 800; font-stretch: 115%;
  line-height: 1; letter-spacing: -0.03em;
  padding-bottom: 0.9rem; margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
  border-bottom: 3px solid var(--ink);
  text-wrap: balance;
}
.sheet h3 { font-size: 1.1875rem; font-weight: 700; font-stretch: 105%; line-height: 1.2; letter-spacing: -0.01em; }

/* comment ça se passe : la colonne de marge numérotée */
.steps { counter-reset: step; border-top: 1px solid var(--ink); }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr); gap: 0.4rem clamp(1.5rem, 4vw, 4rem);
  padding: 1.1rem 0 1.25rem; border-bottom: 1px solid var(--ink);
}
.steps li::before {
  content: counter(step);
  position: absolute; top: 0.85rem; left: calc(-1 * (var(--mcol) + var(--mgap))); width: var(--mcol);
  text-align: center;
  font-size: clamp(2.2rem, 1.5rem + 2vw, 3.6rem); font-weight: 800; font-stretch: 62%; line-height: 1;
}
.steps h3 { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem); }
.steps p { color: var(--ink-soft); max-width: 40em; font-size: 1.0625rem; }
.motto {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 1.25rem; border-top: 1px solid var(--ink);
}
.motto p {
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.75rem);
  font-weight: 600; font-stretch: 110%; font-style: italic;
  line-height: 1.12; letter-spacing: -0.02em; max-width: 26ch; text-wrap: balance;
}

/* répertoire : index alphabétique */
.rep-list { border-top: 1px solid var(--ink); }
.rep-list li {
  position: relative; scroll-margin-top: 1.5rem;
  display: grid; grid-template-columns: minmax(0, 1.1fr) 6.5rem minmax(0, 1.6fr); gap: 0.3rem clamp(1rem, 2.5vw, 2.5rem);
  align-items: baseline;
  padding: 0.85rem 0; border-bottom: 1px solid var(--rule);
}
.rep-letter {
  position: absolute; top: 0.55rem; left: calc(-1 * (var(--mcol) + var(--mgap))); width: var(--mcol);
  text-align: center; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); font-weight: 800; font-stretch: 62%; line-height: 1;
}
.rep-title { font-size: 1.1875rem !important; }
.rep-title a { text-decoration: none; }
.rep-title a:hover { text-decoration: underline; }
.owner-more { margin-top: 1.25rem; font-weight: 700; }
.rep-kind { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.rep-desc { color: var(--ink-soft); font-size: 0.9875rem; }
.thumb-index {
  position: absolute; top: clamp(1.5rem, 3.5vw, 3.5rem); right: 0; transform: translateX(100%);
  display: flex; flex-direction: column;
}
.thumb-index a, .thumb-index span {
  display: grid; place-items: center; width: 1.5rem; height: 1.45rem;
  font-size: 0.6875rem; font-weight: 700; text-decoration: none;
  background: var(--paper); border-radius: 0 3px 3px 0;
  border-bottom: 1px solid var(--rule);
}
.thumb-index span { color: var(--ink-soft); font-weight: 500; }
.thumb-index a { background: var(--ink); color: var(--paper); border-bottom-color: var(--cloth-deep); }
.thumb-index a:hover { background: var(--verm-deep); }
.rep-foot { margin-top: 1.75rem; font-size: 0.9375rem; color: var(--ink-soft); }
.rep-foot a { color: var(--ink); font-weight: 600; }

/* cet agenda appartient à */
.owner-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.75rem, 5vw, 5rem); align-items: start; }
.owner-photo { position: relative; padding: 10px; background: #fff; box-shadow: 0 1px 2px rgb(1 31 56 / 0.18), 0 12px 28px -18px rgb(1 31 56 / 0.45); transform: rotate(-1.2deg); max-width: 34rem; }
.owner-photo img { width: 100%; aspect-ratio: 960 / 1160; object-fit: cover; }
/* coins photo */
.owner-photo::before, .owner-photo::after {
  content: ""; position: absolute; width: 44px; height: 44px; background: var(--ink);
}
.owner-photo::before { top: -6px; left: -6px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.owner-photo::after { bottom: -6px; right: -6px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.owner-fields > div {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--rule);
}
.owner-fields dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--ink-soft); padding-top: 0.3rem; }
.owner-fields dd { max-width: 40em; }
.owner-name { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 800; font-stretch: 110%; line-height: 1.05; letter-spacing: -0.02em; }
.certs li { padding-left: 1.1rem; position: relative; }
.certs li + li { margin-top: 0.3rem; }
.certs li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.55rem; height: 1px; background: currentColor; }
.owner-lost { margin-top: 1.5rem; font-style: italic; color: var(--ink-soft); }
.owner-lost a { font-style: normal; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* témoignages */
.quote-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; }
.quote blockquote p { font-size: 1.25rem; font-style: italic; line-height: 1.4; }
.quote figcaption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-soft); }

/* clients */
.logo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.logo-grid li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: clamp(0.75rem, 1.6vw, 1.5rem); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.logo-grid img { max-height: 72px; width: auto; max-width: 100%; object-fit: contain; }

/* blog */
.posts li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); column-gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.posts time { grid-row: span 2; font-weight: 700; font-stretch: 75%; font-size: 1.25rem; padding-top: 0.1rem; }
.posts a { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; line-height: 1.2; text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts p { color: var(--ink-soft); margin-top: 0.3rem; max-width: 40em; }

/* contact : la page du week-end */
.contact-date {
  position: absolute; top: clamp(1.5rem, 3.5vw, 3.5rem); left: 0; width: var(--mcol);
  display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.contact-date .dnum { font-size: clamp(2rem, 1.4rem + 2vw, 3.6rem); }
.contact-date .dnum--sun { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem); }
/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.contact-lede { font-size: 1.125rem; max-width: 30em; margin-bottom: 1.5rem; }
.contact-lines { margin-top: 2rem; }
.contact-lines > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.contact-lines dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--ink-soft); padding-top: 0.25rem; }
.contact-lines a { font-weight: 600; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; padding-top: 0.4rem; }
.form-title { font-weight: 700; font-size: 1.1875rem; }
.field label { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  display: block; width: 100%;
  font: inherit; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 0.45rem 0;
}
.field textarea {
  resize: vertical; line-height: var(--line); padding: 0;
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px) var(--line));
  background-attachment: local;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--verm); margin-bottom: -1px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); }
.field [aria-invalid="true"] { border-bottom-color: var(--verm); }
.field-error { margin-top: 0.35rem; font-size: 0.875rem; font-weight: 600; color: var(--verm-deep); }
.hp { position: absolute; left: -9999px; }
.contact-form .btn { align-self: flex-start; margin-top: 0.4rem; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.is-ok { color: var(--ink); }
.form-status.is-error { color: var(--verm-deep); }

/* ---------- sous-pages : articles, pages, listes ---------- */
.cover-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.subpage main { padding-top: 0; }
.subpage .sheet:first-child .sheet-inner { min-height: 40vh; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 0.55em; color: var(--rule); }
.crumbs li[aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* la date d'un article vit dans la colonne de marge, comme dans l'agenda */
.margin-date {
  position: absolute; top: clamp(1.5rem, 3.5vw, 3.5rem); left: 0; width: var(--mcol);
  display: flex; flex-direction: column; align-items: center; line-height: 1; text-align: center;
}
.margin-date .dnum { font-size: clamp(1.9rem, 1.3rem + 2vw, 3.4rem); margin: 0.15rem 0; }
.margin-date .dname { font-size: 0.75rem; letter-spacing: 0.08em; }
.dyear { font-size: 0.75rem; font-weight: 700; font-stretch: 75%; color: var(--ink-soft); }

.entry .sheet-title { max-width: 24ch; }
.entry-meta { margin: -1.25rem 0 clamp(1.5rem, 3vw, 2.5rem); font-size: 0.9375rem; color: var(--ink-soft); }
.entry-meta a { color: var(--ink); font-weight: 600; }

/* texte courant */
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 800; font-stretch: 108%; line-height: 1.15; letter-spacing: -0.02em; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; margin-top: 1.6em; }
.prose h4 { font-size: 1.0625rem; font-weight: 700; margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; padding-left: 1.2em; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.2em; top: 0.8em; width: 0.6em; height: 1px; background: currentColor; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 0.9em 0; font-size: 1.2rem; font-style: italic; font-weight: 500; line-height: 1.4; }
.prose blockquote > * + * { margin-top: 0.6em; }
.prose hr { border: 0; border-top: 1px solid var(--ink); margin: 2em 0; }
.prose a:not(.btn) { color: var(--ink); font-weight: 600; }
.prose figure { margin: 1.5em 0; }
.prose img { background: #fff; padding: 8px; box-shadow: 0 1px 2px rgb(1 31 56 / 0.18), 0 10px 24px -16px rgb(1 31 56 / 0.45); max-height: 34rem; width: auto; }
.prose p > img { display: inline-block; margin: 0.5em 0.75em 0.5em 0; vertical-align: top; max-width: min(100%, 22rem); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 0.55em 0.75em 0.55em 0; text-align: left; vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.prose .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25em; }
.prose .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2.5rem; }
.prose .cols > * + * { margin-top: 0; }
.prose-h { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.05; margin: clamp(2.5rem, 5vw, 4rem) 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--ink); }

/* « à lire aussi » */
.more { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 3px solid var(--ink); padding-top: 1rem; max-width: 68ch; }
.more-title { font-size: 1.1875rem; font-weight: 800; font-stretch: 108%; margin-bottom: 0.5rem; }
.more-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.more-list time { font-weight: 700; font-stretch: 75%; color: var(--ink-soft); }
.more-list a { font-weight: 700; text-decoration: none; }
.more-list a:hover { text-decoration: underline; }

/* le créneau libre en bas de chaque page */
.slot-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 2.5rem; padding-block: clamp(1.25rem, 2.5vw, 2rem); }
.slot-date { position: absolute; top: 50%; left: 0; width: var(--mcol); transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; line-height: 1; }
.slot-date .dnum { font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.8rem); }
.slot-title { font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.05; }
.slot-text { margin-top: 0.35rem; color: var(--ink-soft); }
.slot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.slot-link { font-weight: 600; }

/* listes d'articles */
.listing-intro { font-size: 1.125rem; max-width: 46em; margin: -0.75rem 0 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.chips a { font-size: 0.875rem; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); border-radius: 2px; padding: 0.3rem 0.7rem; }
.chips a:hover { background: var(--tint); }
.chips a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.post-list { border-top: 1px solid var(--ink); }
.post-list .year span {
  display: block; position: relative;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); font-weight: 800; font-stretch: 62%; line-height: 1;
  padding: 1.5rem 0 0.5rem; border-bottom: 1px solid var(--ink);
}
.post-row { position: relative; padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--rule); }
.margin-date--row { top: 1.1rem; left: calc(-1 * (var(--mcol) + var(--mgap))); }
.margin-date--row .dnum { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); }
.post-title { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.post-title a { text-decoration: none; }
.post-title a:hover { text-decoration: underline; }
.post-ex { margin-top: 0.35rem; color: var(--ink-soft); max-width: 70ch; }
.post-meta { margin-top: 0.35rem; font-size: 0.875rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .slot-inner { grid-template-columns: minmax(0, 1fr); }
  .margin-date .dnum { font-size: 1.6rem; }
  .margin-date .dname, .dyear { font-size: 0.6875rem; letter-spacing: 0; }
  .more-list li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .crumbs li[aria-current] { max-width: 22ch; }
}

/* ---------- pied de couverture ---------- */
.cover-foot { color: var(--cloth-ink); padding: clamp(1.5rem, 3vw, 2.5rem) var(--margin) clamp(2rem, 4vw, 3rem); font-size: 0.9375rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; }
.foot-name { font-weight: 800; font-stretch: 112%; color: #fff; font-size: 1.0625rem; }
.foot-name span { font-weight: 400; font-stretch: 100%; color: var(--cloth-ink); margin-left: 0.6rem; font-size: 0.9375rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ---------- tablette et mobile ---------- */
@media (max-width: 1080px) {
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 999px) {
  :root { --bar-h: auto; }
  .cover-bar { flex-wrap: wrap; row-gap: 0.25rem; padding-block: 0.75rem; }
  .cover-nav { flex-wrap: wrap; gap: 0.35rem 1rem; }
  .spread {
    --gutter-x: -100px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "head-l" "head-r" "lun" "mar" "mer" "jeu" "ven" "we";
    min-height: 0;
  }
  .page-head--left { border-bottom: 0; padding-bottom: 0.25rem; }
  .day[data-weekday="4"] { border-top: 1px solid var(--ink); }
  .page-head--right { align-items: flex-start; text-align: left; padding-top: 0.5rem; }
  .page-head--right .week-label { order: 2; margin-top: 0.4rem; }
  .thumb-index { display: none; }
  .steps li { grid-template-columns: minmax(0, 1fr); }
  .rep-list li { grid-template-columns: minmax(0, 1fr); }
  .day { min-height: 8.5rem; }
  .day--free { min-height: 0; padding-block: 1.25rem 1.5rem; }
  .rep-grid, .owner-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .owner-photo { max-width: 24rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-trade { display: none; }
  .cover-bar { flex-wrap: nowrap; position: relative; }
  .js .menu-toggle { display: inline-block; }
  .js .cover-nav { display: none; }
  .js .cover-bar.is-open .cover-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; z-index: 20; left: var(--margin); right: var(--margin); top: 100%;
    background: var(--paper); color: var(--ink); border-radius: 3px; padding: 0.5rem 1rem;
    box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.6);
  }
  .js .cover-bar.is-open .cover-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .js .cover-bar.is-open .cover-nav .nav-cta { border: 0; padding: 0.75rem 0; font-weight: 700; }
  .day { grid-template-columns: 3.3rem minmax(0, 1fr); padding-inline: 1rem 2.75rem; }
  .page-head { padding-right: 2.75rem; }
  .hours { display: none; }
  .dnum { font-size: 2.3rem; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-fields > div, .contact-lines > div { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0.75rem; }
  .owner-grid { --mcol: 0.6rem; --mgap: 1rem; }
  .owner-fields > div { grid-template-columns: 5.3rem minmax(0, 1fr); gap: 0.5rem; }
  .owner-fields dt, .contact-lines dt { letter-spacing: 0.08em; font-size: 0.6875rem; }
  .posts li { grid-template-columns: minmax(0, 1fr); }
  .posts time { grid-row: auto; font-size: 1rem; }
  .free-direct { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
  body { background: #fff; }
  .cover-nav, .ribbon, .now, .contact-form { display: none; }
  .answer { display: block !important; }
}


/* ================================================================
   WordPress
   ================================================================ */

/* menu généré par WordPress (Apparence > Menus) */
.cover-nav li.nav-cta { border: 0; padding: 0; border-radius: 0; }
.cover-nav .menu-list { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.cover-nav .nav-cta > a { border: 1px solid currentColor; padding: 0.35rem 0.8rem; border-radius: 2px; }
.cover-nav .nav-cta > a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.cover-nav .current-menu-item > a, .cover-nav .current_page_item > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
@media (max-width: 999px) { .cover-nav .menu-list { flex-wrap: wrap; gap: 0.35rem 1rem; } }
@media (max-width: 640px) {
  .js .cover-bar.is-open .cover-nav .menu-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .cover-bar.is-open .cover-nav .menu-list a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .js .cover-bar.is-open .cover-nav .nav-cta > a { border: 0; padding: 0.75rem 0; font-weight: 700; border-radius: 0; }
}
body.admin-bar .skip:focus { top: 3rem; }

/* blocs de l'éditeur dans le texte courant */
.prose h1 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); font-weight: 800; font-stretch: 110%; line-height: 1.12; letter-spacing: -0.025em; margin-top: 2em; }
.prose h1 + * { margin-top: 0.5em; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25em; }
.prose .wp-block-button__link {
  display: inline-flex; align-items: center; font-weight: 700; font-stretch: 105%; font-size: 1rem; line-height: 1.2;
  color: #fff !important; background: var(--verm-btn) !important; border-radius: 2px !important; padding: 0.8rem 1.15rem; text-decoration: none;
}
.prose .wp-block-button__link:hover { background: var(--verm-deep) !important; }
.prose .is-style-outline .wp-block-button__link { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--ink); }
.prose .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2.5rem; }
.prose .wp-block-column > * + * { margin-top: 1em; }
.prose .wp-block-image img, .prose figure img { height: auto; }
.prose .alignleft { float: left; margin: 0.3em 1.5em 1em 0; max-width: 45%; }
.prose .alignright { float: right; margin: 0.3em 0 1em 1.5em; max-width: 45%; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose .alignwide, .prose .alignfull { max-width: none; }
.prose::after { content: ""; display: table; clear: both; }
.prose figcaption, .prose .wp-caption-text { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.5rem; }
.prose .wp-block-table table { display: table; }
.prose .wp-block-quote { border-left: 0; }
.prose .wp-block-separator { border: 0; border-top: 1px solid var(--ink); }
.prose .has-background:not(.wp-block-button__link) { padding: 1em 1.25em; }
.prose [style*="color"]:not(.wp-block-button__link) { color: inherit !important; }
.prose iframe, .prose video { max-width: 100%; }
.prose .wp-block-embed__wrapper { position: relative; }
@media (max-width: 640px) { .prose .alignleft, .prose .alignright { float: none; margin: 1em 0; max-width: 100%; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* image à la une d'un article */
.entry-thumb { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); max-width: 68ch; }
.entry-thumb img { background: #fff; padding: 8px; box-shadow: 0 1px 2px rgb(1 31 56 / 0.18), 0 10px 24px -16px rgb(1 31 56 / 0.45); }

/* pagination des listes */
.pager { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 0.6rem; border: 1px solid var(--ink); border-radius: 2px; font-weight: 700; text-decoration: none; }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); }
.pager a.page-numbers:hover { background: var(--tint); }
.pager .dots { border: 0; }

/* recherche et page introuvable */
.search-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; max-width: 36rem; margin-top: 1.5rem; }
.search-form input[type="search"] { flex: 1 1 14rem; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 0.45rem 0; }
.search-form input[type="search"]:focus { outline: none; border-bottom: 2px solid var(--verm); margin-bottom: -1px; }
.empty-note { font-size: 1.125rem; max-width: 40em; }
.back-home { margin-top: 1.5rem; font-weight: 700; }

/* message renvoyé par le formulaire sans JavaScript */
.form-status:empty { min-height: 0; }
