/* ==========================================================================
   TousEnCuisine — feuille de style principale
   Les couleurs --tc-primary / --tc-dark / --tc-container viennent du Personnalisateur.
   ========================================================================== */

:root {
  --tc-primary: #c2410c;
  --tc-dark: #2b1d14;
  --tc-accent: #e9a23b;
  --tc-herb: #4d7c0f;
  --tc-container: 1240px;
  --tc-font-head: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tc-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --tc-bg: #fffaf3;
  --tc-surface: #f6ecdd;
  --tc-text: #2a1f17;
  --tc-muted: #75665a;
  --tc-border: #eadcc8;
  --tc-on-primary: #ffffff;
  --tc-radius: 18px;
  --tc-radius-sm: 12px;
  --tc-shadow: 0 6px 24px rgb(16 18 27 / 0.08);
  --tc-gap: clamp(16px, 2.4vw, 28px);
  color-scheme: light;
}

[data-theme="dark"] {
  --tc-bg: #17110c;
  --tc-surface: #231a13;
  --tc-text: #f4ebe0;
  --tc-muted: #b3a493;
  --tc-border: #3a2c21;
  --tc-shadow: 0 6px 24px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--tc-bg);
  color: var(--tc-text);
  font: 400 1rem/1.65 var(--tc-font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
body.tc-menu-open, body.tc-search-open { overflow: hidden; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--tc-primary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--tc-font-head); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tc-primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--tc-primary); color: var(--tc-on-primary); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.tc-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--tc-primary); color: #fff; padding: 8px 14px; border-radius: 6px; }
.tc-skip:focus { left: 8px; color: #fff; }

.tc-container { width: min(100% - 32px, var(--tc-container)); margin-inline: auto; }
.tc-icon { flex: none; vertical-align: middle; }
.tc-theme-light .tc-when-dark, [data-theme="light"] .tc-when-dark,
[data-theme="dark"] .tc-when-light { display: none; }
[data-theme="dark"] .tc-when-dark { display: inline-flex; }

/* ---------- Boutons ---------- */
.tc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--tc-primary); color: var(--tc-on-primary);
  font-family: var(--tc-font-head); font-weight: 600; font-size: .95rem;
  transition: transform .15s, filter .15s;
}
.tc-btn:hover { color: var(--tc-on-primary); filter: brightness(1.08); transform: translateY(-1px); }
.tc-btn:disabled { opacity: .6; cursor: default; transform: none; }
.tc-btn--more { display: flex; margin: 28px auto 0; min-width: 240px; }

.tc-iconbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; color: inherit;
  transition: background .15s;
}
.tc-iconbtn:hover { background: rgb(255 255 255 / .12); }

.tc-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--tc-primary); color: var(--tc-on-primary);
  font: 600 .7rem/1.4 var(--tc-font-head); letter-spacing: .04em; text-transform: uppercase;
}
.tc-badge:hover { color: var(--tc-on-primary); filter: brightness(1.1); }

.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.tc-chips a {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--tc-border); border-radius: 999px;
  font-size: .85rem; background: var(--tc-surface);
}
.tc-chips a:hover { border-color: var(--tc-primary); }

/* ---------- Barre de progression ---------- */
.tc-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.tc-progress span { display: block; height: 100%; background: var(--tc-primary); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- En-tête ---------- */
.tc-topbar { background: var(--tc-dark); color: rgb(255 255 255 / .75); font-size: .8rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
.tc-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.tc-topbar__left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tc-topbar__date { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; }
.tc-topbar__menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.tc-topbar a:hover { color: #fff; }

.tc-brandbar { background: var(--tc-bg); border-bottom: 1px solid var(--tc-border); }
.tc-brandbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.tc-brand__name {
  font: 800 clamp(1.8rem, 4vw, 2.6rem)/1 var(--tc-font-head); letter-spacing: -.02em; color: var(--tc-text);
}
.tc-brand__name::first-letter { color: var(--tc-primary); }
.tc-brand__tagline { margin: 6px 0 0; color: var(--tc-muted); font-size: .85rem; }
.custom-logo { max-height: 72px; width: auto; }
.tc-ad--header { max-width: 728px; flex: 1 1 auto; display: flex; justify-content: flex-end; }

.tc-nav { position: sticky; top: 0; z-index: 100; background: var(--tc-dark); color: #fff; transition: box-shadow .2s; }
.admin-bar .tc-nav { top: 32px; }
.tc-nav.is-stuck { box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.tc-nav__inner { display: flex; align-items: center; gap: 8px; min-height: 56px; }
.tc-nav__toggle { display: none; }
.tc-nav__menu { flex: 1; }
.tc-nav__actions { display: flex; gap: 4px; margin-left: auto; }

.tc-menu, .tc-menu ul { list-style: none; margin: 0; padding: 0; }
.tc-menu { display: flex; flex-wrap: wrap; }
.tc-menu > li { position: relative; display: flex; align-items: center; }
.tc-menu > li > a {
  display: block; padding: 18px 14px; font: 600 .9rem/1 var(--tc-font-head); color: #fff;
  border-bottom: 3px solid transparent;
}
.tc-menu > li > a:hover,
.tc-menu > .current-menu-item > a,
.tc-menu > .current-menu-ancestor > a,
.tc-menu > .current-cat > a { border-bottom-color: var(--tc-primary); color: #fff; }
.tc-menu .sub-menu, .tc-menu .children {
  position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px;
  background: var(--tc-bg); color: var(--tc-text); border-radius: 0 0 var(--tc-radius-sm) var(--tc-radius-sm);
  box-shadow: var(--tc-shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .18s ease; z-index: 10;
}
.tc-menu li:hover > .sub-menu, .tc-menu li:focus-within > .sub-menu, .tc-menu li.is-open > .sub-menu,
.tc-menu li:hover > .children, .tc-menu li:focus-within > .children, .tc-menu li.is-open > .children {
  opacity: 1; visibility: visible; transform: none;
}
.tc-menu .sub-menu a, .tc-menu .children a { display: block; padding: 9px 12px; border-radius: 6px; font-size: .9rem; }
.tc-menu .sub-menu a:hover, .tc-menu .children a:hover { background: var(--tc-surface); }
.tc-submenu-toggle { border: 0; background: none; color: inherit; padding: 6px; margin-left: -10px; display: inline-grid; place-items: center; }
.tc-menu .sub-menu .tc-submenu-toggle { display: none; }

/* ---------- Fil défilant ---------- */
.tc-ticker { background: var(--tc-surface); border-bottom: 1px solid var(--tc-border); }
.tc-ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.tc-ticker__label {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 12px; border-radius: 6px;
  background: var(--tc-primary); color: var(--tc-on-primary); font: 700 .75rem/1 var(--tc-font-head); text-transform: uppercase; letter-spacing: .05em;
}
.tc-ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tc-ticker__track { display: flex; gap: 40px; width: max-content; list-style: none; margin: 0; padding: 0; font-size: .9rem; font-weight: 500; }
.tc-ticker__track li { white-space: nowrap; position: relative; }
.tc-ticker__track li::before { content: ""; position: absolute; left: -22px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--tc-primary); transform: translateY(-50%); }
.tc-ticker__track.is-running { animation: tc-ticker var(--tc-ticker-duration, 40s) linear infinite; }
.tc-ticker__track.is-running:hover, .tc-ticker__track.is-running:focus-within { animation-play-state: paused; }
.tc-ticker__track.is-static { flex-wrap: wrap; width: auto; gap: 8px 40px; }
@keyframes tc-ticker { to { transform: translateX(-50%); } }

/* ---------- Héros / carrousel ---------- */
.tc-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-block: var(--tc-gap); }
.tc-slider { position: relative; border-radius: var(--tc-radius); overflow: hidden; background: var(--tc-dark); aspect-ratio: 16 / 10; min-height: 340px; }
.tc-slider__track { position: absolute; inset: 0; }
.tc-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.tc-slide.is-active { opacity: 1; visibility: visible; }
.tc-slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s ease; }
.tc-slide.is-active .tc-slide__media img { transform: scale(1); }
.tc-slide__media { position: absolute; inset: 0; }
.tc-slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / .85)); }
.tc-slide__body { position: absolute; inset: auto 0 0; padding: clamp(20px, 4vw, 40px); color: #fff; }
.tc-slide__title { font-size: clamp(1.3rem, 2.6vw, 2.1rem); margin: 12px 0 10px; text-wrap: balance; }
.tc-slide__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tc-slide .tc-meta { color: rgb(255 255 255 / .8); }
.tc-slider__nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .15); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s, background .2s;
}
.tc-slider:hover .tc-slider__nav, .tc-slider:focus-within .tc-slider__nav { opacity: 1; }
.tc-slider__nav:hover { background: var(--tc-primary); }
.tc-slider__nav--prev { left: 14px; }
.tc-slider__nav--next { right: 14px; }
.tc-slider__dots { position: absolute; z-index: 2; right: 20px; bottom: 20px; display: flex; gap: 6px; }
.tc-slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgb(255 255 255 / .5); transition: width .25s, background .25s; }
.tc-slider__dot[aria-current="true"] { width: 24px; background: var(--tc-primary); }

.tc-hero__side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }

/* ---------- Mise en page ---------- */
.tc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: calc(var(--tc-gap) * 1.4); margin-block: var(--tc-gap) calc(var(--tc-gap) * 2); align-items: start; }
.tc-no-sidebar .tc-layout, .tc-layout--full { grid-template-columns: minmax(0, 1fr); }
.tc-layout--full .tc-content { max-width: 960px; margin-inline: auto; width: 100%; }
.tc-sidebar__sticky { position: sticky; top: 80px; display: grid; gap: 28px; }

.tc-intro {
  padding: 22px 26px; margin-bottom: 32px; border-radius: var(--tc-radius);
  background: var(--tc-surface); border-left: 4px solid var(--tc-primary); font-size: 1.02rem;
}
.tc-intro p { margin: 0; }

/* ---------- Sections ---------- */
.tc-section { margin-bottom: 44px; }
.tc-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--tc-border); }
.tc-section__title, .tc-widget__title { font-size: 1.5rem; margin: 0; letter-spacing: -.01em; }
.tc-section__title span, .tc-widget__title span { position: relative; display: inline-block; padding-bottom: 14px; margin-bottom: -2px; }
.tc-section__title span::after, .tc-widget__title span::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--tc-primary) 0 60%, var(--tc-accent) 60% 80%, var(--tc-herb) 80%);
}
.tc-section__more { display: inline-flex; align-items: center; gap: 2px; padding-bottom: 10px; color: var(--tc-muted); font-size: .85rem; font-weight: 600; }

.tc-section--grid .tc-section__body,
.tc-related .tc-section__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tc-section--list .tc-section__body, .tc-feed { display: grid; gap: 24px; }
.tc-section--feature .tc-section__body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.tc-section__minis { display: grid; gap: 16px; align-content: start; }
.tc-section--gallery .tc-section__body { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

/* ---------- Cartes ---------- */
.tc-thumb { position: relative; display: block; overflow: hidden; border-radius: var(--tc-radius-sm); background: var(--tc-surface); aspect-ratio: 16 / 10.5; }
.tc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tc-card:hover .tc-thumb img { transform: scale(1.05); }
.tc-thumb__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tc-muted); background: linear-gradient(135deg, var(--tc-surface), var(--tc-border)); }

.tc-card__media { position: relative; }
.tc-card__media .tc-badge { position: absolute; left: 12px; top: 12px; }
.tc-card__title { font-size: 1.05rem; margin: 12px 0 6px; text-wrap: pretty; }
.tc-card__excerpt { margin: 8px 0 0; color: var(--tc-muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.tc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--tc-muted); font-size: .8rem; }
.tc-meta > * { display: inline-flex; align-items: center; gap: 5px; }

.tc-card--list { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: center; }
.tc-card--list .tc-card__title { font-size: 1.25rem; margin-top: 0; }

.tc-card--mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.tc-card--mini .tc-thumb { aspect-ratio: 4 / 3; border-radius: 6px; }
.tc-card--mini .tc-card__title { font-size: .92rem; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.tc-card--overlay { position: relative; border-radius: var(--tc-radius-sm); overflow: hidden; min-height: 160px; }
.tc-card--overlay .tc-thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.tc-card--overlay .tc-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / .85)); }
.tc-card--overlay .tc-card__body { position: absolute; inset: auto 0 0; padding: 14px; color: #fff; pointer-events: none; }
.tc-card--overlay .tc-card__body a { pointer-events: auto; }
.tc-card--overlay .tc-card__title { font-size: .95rem; margin: 8px 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-card--overlay .tc-card__title a:hover { color: #fff; text-decoration: underline; }
.tc-card--overlay .tc-meta { color: rgb(255 255 255 / .75); }
.tc-card--overlay .tc-badge { font-size: .62rem; padding: 3px 8px; }

.tc-card--gallery .tc-thumb { aspect-ratio: 1; }
.tc-card__caption {
  position: absolute; inset: auto 0 0; padding: 30px 10px 10px; color: #fff; font: 600 .82rem/1.3 var(--tc-font-head);
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / .8)); opacity: 0; transform: translateY(8px); transition: .25s;
}
.tc-card--gallery:hover .tc-card__caption, .tc-card--gallery a:focus-visible .tc-card__caption { opacity: 1; transform: none; }

/* ---------- Widgets / barre latérale ---------- */
.tc-widget__title { margin-bottom: 18px; border-bottom: 2px solid var(--tc-border); font-size: 1rem; }
.tc-widget ul:not(.tc-social) { list-style: none; margin: 0; padding: 0; }
.tc-catlist li, .tc-widget .cat-item { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--tc-border); font-size: .92rem; }
.tc-catlist .children { width: 100%; padding-left: 14px !important; }
.tc-popular { list-style: none; margin: 0; padding: 0; counter-reset: pop; display: grid; gap: 16px; }
.tc-popular li { counter-increment: pop; position: relative; }
.tc-popular li::before {
  content: counter(pop); position: absolute; z-index: 1; left: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tc-primary); color: #fff; font: 700 .72rem/1 var(--tc-font-head);
}

.tc-social { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tc-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; transition: background .15s, color .15s; }
.tc-social--top a { width: 28px; height: 28px; }
.tc-social a:hover { background: var(--tc-primary); color: #fff; }
.tc-social--boxed { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.tc-social--boxed a { width: auto; height: 44px; border-radius: var(--tc-radius-sm); background: var(--tc-surface); border: 1px solid var(--tc-border); }

.tc-searchform { display: flex; border: 1px solid var(--tc-border); border-radius: 999px; overflow: hidden; background: var(--tc-surface); max-width: 520px; }
.tc-searchform input { flex: 1; min-width: 0; padding: 11px 18px; border: 0; background: transparent; color: inherit; font: inherit; }
.tc-searchform input:focus { outline: none; }
.tc-searchform:focus-within { border-color: var(--tc-primary); }
.tc-searchform button { border: 0; padding: 0 16px; background: var(--tc-primary); color: #fff; }

/* ---------- Archives ---------- */
.tc-archive-head { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--tc-border); }
.tc-archive-head__kicker { margin: 0; color: var(--tc-primary); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.tc-archive-head__title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.tc-archive-head__desc { color: var(--tc-muted); }
.tc-archive-head .tc-searchform { margin-top: 14px; }
.tc-empty { padding: 40px; text-align: center; border-radius: var(--tc-radius); background: var(--tc-surface); }
.tc-empty .tc-searchform { margin: 16px auto 0; }

.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.nav-links .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--tc-border); }
.nav-links .current { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff; }

/* ---------- Article ---------- */
.tc-breadcrumb { font-size: .82rem; color: var(--tc-muted); margin-bottom: 14px; }
.tc-entry__title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 14px 0 18px; letter-spacing: -.01em; text-wrap: balance; }
.tc-entry__byline { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.tc-avatar { border-radius: 50%; }
.tc-entry__author { font-weight: 600; font-family: var(--tc-font-head); }
.tc-entry__hero { margin: 0 0 24px; }
.tc-entry__hero img { width: 100%; border-radius: var(--tc-radius); }
.tc-entry__hero figcaption { color: var(--tc-muted); font-size: .82rem; margin-top: 8px; text-align: center; }

.tc-entry__content { font-size: 1.08rem; line-height: 1.8; overflow-wrap: anywhere; }
.tc-entry__content > * { margin-block: 0 1.3em; }
.tc-entry__content h2 { font-size: 1.6rem; margin-top: 1.8em; }
.tc-entry__content h3 { font-size: 1.3rem; margin-top: 1.5em; }
.tc-entry__content a { color: var(--tc-primary); text-decoration: underline; text-underline-offset: 3px; }
.tc-entry__content img { border-radius: var(--tc-radius-sm); }
.tc-entry__content figure { margin-inline: 0; }
.tc-entry__content figcaption { color: var(--tc-muted); font-size: .85rem; text-align: center; margin-top: 6px; }
.tc-entry__content blockquote { margin-inline: 0; padding: 16px 24px; border-left: 4px solid var(--tc-primary); background: var(--tc-surface); border-radius: 0 var(--tc-radius-sm) var(--tc-radius-sm) 0; font-style: italic; }
.tc-entry__content .alignwide { margin-inline: min(-40px, (100% - 100vw) / 4); max-width: none; }
.tc-entry__content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.tc-entry__content .wp-block-gallery { gap: 10px; }
.tc-entry__content table { width: 100%; border-collapse: collapse; }
.tc-entry__content th, .tc-entry__content td { padding: 10px; border: 1px solid var(--tc-border); }
.tc-entry__content pre { background: var(--tc-surface); padding: 16px; border-radius: var(--tc-radius-sm); overflow-x: auto; }

.tc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.tc-share__label { font: 700 .8rem/1 var(--tc-font-head); text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.tc-share__btn { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--tc-border); border-radius: 999px; background: var(--tc-surface); color: var(--tc-text); transition: .15s; }
.tc-share__btn:hover { color: #fff; border-color: transparent; background: var(--tc-primary); }
.tc-share__btn--facebook:hover { background: #1877f2; }
.tc-share__btn--whatsapp:hover { background: #25d366; }
.tc-share__btn--x:hover { background: #000; }
.tc-share__btn--pinterest:hover { background: #e60023; }
.tc-share__btn--linkedin:hover { background: #0a66c2; }
.tc-share__btn--native { font-size: .85rem; font-weight: 600; }

.tc-entry__foot { margin-top: 32px; display: grid; gap: 24px; }
.tc-authorbox { display: flex; gap: 18px; padding: 22px; border-radius: var(--tc-radius); background: var(--tc-surface); }
.tc-authorbox p { margin: 0; }
.tc-authorbox__name { font: 700 1.05rem/1.3 var(--tc-font-head); margin-bottom: 6px !important; }
.tc-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 20px; border-block: 1px solid var(--tc-border); }
.tc-postnav span { display: block; color: var(--tc-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.tc-postnav a { font: 600 .98rem/1.35 var(--tc-font-head); }
.tc-postnav__next { text-align: right; grid-column: 2; }
.tc-related { margin-top: 40px; }

.tc-ad { margin: 24px auto; text-align: center; overflow: hidden; }
.tc-ad--header { margin: 0; }

/* ---------- Commentaires ---------- */
.tc-comments { margin-top: 44px; }
.tc-comments__list, .tc-comments__list .children { list-style: none; padding: 0; margin: 20px 0; }
.tc-comments__list .children { padding-left: clamp(16px, 4vw, 48px); }
.tc-comments .comment-body { padding: 18px; margin-bottom: 14px; border-radius: var(--tc-radius-sm); background: var(--tc-surface); }
.tc-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tc-comments .comment-author img { border-radius: 50%; }
.tc-comments .comment-metadata { font-size: .78rem; color: var(--tc-muted); margin: 4px 0 8px; }
.tc-comments .reply a { font-size: .82rem; font-weight: 600; color: var(--tc-primary); }
.comment-form { display: grid; gap: 14px; margin-top: 18px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--tc-border); border-radius: var(--tc-radius-sm); background: var(--tc-bg); color: inherit; font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--tc-primary); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- 404 ---------- */
.tc-404 { text-align: center; padding-block: 60px; }
.tc-404__code { font: 800 clamp(5rem, 18vw, 10rem)/1 var(--tc-font-head); color: var(--tc-primary); margin: 0; }
.tc-404 .tc-searchform { margin: 20px auto; }
.tc-404 .tc-section { margin-top: 60px; text-align: left; }

/* ---------- Recherche plein écran ---------- */
.tc-search-overlay { position: fixed; inset: 0; z-index: 300; background: rgb(10 12 16 / .7); backdrop-filter: blur(6px); display: flex; justify-content: center; padding: 10vh 16px 16px; animation: tc-fade .2s ease; }
.tc-search-overlay[hidden] { display: none; }
.tc-search-overlay__panel { width: min(680px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: var(--tc-bg); color: var(--tc-text); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow); overflow: hidden; }
.tc-search-overlay__form { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--tc-border); color: var(--tc-muted); }
.tc-search-overlay__form input { flex: 1; min-width: 0; border: 0; background: none; color: var(--tc-text); font: 500 1.15rem/1.4 var(--tc-font-head); padding: 12px 0; }
.tc-search-overlay__form input:focus { outline: none; }
.tc-search-overlay__form .tc-iconbtn:hover { background: var(--tc-surface); }
.tc-search-overlay__results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.tc-search-overlay__results a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--tc-radius-sm); }
.tc-search-overlay__results a:hover, .tc-search-overlay__results a:focus-visible { background: var(--tc-surface); color: inherit; }
.tc-search-overlay__results img, .tc-search-overlay__noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; background: var(--tc-surface); }
.tc-search-overlay__results strong { display: block; font: 600 .95rem/1.35 var(--tc-font-head); }
.tc-search-overlay__results small { color: var(--tc-muted); }
.tc-search-overlay__empty { padding: 18px; text-align: center; color: var(--tc-muted); }
@keyframes tc-fade { from { opacity: 0; } }

/* ---------- Pied de page ---------- */
.tc-footer { background: var(--tc-dark); color: rgb(255 255 255 / .72); font-size: .92rem; }
.tc-footer a:hover { color: #fff; }
.tc-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; padding-block: 56px; }
.tc-footer__brand { display: inline-block; font: 800 1.8rem/1 var(--tc-font-head); color: #fff; margin-bottom: 14px; }
.tc-footer__brand::first-letter { color: var(--tc-primary); }
.tc-footer__mail { display: inline-flex; align-items: center; gap: 8px; }
.tc-footer .tc-social { margin-top: 16px; }
.tc-footer .tc-social a { background: rgb(255 255 255 / .08); }
.tc-footer .tc-widget__title { color: #fff; border-bottom-color: rgb(255 255 255 / .12); }
.tc-footer .tc-card--mini { margin-bottom: 14px; }
.tc-footer .tc-card__title a { color: #fff; }
.tc-footer .tc-meta { color: rgb(255 255 255 / .55); }
.tc-footer .tc-thumb { background: rgb(255 255 255 / .06); }
.tc-footer__bottom { border-top: 1px solid rgb(255 255 255 / .08); }
.tc-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; font-size: .82rem; }
.tc-footer__bottom p { margin: 0; }
.tc-footer__menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ---------- Haut de page & toast ---------- */
.tc-totop { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--tc-primary); color: #fff; box-shadow: var(--tc-shadow); }
.tc-totop[hidden] { display: none; }
.tc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; padding: 12px 20px; border-radius: 999px; background: var(--tc-text); color: var(--tc-bg); font-weight: 600; font-size: .9rem; transform: translate(-50%, 20px); opacity: 0; transition: .3s; }
.tc-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tc-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .tc-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .tc-hero { grid-template-columns: 1fr; }
  .tc-layout { grid-template-columns: 1fr; }
  .tc-sidebar__sticky { position: static; }
  .tc-ad--header { display: none; }

  .tc-nav__toggle { display: inline-grid; }
  .tc-nav__menu {
    position: fixed; inset: var(--tc-menu-top, 56px) 0 0; z-index: 99; overflow-y: auto; padding: 12px 16px 40px;
    background: var(--tc-dark); transform: translateX(-100%); transition: transform .25s ease; visibility: hidden;
  }
  .tc-nav__menu.is-open { transform: none; visibility: visible; }
  .tc-menu { flex-direction: column; }
  .tc-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .tc-menu > li > a { flex: 1; padding: 16px 4px; border: 0; font-size: 1rem; }
  .tc-submenu-toggle { width: 44px; height: 44px; margin: 0; }
  .tc-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .tc-menu .sub-menu, .tc-menu .children {
    position: static; width: 100%; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none;
    background: transparent; color: rgb(255 255 255 / .8); box-shadow: none; padding: 0 0 10px 12px;
  }
  .tc-menu li:hover > .sub-menu, .tc-menu li:focus-within > .sub-menu, .tc-menu li:hover > .children { display: none; }
  .tc-menu li.is-open > .sub-menu, .tc-menu li.is-open > .children { display: block; }
  .tc-menu .sub-menu a:hover, .tc-menu .children a:hover { background: rgb(255 255 255 / .06); }
}

@media (max-width: 782px) {
  .admin-bar .tc-nav { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .tc-nav { top: 0; }
}

@media (max-width: 720px) {
  .tc-topbar__menu { display: none; }
  .tc-section--grid .tc-section__body, .tc-related .tc-section__body { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tc-section--feature .tc-section__body { grid-template-columns: 1fr; }
  .tc-card--list { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
  .tc-card--list .tc-badge { display: none; }
  .tc-card--list .tc-card__title { font-size: 1rem; }
  .tc-card--list .tc-card__excerpt { display: none; }
  .tc-card--list .tc-thumb { aspect-ratio: 1; }
  .tc-slider { aspect-ratio: 4 / 5; min-height: 0; }
  .tc-slider__nav { display: none; }
  .tc-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .tc-postnav { grid-template-columns: 1fr; }
  .tc-postnav__next { grid-column: auto; text-align: left; }
  .tc-authorbox { flex-direction: column; }
}

@media (max-width: 440px) {
  .tc-section--grid .tc-section__body, .tc-related .tc-section__body { grid-template-columns: 1fr; }
  .tc-hero__side { grid-template-columns: 1fr; grid-template-rows: none; }
  .tc-hero__side .tc-card--overlay { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .tc-header, .tc-sidebar, .tc-footer, .tc-share, .tc-related, .tc-comments, .tc-totop, .tc-ad { display: none !important; }
  .tc-layout { display: block; }
}


/* ==========================================================================
   Identité TousEnCuisine
   ========================================================================== */
.tc-brand__name, .tc-footer__brand { font-family: var(--tc-font-head); letter-spacing: -.02em; }
.tc-brand__name::first-letter, .tc-footer__brand::first-letter { color: var(--tc-accent); }
.tc-nav::after { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--tc-primary) 0 50%, var(--tc-accent) 50% 80%, var(--tc-herb) 80%); }
.tc-ticker__label { background: var(--tc-accent); color: var(--tc-dark); }
.tc-menu > li > a { font-family: var(--tc-font-body); }
.tc-menu > li > a:hover, .tc-menu > .current-menu-item > a, .tc-menu > .current-menu-ancestor > a, .tc-menu > .current-cat > a { border-bottom-color: var(--tc-accent); }
.tc-badge { background: var(--tc-herb); border-radius: 6px; }
.tc-badge:hover { background: var(--tc-primary); }
.tc-card__title { font-weight: 700; line-height: 1.3; }
.tc-card--grid .tc-thumb, .tc-card--list .tc-thumb { aspect-ratio: 4 / 3; border-radius: var(--tc-radius); }
.tc-card--overlay .tc-thumb::after { background: linear-gradient(180deg, transparent 30%, rgb(43 29 20 / .9)); }
.tc-slide__media::after { background: linear-gradient(180deg, transparent 35%, rgb(43 29 20 / .9)); }
.tc-intro { border-left-color: var(--tc-accent); }
.tc-btn { background: var(--tc-primary); }
.tc-entry__content blockquote { border-left-color: var(--tc-accent); }
.tc-popular li::before { background: var(--tc-accent); color: var(--tc-dark); }
.tc-entry__content ul li::marker { color: var(--tc-primary); }

/* ---------- Boutons recette ---------- */
.tc-btn--small { padding: 8px 14px; font-size: .85rem; }
.tc-btn--ghost { background: transparent; color: var(--tc-text); border: 1px solid var(--tc-border); }
.tc-btn--ghost:hover { background: var(--tc-surface); color: var(--tc-text); }
.tc-btn--recipe { background: var(--tc-herb); }
.tc-recipe-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }

/* ---------- Fiche recette ---------- */
.tc-recipe { margin: 40px 0; padding: clamp(18px, 3vw, 32px); border: 2px solid var(--tc-border); border-radius: var(--tc-radius); background: var(--tc-surface); scroll-margin-top: 90px; font-size: 1rem; line-height: 1.6; }
.tc-recipe h2, .tc-recipe h3, .tc-recipe h4 { margin: 0; }
.tc-recipe__head { display: flex; gap: 18px; align-items: center; }
.tc-recipe__img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 4px solid var(--tc-bg); box-shadow: var(--tc-shadow); flex: none; }
.tc-recipe__kicker { margin: 0 0 4px; color: var(--tc-primary); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.tc-recipe__title { font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.2; }
.tc-recipe__actions { display: flex; gap: 8px; margin-top: 12px; }
.tc-recipe__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 22px 0; padding: 0; }
.tc-recipe__facts div { padding: 12px; border-radius: var(--tc-radius-sm); background: var(--tc-bg); text-align: center; }
.tc-recipe__facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tc-muted); }
.tc-recipe__facts dd { margin: 2px 0 0; font-family: var(--tc-font-head); font-weight: 700; font-size: 1.1rem; }
.tc-recipe__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; }
.tc-recipe__subhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.tc-recipe h3 { font-size: 1.25rem; margin-bottom: 10px; }
.tc-recipe__subhead h3 { margin: 0; }
.tc-recipe h4 { font-size: .95rem; margin: 14px 0 6px; color: var(--tc-primary); }
.tc-recipe ul, .tc-recipe ol { margin: 0; padding: 0; list-style: none; }
.tc-recipe__ingredients li { padding: 7px 0; border-bottom: 1px dashed var(--tc-border); }
.tc-recipe__ingredients label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.tc-recipe__ingredients input { margin-top: 5px; accent-color: var(--tc-herb); width: 18px; height: 18px; flex: none; }
.tc-recipe__ingredients input:checked + span { text-decoration: line-through; opacity: .55; }
.tc-recipe__qty { font-weight: 700; color: var(--tc-primary); }
.tc-servings { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: var(--tc-bg); font-size: .85rem; }
.tc-servings button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--tc-primary); color: #fff; font-size: 1.1rem; line-height: 1; }
.tc-servings output { min-width: 1.5em; text-align: center; font-weight: 700; }
.tc-recipe__steps ol { counter-reset: step; }
.tc-recipe__steps li { counter-increment: step; position: relative; padding: 4px 0 18px 48px; cursor: pointer; }
.tc-recipe__steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tc-accent); color: var(--tc-dark); font-weight: 800; font-family: var(--tc-font-head); }
.tc-recipe__steps li.is-done { opacity: .5; }
.tc-recipe__steps li.is-done::before { content: "✓"; background: var(--tc-herb); color: #fff; }
.tc-recipe__notes { margin-top: 20px; padding: 16px 18px; border-radius: var(--tc-radius-sm); background: var(--tc-bg); border-left: 4px solid var(--tc-accent); }
.tc-recipe__notes p { margin: 6px 0 0; }

@media (max-width: 720px) {
  .tc-recipe__body { grid-template-columns: 1fr; }
  .tc-recipe__head { flex-direction: column; text-align: center; }
  .tc-recipe__actions { justify-content: center; }
}

/* Impression : uniquement la fiche recette */
@media print {
  body.tc-printing-recipe * { visibility: hidden; }
  body.tc-printing-recipe .tc-recipe, body.tc-printing-recipe .tc-recipe * { visibility: visible; }
  body.tc-printing-recipe .tc-recipe { position: absolute; inset: 0 auto auto 0; width: 100%; margin: 0; border: 0; background: #fff; color: #000; }
  .tc-recipe__actions, .tc-servings button, .tc-recipe__ingredients input { display: none !important; }
  .tc-recipe__body { grid-template-columns: 1fr 1.4fr; }
  .tc-entry__content > .tc-recipe-jump { display: none; }
}
