
/* GRID */
.inspi-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:16px;
  padding: 0 12px;
  margin-bottom: 42px;
}

/* ✅ Mobile : toujours 2 colonnes */
@media (max-width: 600px){
  .inspi-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px; /* optionnel, pour que ça respire */
  }
}


.inspi-card{
  cursor:pointer;
  border-radius:12px;
  overflow:hidden;
  background-color:white;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .15s ease, border-color .15s ease;
}
.inspi-card:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,0.22); }

.inspi-card__img{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
}
.inspi-card__body{ padding:12px 12px 14px; background-color: white;}
.inspi-card__title{ font-size:16px; margin:0 0 6px; }
.inspi-card__sub{ margin:0; opacity:.8; font-size:13px; }












body.modal-open{ overflow:hidden; }

/* container full screen */
.m{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
.m.is-open{ display:block; }

/* overlay + blur */
.m__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: mFade .14s ease-out;
}

/* dialog card */
.m__dialog{
  position:relative;
  width: min(920px, calc(100% - 22px));
  margin: min(6vh, 40px) auto;
  border-radius: 12px;
  overflow: hidden;

  background: var(--m-card);
  border: 1px solid var(--m-border);
  box-shadow: 0 30px 120px rgba(0,0,0,0.60);

  max-height: calc(100vh - 2*min(6vh, 40px));
  display:flex;
  flex-direction:column;

  transform: translateY(10px) scale(0.99);
  opacity: 0;
  animation: mPop .18s ease-out forwards;
}

/* close button */
.m__x{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--m-border);
  background: #d50047;
  color: white;
  cursor:pointer;
  z-index: 5;

  display:grid;
  place-items:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.m__x:hover{
  transform: scale(1.03);
  background: #b1043e;
  border-color: rgba(255,255,255,0.22);
}

/* cover zone */
.m__cover{
  position:relative;
  height: clamp(100px, 38vh, 100px);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--m-border);
}
.m__coverImg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.02);
}

/* gradients for readability */
.m__coverShade{
  inset:0;
  background:
    radial-gradient(1200px 420px at 10% 100%, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.00) 60%),
    linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.65) 100%);
}

/* title overlay */
.m__coverText{
  left: 18px;
  right: 64px; /* keep space for close btn */
  bottom: 16px;
  color: var(--m-text);
  text-shadow: 0 10px 30px rgba(0,0,0,0.65);
}
.m__kicker{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
  margin-bottom: 10px;
}
.m__title{
  margin: 0 0 6px 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.12;
}

/* body with internal scroll */
.m__body{
  padding: 16px 18px 20px;
  overflow:auto;
  min-height: 0; /* crucial for scroll */
background-color: #fff;}

.m__subtitle{
  margin: 0 0 24px 0;
  color: var(--m-muted);
  font-size: 14px;
}

.m__content{
  color: var(--m-text);
  font-size: 15px;
  line-height: 1.6;
}
.m__content p{ margin: 0 0 12px; }
.m__content p:last-child{ margin-bottom: 0; }

/* subtle scrollbar (optional) */
.m__body::-webkit-scrollbar{ width: 10px; }
.m__body::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.00);
}

/* mobile: cover smaller, dialog closer to full height */
@media (max-width: 720px){
  .m__dialog{
    width: calc(100% - 14px);
    margin: 10px auto;
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }
  .m__cover{ height: clamp(180px, 28vh, 260px); }
  .m__coverText{ left: 14px; bottom: 14px; right: 56px; }
  .m__body{ padding: 14px 14px 18px; }
}

/* animations */
@keyframes mFade{
  from{ opacity:0; }
  to{ opacity:1; }
}
@keyframes mPop{
  to{ opacity:1; transform: translateY(0) scale(1); }
}

.parallax{
  width: 100%;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.parallax__bg{
  position: absolute;
  inset: -20%; /* marge pour éviter les bords quand ça bouge */
  background: url("../imgrefs/banner.jpg") center / cover no-repeat;
  transform: translateY(0);
  will-change: transform;
}

.parallax__content{
  position: relative;
  z-index: 1;
  padding: 72px 16px;
  text-align: center;
}

.heightt{
  height: 48px;
}

.wrap2{
  padding: 12px;
}