/* Amybalot Douceur — bien-être doux : rose poudré, sauge, blanc chaud, rondeurs et respiration. */

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fdf8f6;
  --paper-deep: #f8eef0;
  --surface: #ffffff;
  --ink: #3b2f35;
  --ink-soft: #55454c;
  --muted: #6d5f66;
  --line: #f0dfe4;
  --line-strong: #e4cfd6;
  --rose: #e9a8bd;
  --rose-deep: #a9526f;
  --rose-veil: #fceef2;
  --sage: #a8c3a8;
  --sage-deep: #4f7a5c;
  --sage-veil: #eaf2ea;
  --radius-xl: 40px;
  --radius: 28px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --shadow: 0 2px 4px rgb(169 82 111 / 4%), 0 18px 40px -22px rgb(169 82 111 / 30%);
  --shadow-soft: 0 14px 34px -24px rgb(59 47 53 / 34%);
  --font-display: "Quicksand", "Avenir Next Rounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 4.5vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Teintes de rubrique : pastel (fond), profonde (texte lisible), voile (fond très clair). */
.tone-0 { --tone: #e9a8bd; --tone-ink: #a9526f; --tone-veil: #fceef2; }
.tone-1 { --tone: #a8c3a8; --tone-ink: #4b7357; --tone-veil: #eaf2ea; }
.tone-2 { --tone: #bfb0d8; --tone-ink: #675289; --tone-veil: #f1edf8; }
.tone-3 { --tone: #f0b894; --tone-ink: #9a5a35; --tone-veil: #fdefe4; }
.tone-4 { --tone: #a6c6d8; --tone-ink: #3f687f; --tone-veil: #e9f2f7; }
.tone-5 { --tone: #ecd08c; --tone-ink: #80601a; --tone-veil: #fbf2dc; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .25s var(--ease); }
a:hover { color: var(--rose-deep); }
:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.02rem + .6vw, 1.45rem); }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
.icon { width: 1.05em; height: 1.05em; flex: none; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(52px, 7.5vw, 104px); position: relative; }
.section--tinted { background: var(--paper-deep); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: -80px; transform: translateX(-50%); z-index: 100;
  background: var(--surface); color: var(--rose-deep); padding: 12px 24px;
  border-radius: var(--radius-pill); box-shadow: var(--shadow); font-weight: 600;
}
.skip-link:focus { top: 14px; }

/* --- Éléments communs : surtitres, puces, boutons, arcs --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep);
  margin: 0 0 .7em;
}
.eyebrow .icon { color: var(--sage-deep); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tone-veil, var(--rose-veil)); color: var(--tone-ink, var(--rose-deep));
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .05em; padding: 6px 15px; border-radius: var(--radius-pill);
  text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease);
}
.chip:hover { background: var(--tone, var(--rose)); color: #fff; }
.button, .search-form button, .comment-form .submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--rose-deep); color: #fff; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: var(--radius-pill); text-decoration: none;
  box-shadow: 0 12px 26px -16px rgb(169 82 111 / 70%);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.button:hover, .search-form button:hover, .comment-form .submit:hover {
  background: #8f4059; color: #fff; transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgb(143 64 89 / 75%);
}
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; color: var(--rose-deep);
  text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--rose); }
.text-link .icon { transition: transform .25s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* Séparateurs en arc : le bloc teinté se termine par une courbe douce. */
.arc { position: absolute; left: -2%; width: 104%; height: clamp(28px, 4vw, 56px); background: var(--paper); pointer-events: none; }
.arc--top { top: -1px; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.arc--bottom { bottom: -1px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }

.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(26px, 3.5vw, 44px);
}
.section-heading h2, .section-title { margin: 0; }
.section-heading--center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 1em; }

/* --- Bandeau supérieur, en-tête, navigation --- */
.topbar { background: var(--sage-veil); color: var(--sage-deep); font-size: .88rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; flex-wrap: wrap; }
.topbar-text { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; }
.topbar-text .icon { color: var(--rose-deep); }
.topbar-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; text-decoration: none; color: var(--sage-deep); }
.topbar-link:hover { color: var(--rose-deep); }

.site-header { position: sticky; top: 0; z-index: 60; background: rgb(253 248 246 / 92%); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); min-height: 78px; }
.branding { margin-right: auto; display: flex; align-items: center; }
.branding img { max-height: 56px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); }
.brand-bloom {
  width: 38px; height: 38px; flex: none; border-radius: 50% 50% 50% 12px;
  background: radial-gradient(circle at 32% 30%, #f7cfdb 0%, var(--rose) 55%, #dd8fa8 100%);
  box-shadow: inset 0 -4px 10px rgb(169 82 111 / 22%);
  position: relative;
}
.brand-bloom::after {
  content: ""; position: absolute; inset: auto 6px 6px auto; width: 13px; height: 13px;
  border-radius: 50% 50% 50% 4px; background: var(--sage);
}
.brand-text { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.brand-text em { font-style: normal; color: var(--rose-deep); }

.nav-menu { list-style: none; display: flex; align-items: center; gap: clamp(6px, 1.4vw, 20px); margin: 0; padding: 0; }
.nav-menu a {
  display: inline-block; padding: 9px 16px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu [aria-current="page"] {
  background: var(--rose-veil); color: var(--rose-deep);
}
.nav-menu li { position: relative; }
.nav-menu .sub-menu {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0;
  min-width: 210px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); display: none; z-index: 30;
}
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 8px 14px; }

/* Recherche de l’en-tête (details/summary : fonctionne sans JavaScript). */
.header-search { position: relative; }
.header-search summary {
  list-style: none; cursor: pointer; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sage-veil); color: var(--sage-deep);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.header-search summary::-webkit-details-marker { display: none; }
.header-search summary:hover { background: var(--rose-veil); color: var(--rose-deep); }
.header-search summary .icon { width: 20px; height: 20px; }
.header-search summary .icon:nth-child(2) { display: none; }
.header-search[open] summary .icon:first-child { display: none; }
.header-search[open] summary .icon:nth-child(2) { display: block; }
.header-search-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(88vw, 400px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; z-index: 40;
}

.menu-toggle {
  display: none; align-items: center; gap: 10px; background: var(--rose-veil);
  color: var(--rose-deep); border: 0; cursor: pointer; padding: 11px 20px;
  border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700;
}
.menu-lines { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Formulaire de recherche --- */
.search-form { display: flex; gap: 10px; align-items: center; }
.search-form input[type="search"] {
  flex: 1 1 auto; min-width: 0; padding: 14px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search-form input[type="search"]::placeholder { color: var(--muted); opacity: .85; }
.search-form input[type="search"]:focus { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-veil); outline: none; }
.search-form button { padding: 14px 22px; }
.search-form button span { display: none; }
@media (min-width: 560px) { .search-form button span { display: inline; } }

/* --- Héros --- */
.hero { position: relative; padding-block: clamp(44px, 6vw, 88px) clamp(40px, 5vw, 72px); overflow: hidden; }
.hero-halo {
  position: absolute; inset: -30% -20% auto -20%; height: 130%;
  background:
    radial-gradient(42% 46% at 18% 24%, var(--rose-veil) 0%, transparent 70%),
    radial-gradient(38% 44% at 82% 16%, var(--sage-veil) 0%, transparent 72%),
    radial-gradient(40% 40% at 60% 88%, #fdf1e8 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: clamp(30px, 4.5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero-copy h1 { margin-bottom: .35em; }
.hero-text { font-size: clamp(1.05rem, .98rem + .35vw, 1.2rem); color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; margin: 38px 0 0; padding: 0; }
.hero-stats li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-soft);
}
.hero-stats strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--rose-deep); }
.hero-stats span { font-size: .84rem; color: var(--muted); }

/* Composition décorative quand aucun article n’est publié. */
.bloom-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bloom-stack span {
  display: grid; place-items: center; min-height: 118px; padding: 16px;
  background: var(--tone-veil); color: var(--tone-ink); border-radius: var(--radius-xl);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.bloom-stack span:nth-child(1) { border-radius: 60% 40% 55% 45% / 55% 50% 50% 45%; }
.bloom-stack span:nth-child(3) { border-radius: 45% 55% 40% 60% / 50% 45% 55% 50%; }
.bloom-stack span:nth-child(5) { grid-column: span 2; border-radius: var(--radius-pill); min-height: 88px; }

.une-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }

/* --- Les quatre gestes --- */
.pillars-section { padding-block: clamp(70px, 9vw, 126px); }
.pillar-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pillar {
  background: var(--surface); border-radius: var(--radius-xl); padding: 34px 30px 30px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px;
  border-radius: 58% 42% 50% 50% / 50% 55% 45% 50%;
  background: var(--tone-veil); color: var(--tone-ink);
}
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: .3em; color: var(--tone-ink); }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* --- Cartes d’article --- */
.post-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-grid--two { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--tone, var(--rose)); }
.card-media { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--tone-veil); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(60% 70% at 25% 20%, #fff 0%, transparent 60%),
    linear-gradient(140deg, var(--tone-veil) 0%, var(--tone) 140%);
}
.placeholder-initial {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--tone-ink);
  width: 84px; height: 84px; display: grid; place-items: center;
  border-radius: 58% 42% 46% 54% / 52% 50% 50% 48%; background: rgb(255 255 255 / 66%);
}
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-time { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.card-title { margin: 0; font-size: 1.16rem; line-height: 1.35; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--tone-ink, var(--rose-deep)); }
.card-excerpt { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.card-date { margin-top: auto; font-size: .8rem; color: var(--muted); }

.card--feature { border-radius: 46px; }
.card--feature .card-media { aspect-ratio: 4 / 5; }
.card--feature .card-title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.card--feature .card-body { padding: 28px 32px 32px; }

.card--compact { flex-direction: row; align-items: center; gap: 4px; border-radius: var(--radius); }
.card--compact .card-media { width: 108px; flex: none; aspect-ratio: 1; margin: 12px; border-radius: 50% 50% 46% 54% / 52% 48% 52% 48%; }
.card--compact .placeholder-initial { width: 56px; height: 56px; font-size: 1.6rem; }
.card--compact .card-body { padding: 16px 22px 16px 6px; gap: 7px; }
.card--compact .card-title { font-size: 1.02rem; }

.card--text { flex-direction: row; gap: 0; border-radius: var(--radius); background: transparent; border: 0; box-shadow: none; }
.card--text:hover { transform: none; box-shadow: none; }
.card--text .card-body { padding: 0; }
.card--text .card-title { font-size: 1rem; }

/* --- Rubriques --- */
.rubrique-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rubrique {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 28px 26px 26px; text-decoration: none; border-radius: var(--radius-xl);
  background: var(--tone-veil); border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.rubrique:hover { transform: translateY(-5px); border-color: var(--tone); box-shadow: var(--shadow); color: inherit; }
.rubrique-initial {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 10px;
  border-radius: 56% 44% 48% 52% / 50% 54% 46% 50%;
  background: rgb(255 255 255 / 72%); color: var(--tone-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
}
.rubrique strong { font-family: var(--font-display); font-size: 1.22rem; color: var(--tone-ink); }
.rubrique small { color: var(--ink-soft); font-size: .88rem; }
.rubrique-arrow { position: absolute; top: 24px; right: 24px; color: var(--tone-ink); opacity: .55; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.rubrique:hover .rubrique-arrow { opacity: 1; transform: translateX(4px); }

/* --- Derniers articles + colonne latérale --- */
.latest-layout { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.trending {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 28px 28px 24px; box-shadow: var(--shadow-soft); position: sticky; top: 104px;
}
.trending h3 { margin-bottom: .8em; font-size: 1.12rem; color: var(--rose-deep); }
.trending ol { list-style: none; margin: 0; padding: 0; counter-reset: douceur; }
.trending li { counter-increment: douceur; display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.trending li:first-child { border-top: 0; padding-top: 0; }
.trending li::before {
  content: counter(douceur); flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 55% 45% 50% 50% / 50% 52% 48% 50%; background: var(--rose-veil);
  color: var(--rose-deep); font-family: var(--font-display); font-weight: 700; font-size: .92rem;
}

/* --- Blocs par rubrique --- */
.rubrique-section { padding-block: clamp(70px, 9vw, 126px); }
.rubrique-blocks { display: grid; gap: clamp(20px, 3vw, 34px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rubrique-block { display: flex; flex-direction: column; gap: 14px; }
.rubrique-block-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--tone); }
.rubrique-block-heading h2 { margin: 0; font-size: 1.5rem; color: var(--tone-ink); }
.rubrique-block .text-link { color: var(--tone-ink); }
.rubrique-block .text-link:hover { border-bottom-color: var(--tone); }

/* --- Bandeau de recherche --- */
.search-band { position: relative; background: linear-gradient(140deg, var(--rose-veil) 0%, var(--sage-veil) 100%); padding-block: clamp(56px, 7vw, 92px); overflow: hidden; }
.search-band-inner { position: relative; max-width: 700px; margin-inline: auto; text-align: center; }
.search-band-bloom {
  position: absolute; top: -70px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 130px; border-radius: 58% 42% 46% 54% / 52% 50% 50% 48%;
  background: rgb(255 255 255 / 55%); pointer-events: none;
}
.search-band h2 { position: relative; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); margin-bottom: 1em; }
.search-band .search-form { max-width: 520px; margin-inline: auto; }

/* --- États vides --- */
.empty-state {
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-xl);
  padding: clamp(34px, 5vw, 60px); text-align: center;
}
.empty-state .search-form { max-width: 440px; margin-inline: auto; }
.empty-state .eyebrow { justify-content: center; }
.empty-state--soft { border-style: solid; background: var(--rose-veil); border-color: transparent; display: grid; place-items: center; }
.empty-state--soft p { margin: 0; color: var(--rose-deep); font-family: var(--font-display); font-weight: 600; }
.empty-bloom {
  display: block; width: 76px; height: 76px; margin: 0 auto 20px;
  border-radius: 58% 42% 46% 54% / 52% 50% 50% 48%;
  background: linear-gradient(140deg, var(--rose-veil) 0%, var(--sage-veil) 100%);
}

/* --- En-têtes d’archive et de page --- */
.archive-heading { position: relative; background: var(--tone-veil, var(--rose-veil)); padding-block: clamp(46px, 6vw, 84px) clamp(60px, 7vw, 96px); text-align: center; }
.archive-heading h1 { margin-bottom: .35em; color: var(--tone-ink, var(--rose-deep)); }
.archive-heading .eyebrow { color: var(--tone-ink, var(--rose-deep)); }
.archive-description { max-width: 46em; margin-inline: auto; color: var(--ink-soft); }
.archive-count { font-size: .9rem; color: var(--muted); margin: 0; }
.archive-heading .search-form { max-width: 480px; margin: 22px auto 0; }
.archive-body { padding-top: clamp(34px, 4.5vw, 60px); }
.page-heading { text-align: center; margin-bottom: clamp(30px, 4vw, 52px); }
.page-heading .eyebrow { justify-content: center; }

/* --- Pagination --- */
.pagination { margin-top: clamp(34px, 4.5vw, 56px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.page-numbers {
  display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.page-numbers:hover { background: var(--rose-veil); border-color: var(--rose); color: var(--rose-deep); }
.page-numbers.current { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.page-numbers.dots { background: transparent; border-color: transparent; }

/* --- Article --- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 80; background: transparent; }
.reading-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--rose) 0%, var(--sage) 100%); transform: scaleX(0); transform-origin: 0 50%; }
.single-main { max-width: 900px; }
.single-main > article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 56px); box-shadow: var(--shadow-soft); }
.article-heading { text-align: center; margin-bottom: clamp(24px, 3vw, 38px); }
.article-heading h1 { margin: .45em 0 .35em; }
.article-standfirst { font-size: 1.14rem; color: var(--ink-soft); max-width: 36em; margin-inline: auto; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-top: 20px; }
.article-avatar, .avatar { border-radius: 50%; }
.article-author { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.article-time { display: inline-flex; align-items: center; gap: 6px; }
.article-cover { margin: 0 0 clamp(26px, 3.5vw, 42px); }
.article-cover img { width: 100%; border-radius: var(--radius); }
.article-cover figcaption, .wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }

.entry-content { font-size: 1.08rem; line-height: 1.85; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content h2 { margin-top: 1.7em; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); }
.entry-content h3 { margin-top: 1.5em; }
.entry-content h2::after { content: ""; display: block; width: 58px; height: 4px; margin-top: .45em; border-radius: var(--radius-pill); background: var(--tone, var(--rose)); }
.entry-content a { color: var(--rose-deep); text-decoration-color: var(--rose); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote, .wp-block-quote {
  margin: 1.6em 0; padding: 26px 30px; border: 0; border-left: 5px solid var(--rose);
  background: var(--rose-veil); border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm);
  font-family: var(--font-display); font-size: 1.14rem; color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code, .entry-content pre { background: var(--sage-veil); border-radius: var(--radius-sm); }
.entry-content code { padding: 2px 7px; font-size: .92em; }
.entry-content pre { padding: 20px 24px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--rose-veil); font-family: var(--font-display); }
.entry-content hr { border: 0; height: 2px; background: var(--line); border-radius: 2px; margin-block: 2em; }
.wp-block-button__link { border-radius: var(--radius-pill); background: var(--rose-deep); color: #fff; font-family: var(--font-display); font-weight: 700; padding: 14px 28px; }
.alignwide { width: min(100%, 1080px); margin-inline: auto; }
.alignfull { width: 100%; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.page-links { display: flex; gap: 8px; align-items: center; font-family: var(--font-display); font-weight: 600; }

/* Pied d’article : étiquettes, partage, avertissement. */
.article-footer { margin-top: clamp(28px, 4vw, 44px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a {
  display: inline-block; padding: 6px 15px; border-radius: var(--radius-pill);
  background: var(--sage-veil); color: var(--sage-deep); font-size: .82rem;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
}
.article-tags a:hover { background: var(--sage); color: #fff; }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-label { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: .88rem; }
.share a, .copy-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-soft); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .88rem; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.share a:hover, .copy-link:hover { background: var(--rose-veil); border-color: var(--rose); color: var(--rose-deep); }
.copy-link.is-done { background: var(--sage-veil); border-color: var(--sage); color: var(--sage-deep); }
.article-disclaimer { margin: 0; font-size: .85rem; color: var(--muted); font-style: italic; }

.post-navigation { margin-block: clamp(30px, 4vw, 48px); }
.post-navigation .nav-links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.post-navigation a {
  display: block; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; font-family: var(--font-display); font-weight: 600;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.post-navigation a:hover { transform: translateY(-3px); border-color: var(--rose); }
.post-navigation span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rose-deep); margin-bottom: 6px; }
.post-navigation .nav-next { text-align: right; }
.related { margin-top: clamp(34px, 4.5vw, 56px); }

/* --- Commentaires --- */
.comments { margin-top: clamp(38px, 5vw, 64px); }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; margin: 16px 0 0 clamp(14px, 3vw, 40px); padding: 0; }
.comment-body {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 16px; box-shadow: var(--shadow-soft);
}
.comment-author { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; color: var(--muted); margin: 6px 0 12px; }
.comment-metadata a { text-decoration: none; }
.comment-content { font-size: .98rem; }
.comment-content p:last-child { margin-bottom: 0; }
.bypostauthor > .comment-body { border-color: var(--rose); }
.reply a { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--rose-deep); text-decoration: none; }
.comments-closed { color: var(--muted); font-style: italic; }

.comment-respond, .post-password-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow-soft);
}
.comment-reply-title { margin-top: 0; font-size: 1.3rem; }
.comment-form { display: grid; gap: 16px; }
.comment-form label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"],
.comment-form textarea, .post-password-form input[type="password"] {
  width: 100%; padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
}
.comment-form textarea { border-radius: var(--radius); min-height: 150px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus, .post-password-form input:focus {
  outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-veil);
}
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form .submit { justify-self: start; }
.post-password-form { display: grid; gap: 14px; max-width: 520px; }

/* --- 404 --- */
.not-found { display: grid; gap: clamp(22px, 3vw, 44px); grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; }
.not-found-code {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 3rem + 8vw, 9rem);
  line-height: 1; margin: 0; color: var(--rose-deep);
  background: var(--rose-veil); padding: 26px 34px;
  border-radius: 58% 42% 46% 54% / 52% 50% 50% 48%;
}
.not-found .search-form { max-width: 460px; }

/* --- Pied de page --- */
.site-footer { position: relative; margin-top: clamp(50px, 6vw, 88px); background: var(--paper-deep); padding-top: clamp(56px, 7vw, 92px); }
.footer-arc { position: absolute; top: -1px; left: -2%; width: 104%; height: clamp(28px, 4vw, 56px); background: var(--paper); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.footer-grid { display: grid; gap: clamp(26px, 3.5vw, 48px); grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr)); }
.footer-about p { color: var(--ink-soft); margin-top: 14px; max-width: 32em; }
.footer-col h2 { font-size: 1.05rem; margin-bottom: .8em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); }
.footer-col a:hover { color: var(--rose-deep); }
.footer-col li { position: relative; padding-left: 18px; }
.footer-col li::before { content: ""; position: absolute; left: 0; top: .65em; width: 9px; height: 9px; border-radius: 55% 45% 50% 50% / 50% 52% 48% 50%; background: var(--tone, var(--rose)); }
.footer-search li { padding-left: 0; }
.footer-search li::before { content: none; }
.footer-note { margin-top: clamp(28px, 3.5vw, 44px); }
.footer-note p { margin: 0; font-size: .85rem; color: var(--muted); font-style: italic; max-width: 60em; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 26px; padding-block: 22px; border-top: 1px solid var(--line-strong);
  font-size: .86rem; color: var(--muted);
}

/* --- Apparition douce (activée par JavaScript uniquement) --- */
.has-reveal .card, .has-reveal .pillar, .has-reveal .rubrique {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.has-reveal .card.is-visible, .has-reveal .pillar.is-visible, .has-reveal .rubrique.is-visible { opacity: 1; transform: none; }

/* --- Adaptations --- */
@media (max-width: 1080px) {
  .latest-layout { grid-template-columns: 1fr; }
  .trending { position: static; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-feature { max-width: 520px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 16px var(--gutter) 22px;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .primary-nav.is-open { display: block; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-menu a { display: block; padding: 12px 16px; }
  .nav-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .site-header { position: relative; }
}
/* Sans JavaScript, le menu reste visible et le bouton disparaît. */
html:not(.js) .primary-nav { display: block; position: static; box-shadow: none; border: 0; padding: 0; }
html:not(.js) .menu-toggle { display: none; }
@media (max-width: 960px) {
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .primary-nav { flex-basis: 100%; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 0; }
}
@media (max-width: 680px) {
  .topbar-inner { justify-content: center; }
  .topbar-link { display: none; }
  .not-found { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .card--compact { flex-direction: column; align-items: stretch; }
  .card--compact .card-media { width: auto; aspect-ratio: 16 / 10; margin: 0; border-radius: 0; }
  .card--compact .card-body { padding: 20px 24px 22px; }
  .post-navigation .nav-next { text-align: left; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .bloom-stack span:nth-child(5) { grid-column: span 2; }
  .hero-stats li { flex: 1 1 130px; }
  .share { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .has-reveal .card, .has-reveal .pillar, .has-reveal .rubrique { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .search-band, .related, .comments, .share, .reading-progress, .post-navigation, .pagination { display: none !important; }
  body { background: #fff; color: #000; }
  .single-main > article { border: 0; box-shadow: none; padding: 0; }
}

/* Compléments de mise en page. */
.hero-feature { justify-self: end; width: 100%; max-width: 480px; }
.home-editor-content .entry-content { max-width: 760px; margin-inline: auto; }
@media (max-width: 960px) { .hero-feature { justify-self: start; } }
