/*
Theme Name: Yasmine Food
Theme URI: https://yasminefood.dz
Author: Yasmine Food
Description: Thème vitrine premium pour Yasmine Food et ses marques Chiuaua & Dziriya. Pages marques, gammes de produits, formulaire de partenariat.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: yasmine-food
*/

:root {
  --cream: #faf6ef;
  --stone: #1c1917;
  --amber: #d97706;
  --yellow: #facc15;
  --yellow-soft: #fefce8;
  --choco: #3b1d0e;
  --choco-dark: #2a140a;
  --choco-soft: #fbf3e8;
  --radius: 2rem;
  --display: "Playfair Display", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --fun: "Luckiest Guy", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--stone); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.05; margin: 0; }
p { margin: 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--amber); }
.italic { font-style: italic; }
.center { text-align: center; }
.muted { opacity: .75; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: 1rem 2rem; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer; transition: transform .3s, gap .3s, box-shadow .3s; box-shadow: 0 15px 35px -10px rgba(0,0,0,.35); font-size: 1rem; }
.btn:hover { transform: translateY(-3px); gap: 1rem; }
.btn-dark { background: var(--stone); color: #fff; }
.btn-black { background: #000; color: #fde047; }
.btn-cream { background: #fde68a; color: var(--choco); }

/* Header (non fixe) */
.site-header { position: relative; z-index: 40; }
.site-header .container { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.site-header.theme-light { background: #fff; }
.site-header.theme-yellow { background: var(--yellow); color: #000; }
.site-header.theme-dark { background: var(--choco-dark); color: #fef3c7; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a { padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: background .2s; }
.main-nav a:hover { background: rgba(0,0,0,.1); }
.theme-dark .main-nav a:hover { background: rgba(255,255,255,.1); }
.main-nav .btn { margin-left: .75rem; padding: .8rem 1.5rem; font-size: .875rem; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: inherit; }
.yf-logo { display: flex; align-items: center; gap: .75rem; }
.yf-logo .badge { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#fbbf24,#f97316,#92400e); display: grid; place-items: center; color: #fff; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.3rem; }
.yf-logo strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 900; }
.yf-logo small { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.brand-logo svg { height: 60px; width: auto; }
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 96px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 1rem 1.5rem 1.5rem; background: inherit; }
  .site-header.open .main-nav { display: flex; background: inherit; }
  .site-header.theme-light .main-nav { background: #fff; }
  .site-header.theme-yellow .main-nav { background: var(--yellow); }
  .site-header.theme-dark .main-nav { background: var(--choco-dark); }
  .main-nav .btn { margin: .5rem 0 0; justify-content: center; }
}

/* Home hero */
.home-hero { text-align: center; padding: 2.5rem 0 5rem; }
.home-hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); margin-top: 1.5rem; }
.grad-text { background: linear-gradient(90deg,#eab308,#f97316,#92400e); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.home-hero p { margin: 1.5rem auto 0; max-width: 40rem; font-size: 1.15rem; color: #57534e; }

.brand-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.brand-split a { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem; }
.brand-split .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s, opacity .6s; }
.brand-split a:hover .bg { transform: scale(1.1); }
.brand-split .inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.brand-split .inner svg { width: min(380px, 80%); height: auto; transition: transform .5s; filter: drop-shadow(0 20px 25px rgba(0,0,0,.3)); }
.brand-split a:hover .inner svg { transform: scale(1.06) rotate(-2deg); }
.brand-split .inner p { margin: 1.5rem 0 2rem; max-width: 24rem; font-weight: 600; }
.split-chiuaua { background: var(--yellow); color: #000; }
.split-chiuaua .bg { opacity: .25; }
.split-chiuaua::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(234,179,8,.8), transparent); }
.split-dziriya { background: var(--choco); color: #fef3c7; }
.split-dziriya .bg { opacity: .3; }
.split-dziriya::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--choco-dark), transparent); }
.brand-split .inner { z-index: 2; }
@media (max-width: 768px) { .brand-split { grid-template-columns: 1fr; } .brand-split a { min-height: 480px; } }

/* Sections */
.section { padding: 7rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 960px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.section h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-top: 1rem; }
.lead { margin-top: 1.5rem; font-size: 1.1rem; color: #57534e; }
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2.5rem; }
.feature { background: #fff; border: 1px solid #e7e5e4; border-radius: 1rem; padding: 1.25rem; }
.feature .ico { font-size: 1.8rem; }
.feature strong { display: block; margin-top: .5rem; }
.feature span { font-size: .875rem; color: #78716c; }
.img-stack { position: relative; }
.img-stack img { border-radius: var(--radius); height: 460px; width: 100%; object-fit: cover; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.img-stack .stat { position: absolute; bottom: -2rem; left: -1.5rem; background: var(--stone); color: #fff; padding: 1.5rem; border-radius: 1rem; }
.img-stack .stat b { font-family: var(--display); font-size: 2.4rem; color: #fbbf24; display: block; }
.img-stack .stat span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }

/* Partner */
.partner { position: relative; overflow: hidden; background: var(--stone); color: #fff; }
.partner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(250,204,21,.18), transparent 45%), radial-gradient(circle at 85% 80%, rgba(180,83,9,.3), transparent 45%); }
.partner .container { position: relative; }
.partner .lead { color: #d6d3d1; }
.partner-yellow { background: var(--yellow); color: #000; }
.partner-yellow::before { display: none; }
.partner-yellow .lead { color: rgba(0,0,0,.75); }
.partner-choco { background: var(--choco); color: #fffbeb; }
.form-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 2rem; backdrop-filter: blur(10px); }
.partner-yellow .form-card { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); }
.yf-form { display: grid; gap: 1rem; }
.yf-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .yf-form .row { grid-template-columns: 1fr; } }
.yf-form input, .yf-form select, .yf-form textarea { width: 100%; padding: 1rem 1.25rem; border-radius: .75rem; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: inherit; font: inherit; }
.partner-yellow .yf-form input, .partner-yellow .yf-form select, .partner-yellow .yf-form textarea { background: #fff; border-color: rgba(0,0,0,.1); }
.yf-form select option { color: #000; }
.yf-form ::placeholder { color: currentColor; opacity: .5; }
.yf-form button { justify-content: center; width: 100%; background: linear-gradient(90deg,#fbbf24,#ea580c); color: #000; }
.partner-yellow .yf-form button { background: #000; color: #fde047; }
.notice { padding: 1rem 1.25rem; border-radius: .75rem; background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.4); margin-bottom: 1rem; font-weight: 600; }

/* Brand pages */
.brand-chiuaua { background: var(--yellow-soft); color: #000; }
.brand-dziriya { background: var(--choco-soft); color: var(--choco-dark); }
.brand-hero { position: relative; overflow: hidden; }
.brand-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-hero .overlay { position: absolute; inset: 0; }
.brand-chiuaua .brand-hero { background: var(--yellow); }
.brand-chiuaua .brand-hero .bg { opacity: .3; mix-blend-mode: multiply; }
.brand-chiuaua .brand-hero .overlay { background: linear-gradient(90deg, var(--yellow), rgba(250,204,21,.8), transparent); }
.brand-dziriya .brand-hero { background: var(--choco); color: #fffbeb; }
.brand-dziriya .brand-hero .bg { opacity: .35; }
.brand-dziriya .brand-hero .overlay { background: linear-gradient(90deg, var(--choco-dark), rgba(59,29,14,.8), transparent); }
.brand-hero .container { position: relative; padding-top: 7rem; padding-bottom: 7rem; }
.brand-hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.brand-chiuaua .brand-hero h1 { font-family: var(--fun); font-weight: 400; letter-spacing: .02em; }
.stroke { color: #fff; -webkit-text-stroke: 2px #000; font-style: italic; }
.brand-hero p { margin: 1.5rem 0 2.5rem; font-size: 1.15rem; max-width: 32rem; opacity: .9; }
.brand-hero .logo-big svg { width: 100%; max-width: 480px; height: auto; margin: 0 auto; filter: drop-shadow(0 25px 30px rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; }
@media (max-width: 960px) { .brand-hero .logo-big { display: none; } }

.marquee { overflow: hidden; padding: 1.25rem 0; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee span { margin: 0 2rem; font-size: 1.25rem; text-transform: uppercase; }
.brand-chiuaua .marquee { background: #000; color: #fde047; }
.brand-chiuaua .marquee span { font-family: var(--fun); letter-spacing: .05em; }
.brand-dziriya .marquee { background: var(--choco-dark); color: #fde68a; }
.brand-dziriya .marquee span { font-family: var(--display); font-style: italic; font-weight: 700; }

.cat-card { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 10px 30px -15px rgba(0,0,0,.3); transition: transform .4s, box-shadow .4s; }
.cat-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.cat-card .media { position: relative; height: 260px; overflow: hidden; }
.cat-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.cat-card:hover .media img { transform: scale(1.1); }
.cat-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.cat-card .emoji { position: absolute; top: 1rem; right: 1rem; font-size: 2.4rem; z-index: 2; }
.cat-card .title { position: absolute; bottom: 1.25rem; left: 1.5rem; z-index: 2; color: #fff; }
.cat-card .title h3 { font-size: 1.6rem; }
.cat-card .title span { font-size: .875rem; opacity: .85; }
.cat-card .foot { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.5rem; font-size: .9rem; }
.cat-card .foot b { color: var(--amber); }
.brand-chiuaua .cat-card .foot b { color: #a16207; }
.brand-dziriya .cat-card .foot b { color: #92400e; }

.univers { text-align: center; }
.brand-chiuaua .univers { background: #000; color: #fde047; }
.brand-dziriya .univers { background: var(--choco-dark); color: #fde68a; }
.univers .e { font-size: 3.6rem; }
.univers h3 { font-size: 1.6rem; margin-top: 1.2rem; }
.univers p { opacity: .7; margin-top: .5rem; }

/* Category page */
.cat-hero { position: relative; height: 340px; overflow: hidden; }
.cat-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero .overlay { position: absolute; inset: 0; }
.brand-chiuaua .cat-hero .overlay { background: linear-gradient(90deg, var(--yellow), rgba(250,204,21,.7), transparent); }
.brand-dziriya .cat-hero .overlay { background: linear-gradient(90deg, var(--choco-dark), rgba(59,29,14,.8), transparent); color: #fffbeb; }
.cat-hero .container { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.brand-dziriya .cat-hero .container { color: #fffbeb; }
.cat-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.cat-hero p { max-width: 36rem; margin-top: 1rem; font-size: 1.1rem; opacity: .9; }
.back { font-size: .875rem; font-weight: 600; opacity: .8; margin-bottom: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 2.5rem; }
.pills a { padding: .6rem 1.25rem; border-radius: 999px; font-size: .875rem; font-weight: 600; background: #fff; border: 1px solid rgba(0,0,0,.12); transition: background .2s; }
.brand-chiuaua .pills a:hover { background: #fef08a; }
.brand-chiuaua .pills a.active { background: #000; color: #fde047; border-color: #000; }
.brand-dziriya .pills a:hover { background: #fef3c7; }
.brand-dziriya .pills a.active { background: var(--choco); color: #fef3c7; border-color: var(--choco); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 3.5rem 0 6rem; }
@media (max-width: 1024px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .products { grid-template-columns: repeat(2, 1fr); } }
.product { background: #fff; border-radius: 1.5rem; overflow: hidden; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 8px 20px -12px rgba(0,0,0,.3); transition: transform .4s, box-shadow .4s; }
.product:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -20px rgba(0,0,0,.4); }
.product .media { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.brand-chiuaua .product .media { background: linear-gradient(135deg,#fef08a,#facc15); }
.brand-dziriya .product .media { background: linear-gradient(135deg,#fef3c7,#fcd34d); }
.product .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.product:hover .media img { transform: scale(1.1); }
.product .body { padding: 1.25rem; }
.product h3 { font-family: var(--body); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.product .tag { display: inline-block; margin-top: .75rem; font-size: .75rem; font-weight: 600; padding: .25rem .75rem; border-radius: 999px; }
.brand-chiuaua .product .tag { background: #fef9c3; color: #854d0e; }
.brand-dziriya .product .tag { background: #fef3c7; color: #78350f; }

/* Footer */
.site-footer { background: #0c0a09; color: #a8a29e; padding: 4rem 0 2rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2.5rem; }
@media (max-width: 768px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .yf-logo strong { color: #fff; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .9rem; }
.site-footer a:hover { color: #facc15; }
.site-footer .bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .75rem; }
.site-footer p { font-size: .9rem; margin-top: 1.25rem; max-width: 24rem; }

/* Generic page */
.page-content { padding: 5rem 0; max-width: 820px; }
.page-content h1 { font-size: 3rem; margin-bottom: 2rem; }

/* Animations */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.hero-in { animation: heroIn 1s ease both; }
.hero-in.d1 { animation-delay: .15s; } .hero-in.d2 { animation-delay: .3s; } .hero-in.d3 { animation-delay: .45s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* =====================================================================
 * v1.1 — Retour fun, langues, réseaux sociaux, actualités, pages légales
 * ================================================================== */

/* Barre de retour vers Yasmine Food */
.backbar { background: #0c0a09; color: #fff; position: relative; z-index: 41; }
.backbar .container { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; padding-top: .5rem; padding-bottom: .5rem; flex-wrap: wrap; }
.back-pill { display: inline-flex; align-items: center; gap: .7rem; padding: .4rem 1.1rem .4rem .45rem; border-radius: 999px; background: linear-gradient(90deg, #facc15, #fb923c, #f472b6); color: #000; font-weight: 700; box-shadow: 0 8px 20px -6px rgba(250,204,21,.6); transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; position: relative; overflow: hidden; }
.back-pill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.5s ease-in-out infinite; }
.back-pill:hover { transform: translateY(-2px) scale(1.04) rotate(-1deg); box-shadow: 0 14px 30px -8px rgba(250,204,21,.8); }
.back-pill .badge { width: 38px; height: 38px; border-radius: 50%; background: #0c0a09; color: #facc15; display: grid; place-items: center; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.15rem; animation: wiggle 2.8s ease-in-out infinite; flex-shrink: 0; }
.back-pill .back-arrow { font-size: 1.3rem; font-weight: 900; margin-inline-start: .3rem; transition: transform .3s; }
.back-pill:hover .back-arrow { transform: translateX(-6px); }
.back-txt { display: flex; flex-direction: column; line-height: 1.1; }
.back-txt strong { font-size: .95rem; }
.back-txt small { font-size: .68rem; font-weight: 600; opacity: .75; }
.back-pill-lg { margin-top: 2.25rem; padding: .55rem 1.5rem .55rem .55rem; }
.back-pill-lg .badge { width: 46px; height: 46px; font-size: 1.35rem; }
.back-pill-lg .back-txt strong { font-size: 1.1rem; }
.crumbs { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #d6d3d1; flex: 1; flex-wrap: wrap; }
.crumbs a { color: #fde68a; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: .4; }
@media (max-width: 700px) { .crumbs { display: none; } .backbar .container { justify-content: space-between; } }

/* Bouton flottant Accueil */
.home-fab { position: fixed; bottom: 1.5rem; inset-inline-start: 1.5rem; z-index: 60; display: flex; align-items: center; gap: .5rem; padding: .45rem 1.1rem .45rem .45rem; background: #0c0a09; color: #fff; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: 0 15px 35px -10px rgba(0,0,0,.55); border: 2px solid #facc15; transition: transform .3s cubic-bezier(.34,1.56,.64,1); animation: fabIn .6s .8s both cubic-bezier(.34,1.56,.64,1); }
.home-fab .badge { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#facc15,#f97316); color: #000; display: grid; place-items: center; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.2rem; }
.home-fab:hover { transform: scale(1.08) rotate(-3deg); }

/* Sélecteur de langue */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.08); margin-inline-start: .5rem; }
.backbar .lang-switch, .theme-dark .lang-switch { background: rgba(255,255,255,.1); }
.lang-switch a { padding: .35rem .7rem !important; border-radius: 999px; font-size: .78rem !important; font-weight: 700; line-height: 1; min-width: 2.2rem; text-align: center; }
.lang-switch a.active { background: #facc15; color: #000; }
.lang-switch a:not(.active):hover { background: rgba(250,204,21,.25) !important; }
.switch-brand { border: 2px dashed currentColor; }

/* Réseaux sociaux */
.socials { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .25rem; }
.soc { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s; }
.soc svg { width: 19px; height: 19px; }
.soc:hover { transform: translateY(-4px) scale(1.1); }
.soc-facebook:hover { background: #1877f2; }
.soc-instagram:hover { background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.soc-linkedin:hover { background: #0a66c2; }
.soc-tiktok:hover { background: #000; box-shadow: 2px 2px 0 #25f4ee, -2px -2px 0 #fe2c55; }
.soc-youtube:hover { background: #ff0000; }
.socials-dark .soc { background: #1c1917; }
.social-float { position: fixed; top: 50%; inset-inline-end: 0; transform: translateY(-50%); z-index: 55; display: flex; flex-direction: column; gap: 2px; background: rgba(12,10,9,.85); backdrop-filter: blur(8px); padding: .4rem; border-start-start-radius: 1rem; border-end-start-radius: 1rem; box-shadow: -8px 0 25px -10px rgba(0,0,0,.4); }
.social-float .soc { width: 38px; height: 38px; background: transparent; }
.social-float .soc svg { width: 17px; height: 17px; }
@media (max-width: 700px) { .social-float { top: auto; bottom: 1.5rem; transform: none; flex-direction: row; border-radius: 999px; inset-inline-end: 1rem; } }

/* Formulaire : consentement */
.consent { display: flex; gap: .6rem; align-items: center; font-size: .85rem; opacity: .85; }
.consent input { width: auto !important; accent-color: #facc15; }
.consent a { text-decoration: underline; }

/* Actualités */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.news-home { background: #fff; }
.news-hero { padding: 5rem 0 1rem; background: radial-gradient(circle at 20% 0%, rgba(250,204,21,.25), transparent 50%), radial-gradient(circle at 90% 30%, rgba(180,83,9,.15), transparent 50%); }
.news-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-top: 1rem; }
.news-hero p { margin: 1.25rem auto 0; max-width: 36rem; color: #57534e; font-size: 1.1rem; }
.news-card { display: flex; flex-direction: column; border-radius: 1.5rem; overflow: hidden; background: #fff; border: 1px solid #e7e5e4; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); transition: transform .4s, box-shadow .4s; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -20px rgba(0,0,0,.35); }
.news-card .media { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.news-card:hover .media img { transform: scale(1.08); }
.news-card .date { position: absolute; top: 1rem; inset-inline-start: 1rem; background: #facc15; color: #000; font-size: .75rem; font-weight: 800; padding: .35rem .8rem; border-radius: 999px; }
.news-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.news-card h3 { font-size: 1.3rem; line-height: 1.25; }
.news-card p { color: #57534e; font-size: .92rem; flex: 1; }
.news-card b { color: var(--amber); font-size: .9rem; }
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination .page-numbers { padding: .6rem 1rem; border-radius: 999px; background: #fff; border: 1px solid #e7e5e4; font-weight: 600; }
.pagination .current { background: #1c1917; color: #fff; }
.article-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.2)); }
.article-hero .container { position: relative; padding-bottom: 3rem; width: 100%; }
.article-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 56rem; margin-top: 1rem; }
.date-pill { display: inline-block; background: #facc15; color: #000; font-weight: 800; font-size: .8rem; padding: .35rem .9rem; border-radius: 999px; margin-inline-start: .75rem; }
.article-body { max-width: 780px; padding-top: 3.5rem; padding-bottom: 5rem; font-size: 1.1rem; line-height: 1.85; }
.article-body p { margin-bottom: 1.25rem; }
.article-body img { border-radius: 1rem; margin: 2rem 0; }
.share { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e7e5e4; }

/* Pages légales */
.legal-hero { padding: 5rem 0 3rem; background: linear-gradient(135deg, #1c1917, #3b1d0e); color: #fff; }
.legal-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 1rem 0; }
.legal-body { max-width: 820px; padding-top: 3.5rem; padding-bottom: 5rem; }
.legal-block { padding: 1.75rem 2rem; background: #fff; border-radius: 1.25rem; border: 1px solid #e7e5e4; margin-bottom: 1rem; }
.legal-block h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.legal-block p { color: #44403c; }

/* Arabe (RTL) */
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .yf-logo strong, [dir="rtl"] .brand-dziriya .marquee span { font-family: "Cairo", var(--body) !important; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .arr, [dir="rtl"] .arr-back, [dir="rtl"] .back-arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .back-pill:hover .back-arrow { transform: scaleX(-1) translateX(-6px); }
[dir="rtl"] .back-pill { padding: .4rem .45rem .4rem 1.1rem; }
[dir="rtl"] .brand-chiuaua .overlay, [dir="rtl"] .brand-dziriya .overlay { transform: scaleX(-1); }
[dir="rtl"] .img-stack .stat { left: auto; right: -1.5rem; }
[dir="rtl"] .brand-chiuaua .brand-hero h1 { font-family: "Cairo", sans-serif !important; font-weight: 900; }
[dir="rtl"] .grad-text { padding: 0 .1em; }

/* Animations */
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes fabIn { from { opacity: 0; transform: translateY(40px) scale(.6); } to { opacity: 1; transform: none; } }
