/*
Theme Name: Hadar Sander Social
Theme URI: https://hadarsander.com/
Author: Hadar Sander
Description: Thème culinaire RTL, visuel et social pour Hadar Sander.
Version: 1.1.4
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: hadarsander
*/

:root {
  --hs-ink: #1d1b19;
  --hs-muted: #6f6963;
  --hs-cream: #fbf7f1;
  --hs-paper: #fffdf9;
  --hs-sage: #798b75;
  --hs-sage-dark: #53644f;
  --hs-clay: #c86e4b;
  --hs-gold: #caa76b;
  --hs-border: rgba(29, 27, 25, .12);
  --hs-shadow: 0 22px 60px rgba(45, 36, 28, .11);
  --hs-radius: 28px;
  --hs-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  color: var(--hs-ink);
  background: var(--hs-cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
.hs-social-handle { direction: ltr; unicode-bidi: isolate; display: inline-block; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(202, 167, 107, .18), transparent 29rem),
    radial-gradient(circle at 92% 28%, rgba(121, 139, 117, .13), transparent 30rem);
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--hs-clay); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
input[type="email"], input[type="url"] { direction: ltr; text-align: left; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { width: auto; height: auto; margin: 1rem; padding: .8rem; clip: auto; background: #fff; z-index: 9999; }
.hs-container { width: min(calc(100% - 40px), var(--hs-max)); margin-inline: auto; }

.hs-site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 241, .9);
  border-bottom: 1px solid var(--hs-border);
  backdrop-filter: blur(18px);
}
.admin-bar .hs-site-header { top: 32px; }
.hs-header-row { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.hs-brand { display: inline-flex; flex-direction: column; line-height: 1; margin-inline-end: auto; }
.hs-brand__name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -.04em; }
.hs-brand__logo { width: auto; max-width: 230px; max-height: 54px; object-fit: contain; }
.hs-brand__tagline { margin-top: 8px; color: var(--hs-muted); font-size: .72rem; letter-spacing: .12em; }
.hs-main-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.hs-main-nav a { font-size: .95rem; font-weight: 650; position: relative; }
.hs-main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -8px; height: 2px; background: var(--hs-clay); transform: scaleX(0); transition: transform .2s ease; }
.hs-main-nav a:hover::after, .hs-main-nav .current-menu-item a::after { transform: scaleX(1); }
.hs-header-socials { display: flex; gap: 9px; }
.hs-search-toggle { flex: 0 0 auto; cursor: pointer; }
.hs-search-panel { border-top: 1px solid var(--hs-border); background: rgba(255,253,249,.97); box-shadow: 0 18px 35px rgba(29,27,25,.08); }
.hs-search-panel[hidden] { display: none; }
.hs-search-panel__inner { display: flex; align-items: center; gap: 12px; padding-block: 16px; }
.hs-search-form { position: relative; display: flex; flex: 1; gap: 10px; }
.hs-search-field { width: 100%; min-height: 52px; padding: 0 20px; border: 1px solid var(--hs-border); border-radius: 999px; color: var(--hs-ink); background: #fff; font: inherit; outline: none; }
.hs-search-field:focus { border-color: var(--hs-clay); box-shadow: 0 0 0 3px rgba(200,110,75,.15); }
.hs-search-submit { min-width: 122px; border: 0; border-radius: 999px; color: #fff; background: var(--hs-ink); font: inherit; font-weight: 750; cursor: pointer; }
.hs-search-submit:hover { background: var(--hs-clay); }
.hs-search-close { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 50%; color: var(--hs-ink); background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.hs-search-close:hover { background: rgba(29,27,25,.07); }
.hs-icon-link, .hs-share-button {
  width: 43px; height: 43px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hs-border); background: var(--hs-paper); color: var(--hs-ink); transition: .2s ease;
}
.hs-icon-link:hover, .hs-share-button:hover { transform: translateY(-3px); color: #fff; background: var(--hs-ink); box-shadow: 0 8px 18px rgba(29,27,25,.16); }
.hs-icon { width: 20px; height: 20px; fill: currentColor; }
.hs-menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.hs-menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: currentColor; }

.hs-hero { padding: clamp(42px, 8vw, 100px) 0 48px; }
.hs-hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(330px, .96fr); align-items: center; gap: clamp(34px, 7vw, 100px); }
.hs-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--hs-clay); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; }
.hs-eyebrow::before { content: ""; width: 35px; height: 1px; background: currentColor; }
.hs-hero h1 { max-width: 780px; margin: 20px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .96; letter-spacing: -.055em; }
.hs-hero p { max-width: 630px; color: var(--hs-muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hs-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--hs-ink); font-weight: 750; transition: .2s ease; cursor: pointer; }
.hs-button--primary { color: #fff; background: var(--hs-ink); }
.hs-button--primary:hover { background: var(--hs-clay); border-color: var(--hs-clay); transform: translateY(-2px); }
.hs-button--soft { border-color: var(--hs-border); background: rgba(255,255,255,.6); }
.hs-button--soft:hover { background: #fff; transform: translateY(-2px); }
.hs-hero-media { position: relative; }
.hs-hero-media::before { content: ""; position: absolute; inset: -18px 22px 18px -18px; border: 1px solid var(--hs-gold); border-radius: var(--hs-radius); }
.hs-hero-media img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--hs-radius); box-shadow: var(--hs-shadow); }
.hs-hero-badge { position: absolute; z-index: 2; inset-inline-start: -22px; bottom: 26px; width: 106px; height: 106px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: #fff; background: var(--hs-clay); border: 6px solid var(--hs-cream); font-size: .78rem; font-weight: 800; transform: rotate(-7deg); }

.hs-category-strip { padding: 12px 0 46px; }
.hs-category-list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.hs-category-list::-webkit-scrollbar { display: none; }
.hs-category-list a { flex: 0 0 auto; padding: 10px 17px; border: 1px solid var(--hs-border); border-radius: 999px; background: rgba(255,255,255,.65); font-weight: 650; }
.hs-category-list a:hover { color: #fff; background: var(--hs-sage-dark); border-color: var(--hs-sage-dark); }

.hs-section { padding: clamp(54px, 8vw, 100px) 0; }
.hs-section--paper { background: var(--hs-paper); border-block: 1px solid var(--hs-border); }
.hs-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.hs-section-head h2, .hs-archive-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; }
.hs-section-head p { max-width: 500px; margin: 0; color: var(--hs-muted); }
.hs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hs-card { min-width: 0; }
.hs-card__image { position: relative; overflow: hidden; border-radius: 22px; background: #e9e1d8; }
.hs-card__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.hs-card:hover .hs-card__image img { transform: scale(1.045); }
.hs-card__category { position: absolute; inset-inline-start: 14px; top: 14px; padding: 7px 12px; border-radius: 999px; color: var(--hs-ink); background: rgba(255,253,249,.92); backdrop-filter: blur(7px); font-size: .73rem; font-weight: 800; }
.hs-card__content { padding: 18px 5px 0; }
.hs-card__meta { display: flex; gap: 9px; color: var(--hs-muted); font-size: .78rem; }
.hs-card h2, .hs-card h3 { margin: 8px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.22; }
.hs-card h2 a:hover, .hs-card h3 a:hover { color: var(--hs-clay); }
.hs-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--hs-muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.hs-pagination { margin-top: 50px; }
.hs-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.hs-pagination a, .hs-pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--hs-border); }
.hs-pagination .current { color: #fff; background: var(--hs-ink); }

.hs-social-stage { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: stretch; }
.hs-social-card { position: relative; overflow: hidden; min-height: 410px; padding: clamp(28px, 5vw, 54px); border-radius: var(--hs-radius); box-shadow: var(--hs-shadow); }
.hs-social-card--instagram { color: #fff; background: radial-gradient(circle at 85% 8%, #ffd36f 0, #f15a3c 27%, #b62bb9 61%, #515bd4 100%); }
.hs-social-card--instagram::after { content: ""; position: absolute; width: 290px; height: 290px; border: 3px solid rgba(255,255,255,.22); border-radius: 32%; inset-inline-end: -80px; bottom: -110px; transform: rotate(16deg); }
.hs-social-card h3 { position: relative; z-index: 1; margin: 22px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1; }
.hs-social-card p { position: relative; z-index: 1; max-width: 420px; font-size: 1.03rem; }
.hs-social-card .hs-button { position: relative; z-index: 1; margin-top: 18px; color: var(--hs-ink); background: #fff; border-color: #fff; }
.hs-social-card--tiktok { background: #111; color: #fff; padding: 24px; }
.hs-social-stage > .hs-social-card--instagram { grid-column: 1; }
.hs-social-stage > .hs-social-card--tiktok { grid-column: 2; }
.hs-instagram-feed {
  grid-column: 1 / -1;
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  background: rgba(255,255,255,.58);
}
.hs-instagram-feed .instagram-media { width: 100% !important; min-width: 0 !important; margin: 0 !important; }
.hs-tiktok-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.hs-tiktok-heading h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.hs-tiktok-embed { min-height: 320px; display: grid; place-items: center; }
.hs-tiktok-embed > * { grid-area: 1 / 1; }
.hs-tiktok-placeholder { text-align: center; color: rgba(255,255,255,.7); }

.hs-social-rail { position: fixed; z-index: 80; inset-inline-end: 18px; top: 46%; display: flex; flex-direction: column; gap: 9px; }
.hs-social-rail .hs-icon-link { background: rgba(255,253,249,.92); box-shadow: 0 8px 24px rgba(29,27,25,.12); }

.hs-archive-header { padding: 72px 0 40px; text-align: center; }
.hs-archive-header p { max-width: 680px; margin: 14px auto 0; color: var(--hs-muted); }

.hs-single { padding: 48px 0 90px; }
.hs-single-header { max-width: 930px; margin: 0 auto 38px; text-align: center; }
.hs-single-header h1 { margin: 16px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: 1.02; letter-spacing: -.05em; }
.hs-single-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; color: var(--hs-muted); }
.hs-single-cover { width: min(100%, 1120px); margin: 0 auto 48px; }
.hs-single-cover img { width: 100%; max-height: 760px; object-fit: cover; border-radius: var(--hs-radius); box-shadow: var(--hs-shadow); }
.hs-article-layout { display: grid; grid-template-columns: minmax(0, 760px) 210px; justify-content: center; align-items: start; gap: 58px; }
.hs-entry-content { min-width: 0; font-size: clamp(1.06rem, 1.4vw, 1.18rem); }
.hs-entry-content > * { max-width: 100%; }
.hs-entry-content p { margin: 0 0 1.3em; }
.hs-entry-content h2, .hs-entry-content h3 { margin: 1.7em 0 .65em; font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.hs-entry-content a { color: var(--hs-clay); text-decoration: underline; text-underline-offset: 3px; }
.hs-entry-content ul, .hs-entry-content ol { padding-inline-start: 1.4em; }
.hs-entry-content blockquote { margin: 2rem 0; padding: 22px 28px; border-inline-start: 4px solid var(--hs-gold); background: #fff; border-radius: 14px; }
.hs-article-aside { position: sticky; top: 120px; }
.hs-follow-box { padding: 22px; border: 1px solid var(--hs-border); border-radius: 20px; background: rgba(255,255,255,.72); }
.hs-follow-box strong { display: block; margin-bottom: 6px; font-family: Georgia, serif; font-size: 1.25rem; }
.hs-follow-box p { margin: 0 0 14px; color: var(--hs-muted); font-size: .9rem; }
.hs-follow-links { display: flex; gap: 8px; }
.hs-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--hs-border); }
.hs-share-row > span { margin-inline-end: 4px; font-weight: 750; }
.hs-share-button--whatsapp:hover { background: #25d366; border-color: #25d366; }
.hs-share-button--facebook:hover { background: #1877f2; border-color: #1877f2; }
.hs-share-feedback { color: var(--hs-sage-dark); font-size: .85rem; }

.hs-comments { max-width: 760px; margin: 70px auto 0; padding-top: 48px; border-top: 1px solid var(--hs-border); }
.hs-comments h2, .hs-comments h3 { font-family: Georgia, serif; }
.comment-list { list-style: none; padding: 0; }
.comment-body { margin-bottom: 18px; padding: 22px; border-radius: 18px; background: var(--hs-paper); border: 1px solid var(--hs-border); }
.comment-meta { color: var(--hs-muted); font-size: .85rem; }
.comment-form input:not([type=submit]), .comment-form textarea { width: 100%; border: 1px solid var(--hs-border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.comment-form .submit { border: 0; border-radius: 999px; padding: 13px 22px; color: #fff; background: var(--hs-ink); cursor: pointer; }

.hs-empty { padding: 90px 0; text-align: center; }
.hs-search-header { max-width: 760px; margin-inline: auto; }
.hs-search-header .hs-search-form { margin-top: 25px; }
.hs-search-query { color: var(--hs-clay); }
.hs-site-footer { padding: 70px 0 28px; color: #fff; background: #1b1a18; }
.hs-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.hs-footer-title { font-family: Georgia, serif; font-size: 2.3rem; }
.hs-footer-copy { max-width: 450px; color: rgba(255,255,255,.68); }
.hs-footer-heading { margin: 0 0 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--hs-gold); }
.hs-footer-links { list-style: none; margin: 0; padding: 0; }
.hs-footer-links li { margin-bottom: 9px; }
.hs-footer-links a:hover { color: var(--hs-gold); }
.hs-footer-socials { display: flex; flex-direction: column; gap: 11px; }
.hs-footer-socials a { display: inline-flex; align-items: center; gap: 10px; }
.hs-footer-socials .hs-icon { width: 22px; height: 22px; }
.hs-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: .82rem; }

@media (max-width: 1000px) {
  .hs-menu-toggle { display: block; }
  .hs-main-nav { display: none; position: absolute; inset-inline: 20px; top: calc(100% + 10px); padding: 20px; border: 1px solid var(--hs-border); border-radius: 18px; background: var(--hs-paper); box-shadow: var(--hs-shadow); }
  .hs-main-nav.is-open { display: block; }
  .hs-main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .hs-main-nav a { display: block; padding: 10px; }
  .hs-hero-grid { grid-template-columns: 1fr 360px; gap: 44px; }
  .hs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-article-layout { grid-template-columns: minmax(0, 760px); }
  .hs-article-aside { position: static; }
  .hs-social-stage { grid-template-columns: 1fr; }
  .hs-social-stage > .hs-social-card--instagram,
  .hs-social-stage > .hs-social-card--tiktok,
  .hs-instagram-feed { grid-column: 1; }
  .hs-instagram-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .admin-bar .hs-site-header { top: 46px; }
  .hs-container { width: min(calc(100% - 28px), var(--hs-max)); }
  .hs-header-row { min-height: 72px; gap: 10px; }
  .hs-header-socials { display: none; }
  .hs-brand__tagline { display: none; }
  .hs-hero { padding-top: 40px; }
  .hs-hero-grid { grid-template-columns: 1fr; }
  .hs-hero-media { max-width: 520px; }
  .hs-hero h1 { font-size: clamp(3.4rem, 18vw, 5rem); }
  .hs-grid { grid-template-columns: 1fr; }
  .hs-section-head { align-items: start; flex-direction: column; }
  .hs-social-rail { inset-inline-end: 10px; top: auto; bottom: 14px; flex-direction: row; }
  .hs-single { padding-top: 32px; }
  .hs-single-header { text-align: start; }
  .hs-single-meta { justify-content: start; }
  .hs-single-cover { margin-bottom: 30px; }
  .hs-single-cover img { border-radius: 18px; }
  .hs-footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hs-footer-bottom { flex-direction: column; }
  .hs-instagram-feed { grid-template-columns: 1fr; padding: 12px; }
  .hs-search-panel__inner { align-items: stretch; }
  .hs-search-form { gap: 7px; }
  .hs-search-field { min-width: 0; padding-inline: 15px; }
  .hs-search-submit { min-width: 88px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
