:root{
  --bg: #fbf4e6;
  --panel: #fff7ea;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --brand: #f39a2b;
  --brand2:#e57c10;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 50% 10%, #fff, var(--bg));
  color: var(--text);
}

.screen-reader-text{position:absolute;left:-9999px}

.r247-container{max-width:1180px;margin:0 auto;padding:0 18px}
.r247-main{min-height:60vh}

/* Header */
.r247-header{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(255, 248, 235, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.r247-header__inner{
  max-width:1180px;
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  gap:14px;
}
.r247-logo img{max-height:40px;width:auto}
.r247-logo__text{font-weight:800;color:var(--brand2);font-size:18px}

.r247-search{flex:1}
.r247-searchform{display:flex;align-items:center;gap:8px;background:#fff;border-radius:999px;padding:8px 10px;box-shadow: 0 4px 14px rgba(0,0,0,.06)}
.r247-searchform__input{border:0;outline:0;width:100%;font-size:14px;background:transparent}
.r247-searchform__btn{border:0;background:transparent;cursor:pointer;font-size:16px}

.r247-menu{list-style:none;display:flex;gap:18px;margin:0;padding:0;align-items:center}
.r247-menu a{
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  padding:8px 12px;
  border-radius:999px;
}
.r247-menu a:hover{background:rgba(243,154,43,.15)}
.r247-menu .current-menu-item > a{background: rgba(243,154,43,.25)}

.r247-iconbtn{
  border:0;background:transparent;cursor:pointer;
  font-size:22px;line-height:1;
  padding:8px 10px;border-radius:12px;
}
.r247-iconbtn:hover{background:rgba(0,0,0,.05)}

.r247-mobilepanel{
  border-top:1px solid rgba(0,0,0,.06);
  background: rgba(255, 248, 235, .95);
}
.r247-mobilepanel__inner{max-width:1180px;margin:0 auto;padding:14px 18px;display:grid;gap:12px}
.r247-menu--mobile{flex-direction:column;align-items:flex-start}
.r247-hide-mobile{display:none}
.r247-mobilebtn{display:block}

/* Hero */
.r247-hero{
  height: 360px;
  background-image: var(--hero);
  background-size: cover;
  background-position: center;
  border-radius: 0 0 26px 26px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.r247-hero__overlay{
  height:100%;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 80%);
  display:flex;
  align-items:center;
}
.r247-hero__content{
  max-width:1180px;
  margin:0 auto;
  padding:0 18px;
  color:#fff;
}
.r247-hero h1{margin:0 0 10px;font-size:36px;line-height:1.1}
.r247-hero p{margin:0 0 16px;opacity:.92;max-width:520px}

.r247-btn{
  display:inline-block;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  color:#fff;
  text-decoration:none;
  padding:10px 16px;
  border-radius:999px;
  font-weight:800;
  box-shadow: 0 10px 18px rgba(229,124,16,.28);
}

/* Sections */
.r247-section{max-width:1180px;margin:22px auto;padding:0 18px}
.r247-section__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.r247-section h2{margin:10px 0 14px;font-size:22px}
.r247-arrows{display:flex;gap:8px}
.r247-arrow{
  border:0;cursor:pointer;
  width:40px;height:40px;border-radius:999px;
  background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.08);
  font-size:20px;
}

.r247-scroll{
  display:flex;
  gap:14px;
  overflow:auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.r247-scroll::-webkit-scrollbar{display:none}

/* Card */
.r247-card{
  min-width: 260px;
  max-width: 260px;
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  overflow:hidden;
  scroll-snap-align: start;
}

.r247-card__media{display:block}
.r247-card__media img{display:block;width:100%;height:auto}
.r247-card__placeholder{height:160px;background:linear-gradient(135deg,#eee,#fff)}
.r247-card__body{padding:12px 12px 14px}
.r247-card__top{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
.r247-card__title{margin:0;font-size:14px;line-height:1.25}
.r247-card__title a{text-decoration:none;color:var(--text)}
.r247-rating{display:flex;align-items:center;gap:4px;font-size:13px;color:#9a6b00}
.r247-rating strong{font-weight:900}
.r247-badges{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.r247-badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(243,154,43,.18);
  color:#6a3b00;
  font-weight:700;
}

/* Categories row */
.r247-cats{
  display:flex;gap:12px;overflow:auto;padding:6px 2px 12px;
  scrollbar-width:none;
}
.r247-cats::-webkit-scrollbar{display:none}
.r247-cat{
  min-width: 120px;
  height: 56px;
  border-radius: 14px;
  background: #1f1f1f;
  color:#fff;
  text-decoration:none;
  display:flex;
  align-items:flex-end;
  padding:10px 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
  position:relative;
  overflow:hidden;
}
.r247-cat::before{
  content:"";
  position:absolute;inset:0;
  background: radial-gradient(120px 60px at 20% 20%, rgba(243,154,43,.35), transparent 60%);
}
.r247-cat__label{position:relative;font-weight:800;font-size:13px}

/* Footer */
.r247-footer{
  margin-top: 26px;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  color:#fff;
  border-radius: 26px 26px 0 0;
}
.r247-footer__inner{
  max-width:1180px;
  margin:0 auto;
  padding:26px 18px;
  display:grid;
  gap:18px;
}
.r247-footer h3{margin:0 0 10px}
.r247-footer a{color:#fff;text-decoration:none;opacity:.95}
.r247-footer a:hover{opacity:1;text-decoration:underline}
.r247-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}

.r247-social{display:flex;gap:10px}
.r247-social a{
  width:38px;height:38px;border-radius:12px;
  background: rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
}

.r247-news{display:flex;gap:10px;background:rgba(255,255,255,.16);padding:10px;border-radius:999px}
.r247-news input{
  flex:1;border:0;outline:0;background:transparent;color:#fff;
}
.r247-news input::placeholder{color:rgba(255,255,255,.8)}
.r247-news button{
  border:0;cursor:pointer;
  background:#fff;color:#8a3d00;font-weight:900;
  padding:9px 14px;border-radius:999px;
}
.r247-footer__bottom{
  max-width:1180px;
  margin:0 auto;
  padding:12px 18px 16px;
  border-top:1px solid rgba(255,255,255,.2);
  display:flex;justify-content:space-between;gap:10px;
  opacity:.95;
}

/* Blog grid / archives */
.r247-grid{
  max-width:1180px;
  margin:18px auto;
  padding:0 18px;
  display:grid;
  gap:18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Les cartes doivent remplir la grille (sinon trop de vide) */
.r247-grid .r247-card{
  width:100%;
  min-width:0;
  max-width:none;
}

@media (min-width: 900px){
  .r247-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:20px;
  }
}


/* Blog grid fallback */
.r247-page-title{max-width:1180px;margin:18px auto 0;padding:0 18px}

/* Responsive */
@media (min-width: 900px){
  .r247-hide-mobile{display:block}
  .r247-mobilebtn{display:none}
  .r247-hero{height:420px;border-radius: 0 0 34px 34px}
  .r247-hero h1{font-size:44px}
  .r247-card{min-width: 280px;max-width:280px}
  .r247-footer__inner{grid-template-columns: 1fr 1.4fr 1fr 1fr;align-items:start}
  }


body{background:#fff}
  .r247-entry{box-shadow:none;border:0;background:#fff}
  .r247-recipe__head{margin-top:0}
  .r247-recipe__title, .r247-breadcrumbs, .r247-recipe__excerpt, .r247-recipe__meta, .r247-recipe__badges{color:#000;text-shadow:none}
}


/* Single recipe */
.r247-muted{opacity:.85}
.r247-dot{margin:0 8px;opacity:.7}
.r247-star{color:#9a6b00}

.r247-recipe__hero{position:relative}
.r247-recipe__overlay{
  height:100%;
  display:flex;
  align-items:flex-end;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.20) 58%, rgba(0,0,0,0) 85%);
}

.r247-recipe__head{
  padding-top: 26px;
  padding-bottom: 22px;
}

.r247-breadcrumbs{
  display:flex;flex-wrap:wrap;gap:8px;
  font-size:13px;
  color:rgba(255,255,255,.92);
  margin-bottom:10px;
  text-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.r247-breadcrumbs a{color:#fff !important;text-decoration:none;font-weight:800}
.r247-breadcrumbs__current{font-weight:900;color:#fff}

.r247-recipe__title{
  margin:0 0 10px;
  color:#fff;
  font-size:32px;
  line-height:1.12;
  text-shadow: 0 10px 28px rgba(0,0,0,.55);
}
@media (min-width: 900px){
  .r247-recipe__title{font-size:46px}
}

.r247-recipe__excerpt{
  margin:0 0 14px;
  max-width: 760px;
  color:rgba(255,255,255,.94);
  text-shadow: 0 10px 28px rgba(0,0,0,.55);
}

.r247-recipe__meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  align-items:center;
  margin-bottom:12px;
  color:#fff;
  text-shadow: 0 10px 28px rgba(0,0,0,.55);
}
.r247-recipe__rating{display:flex;align-items:center;gap:8px}
.r247-recipe__rating strong{font-weight:900}

.r247-recipe__badges{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 16px}
.r247-chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 12px;border-radius:999px;
  background: rgba(243,154,43,.92);
  color:#fff;text-decoration:none;font-weight:900;font-size:13px;
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}
.r247-chip--light{
  background: rgba(255,255,255,.22);
  color:#fff;
  box-shadow: none;
  font-weight:800;
}

.r247-recipe__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:2px}
.r247-btn--ghost{
  background: rgba(255,255,255,.22);
  box-shadow:none;
}
.r247-btn--ghost:hover{filter:brightness(1.05)}
.r247-btn--small{padding:9px 12px;font-size:13px}

.r247-recipe__grid{
  display:grid;
  gap:18px;
  padding-top: 18px;
}
@media (min-width: 900px){
  .r247-recipe__grid{grid-template-columns: minmax(0, 1fr) 340px;align-items:start}
}

.r247-entry{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 16px;
}
@media (min-width: 900px){
  .r247-entry{padding:22px 22px}
}
.r247-entry h2, .r247-entry h3{scroll-margin-top: 90px}

.r247-entry p{line-height:1.75}
.r247-entry img{max-width:100%;height:auto;border-radius:16px}
.r247-entry a{color:#8a3d00;font-weight:800}

.r247-sidecard{
  position: sticky;
  top: 86px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.r247-sidecard h3{margin:0 0 10px}
.r247-sidecard__list{margin:0;padding-left:18px;display:grid;gap:10px;line-height:1.6}
.r247-sidecard__cta{margin-top:14px}

/* Related section */
.r247-related{margin-top:18px}
.r247-related h2{margin:0 0 12px;font-size:20px}
.r247-scroll--cards{padding-bottom: 10px}

/* Print */
@media print{
  .r247-header, .r247-footer, .r247-recipe__actions, .r247-recipe__aside, .r247-related {display:none !important;}
  body{background:#fff}
  .r247-entry{box-shadow:none;border:0;background:#fff}
  .r247-recipe__title, .r247-breadcrumbs, .r247-recipe__excerpt, .r247-recipe__meta, .r247-recipe__badges{color:#000;text-shadow:none}
}


/* Newsletter plugin (Stefano Lissa) styling inside footer */
.r247-footer .tnp-subscription{
  display:flex;
  gap:10px;
  align-items:center;
  background: rgba(255,255,255,.16);
  padding:10px;
  border-radius:999px;
}
.r247-footer .tnp-subscription input[type="email"],
.r247-footer .tnp-subscription input[type="text"]{
  flex:1;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  min-width: 120px;
}
.r247-footer .tnp-subscription input::placeholder{color:rgba(255,255,255,.8)}
.r247-footer .tnp-subscription input[type="submit"],
.r247-footer .tnp-subscription button,
.r247-footer .tnp-subscription .tnp-submit{
  border:0;
  cursor:pointer;
  background:#fff;
  color:#8a3d00;
  font-weight:900;
  padding:9px 14px;
  border-radius:999px;
}
.r247-footer .tnp-subscription label{display:none}

/* Related cards: plus petites */
.r247-related .r247-card{
  min-width: 220px;
  max-width: 220px;
}
@media (min-width: 900px){
  .r247-related .r247-card{
    min-width: 240px;
    max-width: 240px;
  }
}


/* Single recipe hero (image + overlay) */
.r247-recipe__heroimg{
  position:relative;
  height: 340px;
  border-radius: 0 0 26px 26px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 900px){
  .r247-recipe__heroimg{
    height: 460px;
    border-radius: 0 0 34px 34px;
  }
}
.r247-recipe__heroimg-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.r247-recipe__overlay{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  align-items:flex-end;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.20) 58%, rgba(0,0,0,0) 85%);
}


/* Footer menus generated by wp_nav_menu */
.r247-footer .menu{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.r247-footer .menu a{color:#fff;text-decoration:none;opacity:.95}
