/*
Theme Name: DiabetesPilot — Kadence Child
Description: Page d'accueil DiabetesPilot, basée sur le thème Kadence.
Author: DiabetesPilot
Template: kadence
Version: 1.6.2
Text Domain: diabetespilot
*/

/* Les styles de la page d'accueil sont chargés depuis assets/css/home.css. */


/* DiabetesPilot — cartes recettes carrées v2 */
.post-type-archive-dp_recipe .dpr-archive-grid{
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  align-items:start;
}
.post-type-archive-dp_recipe .dpr-card{
  position:relative;
  aspect-ratio:1 / 1;
  min-height:0;
  overflow:hidden;
  border:1px solid #cfe1f4;
  border-radius:22px;
  background:#0B1D33;
  box-shadow:0 10px 30px rgba(11,29,51,.12);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.post-type-archive-dp_recipe .dpr-card:hover,
.post-type-archive-dp_recipe .dpr-card:focus-within{
  transform:translateY(-6px);
  border-color:#68A5F5;
  box-shadow:0 18px 42px rgba(11,29,51,.22);
}
.post-type-archive-dp_recipe .dpr-card__image{
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  background:#EAF2FB;
}
.post-type-archive-dp_recipe .dpr-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.post-type-archive-dp_recipe .dpr-card:hover .dpr-card__image img,
.post-type-archive-dp_recipe .dpr-card:focus-within .dpr-card__image img{
  transform:scale(1.045);
}
.post-type-archive-dp_recipe .dpr-card__body{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:26px;
  background:linear-gradient(180deg,rgba(11,29,51,0) 30%,rgba(11,29,51,.38) 54%,rgba(11,29,51,.96) 100%);
  color:#fff;
  pointer-events:none;
}
.post-type-archive-dp_recipe .dpr-card__body small{
  align-self:flex-start;
  margin-bottom:7px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#245f9e;
  font-size:12px;
  line-height:1;
  letter-spacing:.04em;
}
.post-type-archive-dp_recipe .dpr-card h2{
  margin:0 0 8px;
  font-family:"Baloo 2",sans-serif;
  font-size:clamp(22px,2.2vw,29px);
  font-weight:800;
  line-height:1.08;
}
.post-type-archive-dp_recipe .dpr-card h2 a{
  color:#fff;
  text-decoration:none;
  pointer-events:auto;
}
.post-type-archive-dp_recipe .dpr-card h2 a::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
}
.post-type-archive-dp_recipe .dpr-card p{
  display:-webkit-box;
  overflow:hidden;
  margin:0 0 12px;
  color:rgba(255,255,255,.9);
  font-size:14px;
  line-height:1.4;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.post-type-archive-dp_recipe .dpr-card__body > a{
  align-self:flex-start;
  color:#fff;
  font-weight:900;
  text-decoration:none;
  pointer-events:none;
}
@media(max-width:680px){
  .post-type-archive-dp_recipe .dpr-archive-grid{grid-template-columns:1fr;}
  .post-type-archive-dp_recipe .dpr-card{width:min(100%,380px);margin-inline:auto;}
  .post-type-archive-dp_recipe .dpr-card__body{padding:22px;}
}
