/* SCRAPCOOKING — ACCUEIL BLOG DEV V3
   Fichier autonome. Classes sc-blog-* pour limiter les conflits PrestaBlog / Creative Elements.
   Garde les CSS du theme actifs. */

/* Ancienne structure PrestaBlog : suppression des espaces et des contraintes de largeur. */
#module-prestablog-blog #wrapper:has(#sc-blog-home){padding-top:0!important}
#module-prestablog-blog .blog-page__custom-content__wrapper--blog{
  margin-top:0!important;padding-top:0!important;gap:0!important;
  display:flex!important;flex-direction:column!important;
  width:100%;max-width:100%;min-width:0;
}
#module-prestablog-blog .blog-page__custom-content__wrapper--blog > #sc-blog-home,
#module-prestablog-blog .blog-page__custom-content__wrapper--blog .prestablog-home__wrapper.sc-blog-home{
  padding-top:0!important;margin-top:0!important;
  width:100%!important;max-width:100%!important;min-width:0;
}

.sc-blog-home{
  --sc-ink:#5e5e5e;--sc-mint:#E2C194;--sc-mint-dark:#E2C194;
  --sc-line:#e8e8e8;--sc-radius:20px;
  width:100%;max-width:1400px;min-width:0;
  margin:0 auto;color:var(--sc-ink);font-family:"Century Gothic",sans-serif;
}
.sc-blog-home,.sc-blog-home *,.sc-blog-home *::before,.sc-blog-home *::after{box-sizing:border-box}
.sc-blog-home :is(h1,h2,h3,p){font-family:inherit;color:inherit;text-transform:none;letter-spacing:normal}
.sc-blog-home a,.sc-blog-home a:hover{color:inherit;text-decoration:none}
.sc-blog-home button,.sc-blog-home input{font-family:inherit}
.sc-blog-home :is(img,svg){max-width:100%}
.sc-blog-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sc-blog-home a:focus-visible,.sc-blog-home button:focus-visible,.sc-blog-home input:focus-visible{outline:3px solid #E2C194;outline-offset:3px}

/* HERO */
.sc-blog-hero{
  position:relative;isolation:isolate;display:flex;align-items:center;
  margin:0 0 52px;min-height:390px;min-width:0;width:100%;
  border-radius:var(--sc-radius);background:#f8f8f8;
}
.sc-blog-hero__image,.sc-blog-hero__shade{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit}
.sc-blog-hero__image{object-fit:cover;object-position:center center;z-index:-2}
.sc-blog-hero__shade{z-index:-1;background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 34%,rgba(255,255,255,.55) 61%,rgba(255,255,255,.13) 100%)}
.sc-blog-hero__content{position:relative;z-index:1;width:min(100%,850px);min-width:0;padding:48px 50px}
.sc-blog-eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:.11em;margin-bottom:14px}
.sc-blog-home .sc-blog-hero h1{font-size:clamp(28px,3.4vw,43px)!important;line-height:1.16!important;font-weight:600!important;margin:0 0 18px}
.sc-blog-hero__content>p{max-width:570px;font-size:15px;line-height:1.5;margin:0 0 22px}
.sc-blog-search{position:relative;width:100%;max-width:735px;min-width:0}
.sc-blog-search__line{display:flex;gap:8px;align-items:stretch;background:#fff;border:1px solid #d8d8d8;box-shadow:0 3px 15px rgba(0,0,0,.06);border-radius:15px;padding:7px;min-height:55px;max-width:100%}
.sc-blog-search__line input{background:transparent!important;min-width:0;width:0;flex:1;border:0!important;padding:10px 14px!important;outline:none!important;color:var(--sc-ink)!important;font-size:14px;box-shadow:none!important}
.sc-blog-search__line button{flex:0 0 auto;border:0;border-radius:11px;background:var(--sc-mint);color:var(--sc-mint-dark);font-size:14px;padding:0 22px;cursor:pointer}
.sc-blog-search__line button:hover{background:#E2C194}
.sc-blog-search__results{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:20;max-height:300px;overflow-y:auto;background:#fff;border:1px solid var(--sc-line);border-radius:14px;box-shadow:0 12px 25px rgba(0,0,0,.09);list-style:none;margin:0;padding:8px}
.sc-blog-search__results[hidden],.sc-blog-search__results li[hidden]{display:none!important}
.sc-blog-search__results a{display:block;padding:10px 12px;border-radius:8px;font-size:13px}
.sc-blog-search__results a:hover,.sc-blog-search__results a:focus{background:#E2C194;color:var(--sc-mint-dark)}
.sc-blog-trends{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px;font-size:12px}
.sc-blog-trend{background:#fff;border:1px solid #ddd;color:var(--sc-ink);border-radius:999px;padding:7px 11px;font-size:12px;cursor:pointer}
.sc-blog-trend:hover{border-color:#E2C194}

/* SECTIONS */
.sc-blog-section{margin:0 0 56px;min-width:0;width:100%}
.sc-blog-section__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;min-width:0}
.sc-blog-home .sc-blog-section__header h2{font-size:clamp(24px,2.3vw,34px)!important;font-weight:500!important;line-height:1.2!important;margin:0!important;min-width:0}

/* A LA UNE : vrai carrousel responsive, sans debordement horizontal de la page */
.sc-blog-featured__controls{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.sc-blog-featured__controls button{width:38px;height:38px;border:1px solid #E2C194;border-radius:50%;background:#fff;color:var(--sc-ink);display:grid;place-items:center;font-size:18px;cursor:pointer;transition:background .2s ease}
.sc-blog-featured__controls button:hover:not(:disabled){background:var(--sc-mint)}
.sc-blog-featured__controls button:disabled{opacity:.35;cursor:default}
.sc-blog-featured__viewport{width:100%;max-width:100%;min-width:0;overflow:hidden}
.sc-blog-featured__track{display:flex;gap:18px;min-width:0;width:100%;max-width:100%;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain;padding-bottom:2px}
.sc-blog-featured__track::-webkit-scrollbar{display:none}
.sc-blog-featured__card{flex:0 0 calc((100% - 36px)/3);min-width:0;border:1px solid #ececec;border-radius:var(--sc-radius);overflow:hidden;background:#fff;scroll-snap-align:start}
.sc-blog-featured__card>a{display:block;height:100%}
.sc-blog-featured__card img{display:block;width:100%;height:220px;object-fit:cover;transition:transform .35s ease}
.sc-blog-featured__card:hover img{transform:scale(1.025)}
.sc-blog-featured__content{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:7px;padding:17px}
.sc-blog-featured__small{grid-column:1/-1;font-size:11px;color:#777}
.sc-blog-featured__title{min-width:0;font-size:15px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.sc-blog-featured__icon{height:34px;width:34px;flex-shrink:0;border-radius:50%;background:#E2C194;display:grid;place-items:center;color:var(--sc-ink)}
.sc-blog-featured__icon svg{display:block;width:18px;height:18px}

/* CATEGORIES : design V1 conserve */
.sc-blog-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;width:100%;min-width:0}
.sc-blog-category{position:relative;aspect-ratio:1/1;min-width:0;display:flex;align-items:flex-end;padding:15px;overflow:hidden;border-radius:var(--sc-radius);background:#dedede}
.sc-blog-category img,.sc-blog-category__overlay{position:absolute;inset:0;height:100%;width:100%}
.sc-blog-category img{object-fit:cover;transition:transform .35s ease}
.sc-blog-category__overlay{background:linear-gradient(0deg,rgba(0,0,0,.44) 0%,rgba(0,0,0,.14) 65%,rgba(0,0,0,.08) 100%)}
.sc-blog-category__name{position:relative;z-index:1;color:#fff!important;font-weight:700;font-size:14px;line-height:1.3;text-shadow:0 1px 4px rgba(0,0,0,.3);overflow-wrap:break-word}
.sc-blog-category:hover img{transform:scale(1.05)}

/* RECETTES ET PAGINATION AJAX */
.sc-blog-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px;min-width:0}
.sc-blog-tabs>button,.sc-blog-tabs__current{border-radius:999px;padding:11px 19px;border:1px solid #e4e4e4;background:#f8f8f8;color:var(--sc-ink);font-size:13px;line-height:1.1}
.sc-blog-tabs>button:disabled{opacity:.55;cursor:not-allowed}
.sc-blog-tabs>button.sc-blog-tabs__current{background:var(--sc-mint);border-color:var(--sc-mint);color:var(--sc-mint-dark);font-weight:700}
.sc-blog-home #blog_list.sc-blog-recipe-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch;gap:20px;margin:0;padding:0;list-style:none;min-width:0;max-width:100%;width:100%}
.sc-blog-home #blog_list.sc-blog-recipe-grid>.sc-blog-recipe-card{width:100%!important;min-width:0;height:auto!important;float:none!important;margin:0!important;padding:0!important;display:block}
.sc-blog-home #blog_list.sc-blog-recipe-grid>.sc-blog-recipe-card[hidden]{display:none!important}
.sc-blog-home .sc-blog-recipe-card>.block_cont{display:flex!important;flex-direction:column!important;border:1px solid #ededed!important;background:#fff!important;border-radius:var(--sc-radius);overflow:hidden;height:100%}
.sc-blog-recipe-card__image{display:block;aspect-ratio:4/3;overflow:hidden;background:#f7f7f7;flex:0 0 auto}
.sc-blog-recipe-card__image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.sc-blog-recipe-card:hover img{transform:scale(1.04)}
.sc-blog-recipe-card__body{padding:16px;display:flex;flex-direction:column;gap:10px;flex:1;min-width:0}
.sc-blog-home .sc-blog-recipe-card__body h3{font-size:15px!important;font-weight:600!important;line-height:1.45!important;margin:0;overflow-wrap:anywhere}
.sc-blog-recipe-card__date{margin-top:auto;font-size:12px;color:#868686}
.sc-blog-js-ready .sc-blog-server-pagination{display:none!important}
.sc-blog-pager:not([hidden]){display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:34px}
.sc-blog-pager__prev,.sc-blog-pager__next{padding:12px 18px;background:#fff;color:var(--sc-ink);border:1px solid #E2C194;border-radius:999px;font-size:13px;cursor:pointer}
.sc-blog-pager__next{background:var(--sc-mint)}
.sc-blog-pager button:hover:not(:disabled){background:#E2C194}
.sc-blog-pager button:disabled{opacity:.35;cursor:default;background:#f6f6f6}
.sc-blog-pager__label{font-size:13px;font-weight:600;white-space:nowrap}
.sc-blog-pager[hidden]{display:none!important}

/* Responsive : pas de largeur fixe ni de debordement à droite. */
@media(max-width:1150px){
  .sc-blog-featured__card{flex-basis:calc((100% - 18px)/2)}
  .sc-blog-categories{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sc-blog-home #blog_list.sc-blog-recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:767px){
  #module-prestablog-blog .blog-page__custom-content__wrapper--blog{margin-top:0!important;padding-top:0!important}
  .sc-blog-hero{min-height:0;margin-bottom:38px}
  .sc-blog-hero__image{object-position:65% center}
  .sc-blog-hero__shade{background:linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.88) 60%,rgba(255,255,255,.66) 100%)}
  .sc-blog-hero__content{width:100%;padding:32px 20px}
  .sc-blog-home .sc-blog-hero h1{font-size:clamp(25px,6.2vw,31px)!important}
  .sc-blog-hero__content>p{font-size:14px}
  .sc-blog-search__line{min-height:51px;padding:5px}
  .sc-blog-search__line input{font-size:12px;padding:9px!important}
  .sc-blog-search__line button{font-size:12px;padding:0 12px}
  .sc-blog-trends{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;max-width:100%;padding-bottom:4px}
  .sc-blog-trends>span,.sc-blog-trend{flex-shrink:0}
  .sc-blog-section{margin-bottom:40px}
  .sc-blog-section__header{margin-bottom:16px}
  .sc-blog-home .sc-blog-section__header h2{font-size:clamp(23px,5.5vw,28px)!important}
  .sc-blog-featured__card{flex-basis:min(85%,330px)}
  .sc-blog-featured__card img{height:195px}
  .sc-blog-featured__content{padding:14px}
  .sc-blog-featured__controls button{width:34px;height:34px}
  .sc-blog-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .sc-blog-category{padding:12px}
  .sc-blog-category__name{font-size:13px}
  .sc-blog-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:4px}
  .sc-blog-tabs>button,.sc-blog-tabs__current{white-space:nowrap;padding:10px 14px}
  .sc-blog-home #blog_list.sc-blog-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
  .sc-blog-recipe-card__body{padding:12px}
  .sc-blog-home .sc-blog-recipe-card__body h3{font-size:13px!important}
  .sc-blog-pager:not([hidden]){gap:10px}
  .sc-blog-pager__prev,.sc-blog-pager__next{padding:11px 14px}
}
@media(max-width:360px){
  .sc-blog-hero__content{padding:25px 14px}
  .sc-blog-search__line button{padding:0 9px}
  .sc-blog-category__name{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.sc-blog-home *{scroll-behavior:auto!important;transition:none!important}}

/* ========================================================================== */
/* V3 — HERO cover centre, resultats illustres, categories recettes, guides     */
/* ========================================================================== */

/* Background unique couvrant toute la surface du bloc, centre aux deux axes. */
.sc-blog-home .sc-blog-hero{
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.92) 35%,rgba(255,255,255,.43) 62%,rgba(255,255,255,.12) 100%),
    url('https://www.scrapcooking.fr/modules/prestablog/views/img/grid-for-1-7/up-img/735.jpg?a1e0aed54e7bb8ae996d3f23296a2c45');
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
}
/* Deprecation V2 : les elements img/shade du hero ont ete supprimes du TPL. */
.sc-blog-hero__image,.sc-blog-hero__shade{display:none}

/* Resultats de recherche : vignette, categorie, titre, icone. */
.sc-blog-search__results{padding:7px;max-height:min(410px,65vh);overscroll-behavior:contain}
.sc-blog-home .sc-blog-search__results li{margin:0;padding:0;list-style:none}
.sc-blog-home .sc-blog-search__results a{
  display:grid;grid-template-columns:60px minmax(0,1fr) 20px;align-items:center;
  gap:12px;padding:8px;border-radius:11px;min-height:70px;
}
.sc-blog-search__thumb{display:block;width:60px;height:54px;overflow:hidden;border-radius:9px;background:#f4f5f2}
.sc-blog-search__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.sc-blog-search__info{display:flex;flex-direction:column;gap:4px;min-width:0}
.sc-blog-search__title{font-weight:600;line-height:1.36;font-size:13px;overflow-wrap:anywhere}
.sc-blog-search__category{font-size:11px;color:#E2C194;line-height:1.25}
.sc-blog-search__chevron{font-size:17px;color:#E2C194;text-align:center}
.sc-blog-search__empty{display:block!important;margin:0;padding:12px;color:#777;font-size:13px}
.sc-blog-search__empty[hidden]{display:none!important}

/* Pastilles de vraie categorie PrestaBlog sur toutes les cartes disponibles. */
.sc-blog-recipe-card__image,.sc-blog-featured__media{position:relative}
.sc-blog-featured__media{display:block;overflow:hidden;background:#f7f7f7}
.sc-blog-featured__media img{width:100%;height:220px;object-fit:cover;display:block}
.sc-blog-recipe-badge{
  position:absolute;z-index:2;left:12px;bottom:12px;max-width:calc(100% - 24px);
  display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding:7px 11px;border-radius:100px;
  color:#E2C194!important;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.95);
  font-size:11px;line-height:1.15;font-weight:700;
  box-shadow:0 2px 10px rgba(0,0,0,.07);
}
.sc-blog-featured__card:hover .sc-blog-recipe-badge,
.sc-blog-recipe-card:hover .sc-blog-recipe-badge{background:#E2C194}

/* Nouvelle section conseils et astuces. */
.sc-blog-guides{margin-top:10px}
.sc-blog-guides__eyebrow{display:block;color:#E2C194;font-size:11px;font-weight:700;letter-spacing:.12em;margin-bottom:10px}
.sc-blog-guides__intro{font-size:14px;line-height:1.55;color:#767676;margin:10px 0 0;max-width:780px}
.sc-blog-guides__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sc-blog-guide-card{min-width:0;min-height:100%;border-radius:var(--sc-radius);border:1px solid #ececec;overflow:hidden;background:#fff}
.sc-blog-guide-card__link{display:flex;flex-direction:column;height:100%;min-width:0}
.sc-blog-guide-card__media{display:block;position:relative;background:#f8f8f8;aspect-ratio:1.78;overflow:hidden}
.sc-blog-guide-card__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.sc-blog-guide-card__link:hover .sc-blog-guide-card__media img{transform:scale(1.04)}
.sc-blog-guide-card__tag{position:absolute;left:14px;bottom:14px;background:rgba(255,255,255,.96);border-radius:999px;color:#E2C194;font-weight:700;font-size:10px;letter-spacing:.03em;padding:8px 12px}
.sc-blog-guide-card__body{display:flex;flex-direction:column;gap:9px;min-width:0;padding:18px 18px 20px;flex:1}
.sc-blog-guide-card__body strong{font-size:16px;line-height:1.42;font-weight:700;overflow-wrap:anywhere}
.sc-blog-guide-card__body>span:not(.sc-blog-guide-card__cta){font-size:13px;color:#757575;line-height:1.55}
.sc-blog-guide-card__cta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:9px;font-size:12px;font-weight:700;color:#E2C194}
.sc-blog-guide-card__cta>span{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#E2C194;font-size:18px}

/* Petit outil editorial : mesures et equivalences standards de volume / masse. */
.sc-blog-measures{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;min-width:0;margin-top:20px;padding:22px 24px;background:#E2C194;border-radius:var(--sc-radius);border:1px solid #E2C194}
.sc-blog-measures__intro{display:flex;align-items:center;gap:16px;min-width:0;flex:1 1 340px}
.sc-blog-measures__icon{display:grid;place-items:center;flex:0 0 45px;height:45px;border-radius:13px;background:#E2C194;color:#E2C194;font-size:23px}
.sc-blog-measures__intro strong{display:block;font-size:16px;line-height:1.35}
.sc-blog-measures__intro p{font-size:13px;line-height:1.5;margin:5px 0 0;color:#E2C194}
.sc-blog-measures__details{flex:0 0 auto;min-width:0}
.sc-blog-measures__details summary{display:flex;align-items:center;justify-content:center;gap:15px;list-style:none;border:1px solid #E2C194;border-radius:999px;padding:11px 18px;background:#fff;cursor:pointer;color:#E2C194;font-size:13px;font-weight:700}
.sc-blog-measures__details summary::-webkit-details-marker{display:none}
.sc-blog-measures__details[open]{width:100%;flex:1 1 100%}
.sc-blog-measures__details[open] summary{width:max-content;max-width:100%;margin-left:auto}
.sc-blog-measures__table-wrap{padding:16px 0 0}
.sc-blog-measures__table-wrap table{width:100%;border-collapse:collapse;font-size:13px;background:transparent}
.sc-blog-measures__table-wrap th,.sc-blog-measures__table-wrap td{padding:12px 10px;text-align:left;border-bottom:1px solid #E2C194;color:#E2C194;font-weight:400}
.sc-blog-measures__table-wrap th{font-weight:600}
.sc-blog-measures__table-wrap td{text-align:right;font-weight:700}
.sc-blog-measures__table-wrap p{margin:12px 0 0;font-size:12px;line-height:1.5;color:#777}
.sc-blog-guides__footer{display:flex;flex-wrap:wrap;gap:12px 25px;margin-top:22px}
.sc-blog-guides__footer a{font-size:13px;font-weight:700;color:#E2C194!important;border-bottom:1px solid #E2C194;padding:0 0 6px}
.sc-blog-guides__footer a span{margin-left:8px}
.sc-blog-guides__footer a:hover{color:#E2C194!important}

@media(max-width:1024px){
  .sc-blog-guides__grid{gap:14px}
  .sc-blog-guide-card__body{padding:14px}
  .sc-blog-guide-card__body strong{font-size:14px}
}
@media(max-width:767px){
  .sc-blog-home .sc-blog-hero{
    background-image:linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.80)),
      url('https://www.scrapcooking.fr/modules/prestablog/views/img/grid-for-1-7/up-img/735.jpg?a1e0aed54e7bb8ae996d3f23296a2c45');
    background-size:cover;background-position:center center;
  }
  .sc-blog-search__results{max-height:min(350px,60vh)}
  .sc-blog-home .sc-blog-search__results a{grid-template-columns:50px minmax(0,1fr) 18px;gap:8px}
  .sc-blog-search__thumb{width:50px;height:50px}
  .sc-blog-featured__media img{height:195px}
  .sc-blog-recipe-badge{font-size:10px;left:9px;bottom:9px;padding:6px 9px;max-width:calc(100% - 18px)}
  .sc-blog-guides__grid{grid-template-columns:1fr;gap:14px}
  .sc-blog-guide-card__link{flex-direction:row}
  .sc-blog-guide-card__media{flex:0 0 37%;width:37%;min-width:0;aspect-ratio:auto}
  .sc-blog-guide-card__body{padding:14px;gap:6px}
  .sc-blog-guide-card__body strong{font-size:14px}
  .sc-blog-guide-card__body>span:not(.sc-blog-guide-card__cta){font-size:12px}
  .sc-blog-guide-card__tag{left:8px;bottom:8px;font-size:9px;padding:6px 8px;max-width:calc(100% - 16px);white-space:normal}
  .sc-blog-measures{padding:17px;gap:12px}
  .sc-blog-measures__details{width:100%;flex:1 1 100%}
  .sc-blog-measures__details summary{width:100%;justify-content:space-between}
}
@media(max-width:380px){
  .sc-blog-guide-card__media{flex-basis:34%;width:34%}
  .sc-blog-guide-card__body{padding:10px}
  .sc-blog-guide-card__body>span:not(.sc-blog-guide-card__cta){display:none}
  .sc-blog-recipe-badge{font-size:9px}
}

/* Suggestions inspirees meme avant de saisir une requete. */
.sc-blog-search__heading{display:block!important;padding:9px 12px 5px!important;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#E2C194}
.sc-blog-search__heading[hidden]{display:none!important}

/* ===========================================================================
   V4 — Hero cover visible, superposition recherche, typographie, minimalisme.
   =========================================================================== */
.sc-blog-home .sc-blog-hero{
  position:relative;z-index:60!important;isolation:auto!important;
  overflow:visible!important;background-color:#f8f8f8;
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.90) 0%,rgba(255,255,255,.68) 32%,rgba(255,255,255,.18) 58%,rgba(255,255,255,0) 82%),
    url('https://www.scrapcooking.fr/modules/prestablog/views/img/grid-for-1-7/up-img/735.jpg?a1e0aed54e7bb8ae996d3f23296a2c45')!important;
  background-position:center center,center center!important;
  background-size:100% 100%,cover!important;
  background-repeat:no-repeat,no-repeat!important;
}
.sc-blog-home .sc-blog-search{z-index:200!important}
.sc-blog-home .sc-blog-search__results{z-index:300!important;box-shadow:0 20px 48px rgba(0,0,0,.16)}
.sc-blog-home .sc-blog-featured{position:relative;z-index:1}
/* Typographie blog : Century Gothic sur tous les elements. */
/* Les coins arrondis du conteneur carte sont conserves ; l'image interne reste carree. */
.sc-blog-home .sc-blog-featured__card .sc-blog-featured__media,
.sc-blog-home .sc-blog-featured__card .sc-blog-featured__media img,
.sc-blog-home .sc-blog-featured__card:hover .sc-blog-featured__media,
.sc-blog-home .sc-blog-featured__card:hover .sc-blog-featured__media img,
.sc-blog-home .sc-blog-featured__card a:hover img{
  border-radius:0!important;
}
/* Palette plus sobre : le vert se limite principalement aux CTA prioritaires. */
.sc-blog-home .sc-blog-search__results a:is(:hover,:focus){background:#f8f8f8;color:#5e5e5e}
.sc-blog-home .sc-blog-search__category,.sc-blog-home .sc-blog-search__chevron{color:#777}
.sc-blog-home .sc-blog-search__heading{color:#777}
.sc-blog-home .sc-blog-recipe-card:hover .sc-blog-recipe-badge,
.sc-blog-home .sc-blog-featured__card:hover .sc-blog-recipe-badge{background:#f8f8f8}
.sc-blog-home .sc-blog-guide-card__tag{color:#5e5e5e}
.sc-blog-home .sc-blog-guide-card__cta{color:#5e5e5e}
.sc-blog-home .sc-blog-guide-card__cta>span{background:#f8f8f8}
.sc-blog-home .sc-blog-guides__all{font-size:13px;font-weight:600;white-space:nowrap;color:#5e5e5e;text-decoration:underline;text-underline-offset:5px}
.sc-blog-home .sc-blog-guides__all:hover{color:#333}
.sc-blog-guides__fallback{grid-column:1/-1;border:1px solid #ebebeb;border-radius:20px;padding:28px;font-size:14px;color:#5e5e5e;background:#fff}
.sc-blog-guides__fallback a{text-decoration:underline;color:#5e5e5e}
.sc-blog-home .sc-blog-measures{background:#f8f8f8!important;border:1px solid #ededed!important;color:#5e5e5e!important}
.sc-blog-home .sc-blog-measures__icon{background:#eeeeee!important;color:#5e5e5e!important}
.sc-blog-home .sc-blog-measures__intro :is(strong,p),
.sc-blog-home .sc-blog-measures__details summary,
.sc-blog-home .sc-blog-measures__table-wrap :is(th,td,p){color:#5e5e5e!important}
.sc-blog-home .sc-blog-measures__details summary{border-color:#dedede!important;background:#fff!important}
.sc-blog-home .sc-blog-measures__table-wrap :is(th,td){border-color:#e1e1e1!important}

/* SECTION BOUTIQUE : visuels ronds, carrousel contenu et sans debordement. */
.sc-blog-shop{display:grid;grid-template-columns:minmax(210px,26%) minmax(0,1fr);gap:30px;align-items:center;
  padding:32px 30px;border-radius:var(--sc-radius);background:#f8f8f8;border:1px solid #f1f1f1}
.sc-blog-shop__intro{min-width:0}
.sc-blog-home .sc-blog-shop__intro h2{font-size:clamp(28px,2.7vw,41px)!important;line-height:1.16!important;font-weight:500!important;
  margin:12px 0 18px;color:#5e5e5e!important}
.sc-blog-shop__intro h2 em{font-style:italic}
.sc-blog-shop__intro>p{font-size:14px;line-height:1.65;margin:0 0 18px;color:#5e5e5e}
.sc-blog-shop__cta{display:inline-flex;gap:9px;align-items:center;font-size:13px;font-weight:700;
  color:#5e5e5e!important;text-decoration:underline!important;text-underline-offset:5px}
.sc-blog-shop__carousel{min-width:0;overflow:hidden}
.sc-blog-shop__track{display:flex;gap:18px;min-width:0;max-width:100%;overflow-x:auto;scroll-snap-type:x mandatory;
  scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;padding:4px 2px 10px}
.sc-blog-shop__track::-webkit-scrollbar{display:none}
.sc-blog-shop__item{flex:0 0 clamp(150px,23%,220px);min-width:0;text-align:center;scroll-snap-align:start;
  display:flex;flex-direction:column;align-items:center;gap:12px}
.sc-blog-shop__picture{display:block;width:100%;aspect-ratio:1/1;border-radius:50%;overflow:hidden;background:#eee}
.sc-blog-shop__picture img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0!important;transition:transform .3s ease}
.sc-blog-shop__item:hover img{transform:scale(1.06)}
.sc-blog-shop__name{font-size:14px;line-height:1.35;font-weight:600;color:#5e5e5e}
.sc-blog-shop__controls{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.sc-blog-shop__controls button{width:38px;height:38px;border:1px solid #dcdcdc;border-radius:50%;color:#5e5e5e;background:#fff;
  font-size:20px;display:grid;place-items:center;cursor:pointer}
.sc-blog-shop__controls button:disabled{opacity:.3;cursor:default}
.sc-blog-shop__controls button:hover:not(:disabled){background:#eee}
@media(max-width:1024px){
  .sc-blog-shop{grid-template-columns:minmax(190px,28%) minmax(0,1fr);gap:20px;padding:24px}
  .sc-blog-shop__item{flex-basis:clamp(135px,38%,190px)}
}
@media(max-width:767px){
  .sc-blog-home .sc-blog-hero{
    background-image:linear-gradient(90deg,rgba(255,255,255,.89),rgba(255,255,255,.55)),
      url('https://www.scrapcooking.fr/modules/prestablog/views/img/grid-for-1-7/up-img/735.jpg?a1e0aed54e7bb8ae996d3f23296a2c45')!important;
    background-position:center center,center center!important;background-size:100% 100%,cover!important;
  }
  .sc-blog-shop{display:block;padding:22px 16px}
  .sc-blog-shop__intro{margin-bottom:20px}
  .sc-blog-home .sc-blog-shop__intro h2{font-size:27px!important;margin:7px 0 10px}
  .sc-blog-shop__item{flex-basis:clamp(128px,44%,175px)}
  .sc-blog-shop__name{font-size:13px}
  .sc-blog-home .sc-blog-guides__all{font-size:12px;white-space:normal}
}

@media(max-width:767px){.sc-blog-home .sc-blog-guides>.sc-blog-section__header{flex-direction:column;align-items:flex-start;gap:10px}}

.sc-blog-guides__fallback[hidden]{display:none!important}

/* V6 sans police additionnelle — Hero bord à bord et recherche enrichie. */

/* Faire déborder UNIQUEMENT l'arrière-plan, pas le contenu ou les carrousels. */
html:has(#sc-blog-home), body:has(#sc-blog-home){overflow-x:clip}
#module-prestablog-blog .blog-page__custom-content__wrapper--blog,
#module-prestablog-blog .prestablog-home__wrapper.sc-blog-home{overflow:visible!important}
.sc-blog-home .sc-blog-hero {
  background:transparent!important;
  background-image:none!important;
  position:relative!important;
  border-radius:0!important;
  isolation:isolate!important;
  overflow:visible!important;
  z-index:70!important;
  margin-top:0!important;
}
.sc-blog-home .sc-blog-hero::before,
.sc-blog-home .sc-blog-hero::after {
  content:"";
  position:absolute;
  top:0;bottom:0;
  left:50%;transform:translateX(-50%);
  width:100vw;
  pointer-events:none;
}
.sc-blog-home .sc-blog-hero::before {
  z-index:-2;
  background: #f8f8f8 url('../img/blog-hero/hero-hd-v2.png') center center / cover no-repeat;
}
.sc-blog-home .sc-blog-hero::after {
  z-index:-1;
  background:linear-gradient(90deg,rgba(255,255,255,.94),rgba(255,255,255,.78) 33%,rgba(255,255,255,.21) 72%,rgba(255,255,255,.05));
}
.sc-blog-home .sc-blog-hero__content{max-width:100%}
.sc-blog-home .sc-blog-search {z-index:210!important}
.sc-blog-home .sc-blog-search__results {z-index:400!important}

/* Petits titres éditoriaux : Century Gothic, style sobre et lisible. */
.sc-blog-home .sc-blog-eyebrow,
.sc-blog-home .sc-blog-guides__eyebrow,
.sc-blog-home .sc-blog-shop__eyebrow,
.sc-blog-home .sc-blog-search-page__overline {
  font-family:"Century Gothic", sans-serif!important;
  font-weight:700!important;
  text-transform:uppercase!important;
  letter-spacing:.1em!important;
  font-size:12px!important;
  line-height:1.4!important;
  color:#5e5e5e!important;
}

/* Les anciennes règles du thème font des arrondis sur les IMG.
   Conserver l'arrondi éventuel sur le bas du bloc texte, PAS sur la photo. */
#module-prestablog-blog .sc-blog-home .sc-blog-featured__card,
#module-prestablog-blog .sc-blog-home .sc-blog-recipe-card > .block_cont {
  border-radius:0 0 20px 20px!important;
  overflow:visible!important;
}
#module-prestablog-blog .sc-blog-home .sc-blog-featured__media,
#module-prestablog-blog .sc-blog-home .sc-blog-featured__media img,
#module-prestablog-blog .sc-blog-home .sc-blog-recipe-card__image,
#module-prestablog-blog .sc-blog-home .sc-blog-recipe-card__image img,
#module-prestablog-blog .sc-blog-home .sc-blog-featured__card:hover img,
#module-prestablog-blog .sc-blog-home .sc-blog-recipe-card:hover img {
  border-radius:0!important;
  clip-path:none!important;
}
#module-prestablog-blog .sc-blog-home .sc-blog-featured__media,
#module-prestablog-blog .sc-blog-home .sc-blog-recipe-card__image {
  overflow:hidden;
}
/* Conserver les pastilles et leur propre arrondi. */
#module-prestablog-blog .sc-blog-home .sc-blog-recipe-badge {border-radius:999px!important}

/* Mode «page de résultats» : la barre Hero reste disponible pour relancer une requête. */
.sc-blog-search-page[hidden]{display:none!important}
.sc-blog-home.sc-blog-search-mode > .sc-blog-section:not(.sc-blog-search-page){display:none!important}
.sc-blog-home.sc-blog-search-mode .sc-blog-hero{margin-bottom:34px!important}
.sc-blog-home.sc-blog-search-mode .sc-blog-hero__content{padding-top:30px;padding-bottom:30px}
.sc-blog-search-page__header{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0 0 24px}
.sc-blog-home .sc-blog-search-page__header h2{font-weight:500!important;font-size:clamp(25px,3vw,38px)!important;line-height:1.2!important;margin:0!important;overflow-wrap:anywhere}
.sc-blog-search-page__header p{font-size:14px;color:#777;margin:0}
.sc-blog-home .sc-blog-search-page__back{font-size:13px;border-bottom:1px solid #aaa;margin-top:8px;padding-bottom:5px}
.sc-blog-search-page__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;min-width:0;width:100%}
.sc-blog-search-result-card{min-width:0;background:#fff}
.sc-blog-search-result-card>a{display:flex;flex-direction:column;height:100%;gap:12px}
.sc-blog-search-result-card__media{position:relative;display:block;width:100%;aspect-ratio:4/3;background:#f8f8f8;overflow:hidden}
.sc-blog-search-result-card__media img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0!important}
.sc-blog-search-result-card__category{position:absolute;bottom:10px;left:10px;background:#fff;color:#5e5e5e;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:600;max-width:calc(100% - 20px)}
.sc-blog-search-result-card__body{display:flex;flex-direction:column;gap:7px;padding:0 2px 8px}
.sc-blog-search-result-card__body strong{font-weight:600;font-size:15px;line-height:1.35;color:#5e5e5e}
.sc-blog-search-result-card__body>span{font-size:12px;line-height:1.55;color:#777}
.sc-blog-search-page__empty[hidden]{display:none!important}
.sc-blog-search-page__empty{margin:18px 0;padding:24px;background:#f8f8f8;border-radius:15px;font-size:14px}
.sc-blog-search-page__pager[hidden]{display:none!important}
.sc-blog-search-page__pager{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:15px;margin:36px 0}
.sc-blog-search-page__pager button{border:1px solid #dedede;background:#fff;border-radius:999px;color:#5e5e5e;padding:11px 16px;font-size:13px;cursor:pointer}
.sc-blog-search-page__pager button:disabled{opacity:.35;cursor:default}
.sc-blog-search-page__pager span{font-size:13px}

@media(max-width:1024px){
  .sc-blog-search-page__grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
}
@media(max-width:767px){
  .sc-blog-home .sc-blog-hero::after{background:linear-gradient(90deg,rgba(255,255,255,.94),rgba(255,255,255,.72))}
  .sc-blog-home .sc-blog-hero::before{background-position:center center}
  .sc-blog-search-page__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .sc-blog-search-result-card__body strong{font-size:13px}
  .sc-blog-search-result-card__body>span{display:none}
  .sc-blog-search-result-card__category{font-size:9px}
}
@media(max-width:380px){
  .sc-blog-search-page__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .sc-blog-search-page__header h2{font-size:24px!important}
}

/* Cartes articles : mêmes coins que les tutos, y compris au survol. */
#module-prestablog-blog .sc-blog-home .sc-blog-featured__card,
#module-prestablog-blog .sc-blog-home .sc-blog-recipe-card > .block_cont,
#module-prestablog-blog .sc-blog-home .sc-blog-search-result-card {
  border-radius:20px!important;overflow:hidden!important;
}
#module-prestablog-blog .sc-blog-home .sc-blog-featured__card .sc-blog-featured__media,
#module-prestablog-blog .sc-blog-home .sc-blog-recipe-card .sc-blog-recipe-card__image,
#module-prestablog-blog .sc-blog-home .sc-blog-search-result-card__media {
  border-radius:20px!important;overflow:hidden!important;
}
/* Préserver la police d'icônes face aux styles typographiques du blog. */
#sc-blog-home i.fas.fa-arrow-up-right-from-square {
  font-family:"Font Awesome 6 Free","Font Awesome 5 Free"!important;
  font-weight:900!important;font-style:normal;
}

/* Validation du 16 octobre 2026 : photographie fournie, palette sable. */
.sc-blog-home .sc-blog-hero::before{background-image:url('../img/blog-hero/hero-hd-v2.png');background-size:cover;background-position:center center}
.sc-blog-home .sc-blog-hero__subtitle{font-family:"Century Gothic",sans-serif!important;font-size:clamp(18px,2vw,25px)!important;line-height:1.3!important;font-weight:500!important;margin:0 0 18px!important}
.sc-blog-home{--sc-mint:#E2C194;--sc-mint-dark:#5e5e5e}
.sc-blog-home :is(h1,h2,h3,p,button,input,a,span,summary){font-family:"Century Gothic",sans-serif}
/* Garder un texte lisible sur les accents sable. */
.sc-blog-home :is(.sc-blog-recipe-badge,.sc-blog-guide-card__tag,.sc-blog-guide-card__cta,.sc-blog-guides__eyebrow,.sc-blog-measures__icon,.sc-blog-measures__details summary){color:#5e5e5e!important}

/* V2 : texte blanc uniquement sur les contrôles dont le fond est sable.
   Ne pas changer --sc-mint-dark : les éléments sans fond restent sombres. */
.sc-blog-home .sc-blog-search__line button,
.sc-blog-home .sc-blog-tabs>button.sc-blog-tabs__current,
.sc-blog-home .sc-blog-featured__icon,
.sc-blog-home .sc-blog-pager__next:not(:disabled),
.sc-blog-home .sc-blog-featured__controls button:hover:not(:disabled),
.sc-blog-home .sc-blog-pager button:hover:not(:disabled){color:#fff!important}

/* Les flèches et libellés internes suivent la couleur du contrôle. */
.sc-blog-home .sc-blog-search__line button :is(span,i,svg),
.sc-blog-home .sc-blog-tabs>button.sc-blog-tabs__current :is(span,i,svg),
.sc-blog-home .sc-blog-featured__icon :is(span,i,svg),
.sc-blog-home .sc-blog-pager__next:not(:disabled) :is(span,i,svg),
.sc-blog-home .sc-blog-featured__controls button:hover:not(:disabled) :is(span,i,svg),
.sc-blog-home .sc-blog-pager button:hover:not(:disabled) :is(span,i,svg){color:inherit!important}

/* Un onglet inactif ou un bouton désactivé conserve son texte sombre. */
.sc-blog-home .sc-blog-tabs>button:not(.sc-blog-tabs__current),
.sc-blog-home .sc-blog-pager button:disabled{color:var(--sc-ink)!important}
