.page-apercu-carte{
  background:#f7f8fb;
  color:#1f2937;
}

.apercu-carte-page{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:24px 0 64px;
}

.apercu-breadcrumb{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 20px;
  color:#64748b;
  font-size:14px;
}

.apercu-breadcrumb a{
  color:#475569;
  text-decoration:none;
  font-weight:700;
}

.apercu-breadcrumb a:hover{
  color:#111827;
  text-decoration:underline;
}

.apercu-carte-top{
  display:grid;
  grid-template-columns:minmax(400px,.9fr) minmax(0,1.1fr);
  gap:28px;
  align-items:stretch;
}

.apercu-carte-image,
.apercu-carte-intro,
.apercu-carte-info-card,
.apercu-carte-content-card,
.apercu-carte-how,
.apercu-carte-faq{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:24px;
  box-shadow:0 14px 40px rgba(15,23,42,.07);
}

.apercu-carte-image{
  min-height:420px;
  margin:0;
  padding:42px 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.apercu-carte-image img{
  display:block;

  /*
   * L’image conserve sa taille naturelle : une miniature de 480 × 320 px
   * n’est donc plus agrandie jusqu’à remplir tout le bloc.
   */
  width:auto;
  max-width:min(100%,520px);
  height:auto;
  max-height:420px;

  object-fit:contain;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(15,23,42,.12);
}

.apercu-carte-image-empty{
  min-height:330px;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#94a3b8;
  background:#f8fafc;
  border:2px dashed #dbe2ea;
  border-radius:16px;
}

.apercu-carte-image-empty span{
  font-size:56px;
}

.apercu-carte-image-empty p{
  margin:0;
}

.apercu-carte-intro{
  padding:34px;
  display:flex;
  flex-direction:column;
}

.apercu-carte-badge{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:#111827;
  color:#fbbf24;
  font-size:13px;
  font-weight:800;
}

.apercu-carte-intro h1{
  margin:18px 0 13px;
  color:#111827;
  font-size:clamp(32px,4vw,48px);
  line-height:1.08;
  letter-spacing:-.03em;
}

.apercu-carte-categories{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:23px;
}

.apercu-carte-categories a{
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  background:#fff7d6;
  color:#755500;
  border:1px solid #f6d365;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}

.apercu-carte-categories a:hover{
  background:#fbbf24;
  color:#111827;
}

.apercu-carte-description{
  margin-top:2px;
}

.apercu-carte-description h2,
.apercu-carte-info-card h2,
.apercu-carte-content-card h2,
.apercu-carte-how h2,
.apercu-carte-faq h2{
  margin:0 0 12px;
  color:#111827;
  font-size:24px;
  line-height:1.25;
}

.apercu-carte-description p,
.apercu-carte-info-card p,
.apercu-carte-how p,
.apercu-carte-faq p{
  margin:0;
  color:#475569;
  font-size:16px;
  line-height:1.72;
}

.apercu-carte-empty{
  padding:14px;
  color:#92400e;
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:12px;
}

.apercu-carte-action{
  margin-top:auto;
  padding-top:28px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.apercu-carte-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:13px 22px;
  border-radius:13px;
  background:#fbbf24;
  color:#111827;
  font-size:16px;
  font-weight:900;
  text-align:center;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(245,158,11,.22);
  transition:transform .18s ease,background .18s ease;
}

.apercu-carte-button:hover{
  background:#f59e0b;
  color:#111827;
  transform:translateY(-1px);
}

.apercu-carte-action small{
  color:#64748b;
  text-align:center;
  line-height:1.45;
}

.apercu-carte-info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-top:26px;
}

.apercu-carte-info-card{
  padding:29px;
}

.apercu-carte-info-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:45px;
  height:45px;
  margin-bottom:13px;
  border-radius:14px;
  background:#fff7d6;
  font-size:23px;
}

.apercu-carte-info-card ul{
  margin:0;
  padding-left:20px;
  color:#475569;
}

.apercu-carte-info-card li{
  margin:0 0 10px;
  padding-left:3px;
  line-height:1.62;
}

.apercu-carte-info-card li:last-child{
  margin-bottom:0;
}

.apercu-carte-content-card{
  margin-top:26px;
  padding:30px;
}

.apercu-carte-content-card>div:first-child{
  display:flex;
  align-items:center;
  gap:13px;
  margin-bottom:18px;
}

.apercu-carte-content-card>div:first-child .apercu-carte-info-icon{
  flex:0 0 auto;
  margin:0;
}

.apercu-carte-content-card h2{
  margin:0;
}

.apercu-carte-text-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.apercu-carte-text-list p{
  margin:0;
  padding:15px 17px;
  color:#334155;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:13px;
  line-height:1.55;
}

.apercu-carte-how{
  margin-top:26px;
  padding:32px;
  text-align:center;
}

.apercu-carte-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin:24px 0 27px;
  text-align:left;
}

.apercu-carte-steps article{
  padding:20px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
}

.apercu-carte-steps strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  margin-bottom:12px;
  border-radius:50%;
  background:#111827;
  color:#fbbf24;
}

.apercu-carte-steps h3{
  margin:0 0 7px;
  color:#111827;
  font-size:17px;
}

.apercu-carte-steps p{
  font-size:14px;
  line-height:1.55;
}

.apercu-carte-button-bottom{
  min-width:min(100%,360px);
}

.apercu-carte-faq{
  margin-top:26px;
  padding:32px;
}

.apercu-carte-faq>h2{
  text-align:center;
  margin-bottom:22px;
}

.apercu-carte-faq details{
  border-top:1px solid #e5e7eb;
}

.apercu-carte-faq details:last-child{
  border-bottom:1px solid #e5e7eb;
}

.apercu-carte-faq summary{
  padding:17px 4px;
  color:#111827;
  font-weight:800;
  cursor:pointer;
  list-style:none;
}

.apercu-carte-faq summary::-webkit-details-marker{
  display:none;
}

.apercu-carte-faq summary::after{
  content:"+";
  float:right;
  color:#b77900;
  font-size:21px;
}

.apercu-carte-faq details[open] summary::after{
  content:"−";
}

.apercu-carte-faq details p{
  padding:0 4px 18px;
  font-size:15px;
}

@media(max-width:900px){
  .apercu-carte-top{
    grid-template-columns:1fr;
  }

  .apercu-carte-intro{
    min-height:0;
  }

  .apercu-carte-info-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:640px){
  .apercu-carte-page{
    width:min(100% - 20px,1180px);
    padding-top:14px;
  }

  .apercu-breadcrumb{
    font-size:12px;
    margin-bottom:13px;
  }

  .apercu-carte-top{
    gap:15px;
  }

  .apercu-carte-image,
  .apercu-carte-intro,
  .apercu-carte-info-card,
  .apercu-carte-content-card,
  .apercu-carte-how,
  .apercu-carte-faq{
    border-radius:17px;
  }

  .apercu-carte-image{
    min-height:0;
    padding:20px 14px;
  }

  .apercu-carte-image img{
    max-width:100%;
    max-height:none;
  }

  .apercu-carte-intro,
  .apercu-carte-info-card,
  .apercu-carte-content-card,
  .apercu-carte-how,
  .apercu-carte-faq{
    padding:21px;
  }

  .apercu-carte-intro h1{
    font-size:31px;
  }

  .apercu-carte-description h2,
  .apercu-carte-info-card h2,
  .apercu-carte-content-card h2,
  .apercu-carte-how h2,
  .apercu-carte-faq h2{
    font-size:21px;
  }

  .apercu-carte-description p,
  .apercu-carte-info-card p{
    font-size:15px;
  }

  .apercu-carte-info-grid,
  .apercu-carte-content-card,
  .apercu-carte-how,
  .apercu-carte-faq{
    margin-top:15px;
  }

  .apercu-carte-text-list,
  .apercu-carte-steps{
    grid-template-columns:1fr;
  }

  .apercu-carte-content-card>div:first-child{
    align-items:flex-start;
  }
}
