
/* Calculatrice.com – dossiers mathématiques v1. Fichier neuf, préfixé cr-, sans conflit avec l'ancien site. */
body.cr-dossier-page .cr-dossier-hero .cr-hero-grid{
  grid-template-columns:minmax(0,1.05fr) minmax(430px,.95fr)!important;
  align-items:center!important;
}
body.cr-dossier-page .cr-dossier-hero .cr-hero-copy{max-width:760px!important;}
body.cr-dossier-page .cr-dossier-brief{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  width:min(100%,560px);
  justify-self:end;
}
body.cr-dossier-page .cr-brief-card{
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 20px 40px rgba(47,29,0,.16);
  border-radius:18px;
  padding:18px;
  color:#fff;
  min-height:132px;
  backdrop-filter:blur(4px);
}
body.cr-dossier-page .cr-brief-card span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#fff;
  color:#8a5700;
  font-size:13px;
  font-weight:900;
  line-height:1;
  margin-bottom:12px;
}
body.cr-dossier-page .cr-brief-card h2{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.18;
  letter-spacing:-.02em;
  color:#fff;
}
body.cr-dossier-page .cr-brief-card p{
  margin:0;
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,.86);
}
body.cr-dossier-page .cr-main > .cr-wrap.cr-content-grid{margin-top:30px!important;}
body.cr-dossier-page .cr-dossier-section{scroll-margin-top:110px;}
.cr-dossier-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.cr-dossier-info-card{
  background:#fff;
  border:1px solid #e7edf5;
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 24px rgba(20,32,54,.05);
}
.cr-dossier-info-card .cr-dossier-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:30px;
  padding:0 9px;
  border-radius:10px;
  background:#fff3d8;
  color:#9a6100;
  font-size:14px;
  font-weight:900;
  line-height:1;
  margin-bottom:12px;
}
.cr-dossier-info-card h3{margin:0 0 8px!important;font-size:18px!important;line-height:1.25!important;color:#172033!important;}
.cr-dossier-info-card p{margin:0;color:#526072;font-size:14px;line-height:1.7;}
.cr-dossier-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.cr-dossier-text{
  background:#fff;
  border:1px solid #e7edf5;
  border-radius:16px;
  padding:20px;
  box-shadow:0 10px 24px rgba(20,32,54,.05);
}
.cr-dossier-text h3{margin:0 0 10px!important;font-size:20px!important;line-height:1.25!important;color:#172033!important;}
.cr-dossier-text p{margin:0 0 12px;color:#4d5b70;font-size:15px;line-height:1.78;}
.cr-dossier-text p:last-child{margin-bottom:0;}
.cr-dossier-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  margin-top:16px;
  background:#fff;
  border:1px solid #e7edf5;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(20,32,54,.05);
}
.cr-dossier-table th,
.cr-dossier-table td{
  padding:14px 16px;
  border-bottom:1px solid #edf2f7;
  text-align:left;
  vertical-align:top;
  font-size:14px;
  line-height:1.55;
}
.cr-dossier-table th{
  background:#f7f9fc;
  color:#172033;
  font-weight:900;
}
.cr-dossier-table td{color:#526072;}
.cr-dossier-table td:first-child{font-weight:850;color:#172033;}
.cr-dossier-table tr:last-child td{border-bottom:0;}
.cr-dossier-table code,
.cr-formula-hero code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  color:#8a5700;
  background:#fff3d8;
  border-radius:8px;
  padding:3px 7px;
  font-weight:850;
}
.cr-timeline{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  position:relative;
}
.cr-timeline article{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:18px;
  background:#fff;
  border:1px solid #e7edf5;
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 24px rgba(20,32,54,.05);
}
.cr-timeline span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:start;
  border-radius:999px;
  background:#fff3d8;
  color:#8a5700;
  font-weight:900;
  font-size:13px;
  padding:7px 12px;
}
.cr-timeline h3{margin:0 0 6px!important;font-size:19px!important;color:#172033!important;}
.cr-timeline p{margin:0;color:#526072;font-size:15px;line-height:1.7;}
.cr-highlight-box{
  margin-top:16px;
  padding:20px;
  border-radius:16px;
  background:linear-gradient(135deg,#fff7e6,#ffffff);
  border:1px solid #ffdf98;
  box-shadow:0 10px 24px rgba(20,32,54,.04);
}
.cr-highlight-box h3{margin:0 0 8px!important;color:#172033!important;font-size:20px!important;}
.cr-highlight-box p{margin:0;color:#4d5b70;font-size:15px;line-height:1.78;}
.cr-step-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.cr-step-list article{
  background:#fff;
  border:1px solid #e7edf5;
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 24px rgba(20,32,54,.05);
}
.cr-step-list span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#fff3d8;
  color:#8a5700;
  font-weight:900;
  margin-bottom:12px;
}
.cr-step-list h3{margin:0 0 8px!important;font-size:17px!important;color:#172033!important;}
.cr-step-list p{margin:0;color:#526072;font-size:14px;line-height:1.65;}
.cr-formula-hero{
  background:#111827;
  color:#fff;
  border-radius:20px;
  padding:24px;
  margin-bottom:16px;
  box-shadow:0 20px 40px rgba(20,32,54,.12);
}
.cr-formula-hero code{
  display:inline-block;
  font-size:clamp(30px,3vw,48px);
  color:#111827;
  background:#fff;
  padding:10px 16px;
  border-radius:14px;
  margin-bottom:12px;
}
.cr-formula-hero p{margin:0;color:rgba(255,255,255,.82);font-size:16px;line-height:1.6;}
.cr-dossier-page .cr-ad-inline{margin-top:18px;margin-bottom:18px;}
@media (max-width:1100px){
  body.cr-dossier-page .cr-dossier-hero .cr-hero-grid{grid-template-columns:1fr!important;}
  body.cr-dossier-page .cr-dossier-brief{justify-self:start;width:100%;max-width:none;}
  .cr-step-list{grid-template-columns:1fr 1fr;}
}
@media (max-width:760px){
  body.cr-dossier-page .cr-dossier-brief,
  .cr-dossier-card-grid,
  .cr-dossier-columns,
  .cr-step-list{grid-template-columns:1fr!important;}
  body.cr-dossier-page .cr-brief-card{min-height:0;padding:16px;}
  .cr-timeline article{grid-template-columns:1fr;gap:10px;}
  .cr-dossier-table{display:block;overflow-x:auto;white-space:nowrap;}
  .cr-dossier-table th,.cr-dossier-table td{white-space:normal;min-width:150px;}
  .cr-dossier-info-card,.cr-dossier-text{padding:16px;}
}

/* v15 - correctif colonne droite dossiers : pas de grande marge haute au scroll */
@media (min-width:1121px){
  body.cr-dossier-page .cr-main > .cr-wrap.cr-content-grid{
    margin-top:30px!important;
    align-items:start!important;
  }
  body.cr-dossier-page .cr-sidebar{
    position:sticky!important;
    top:18px!important;
    align-self:start!important;
    padding-top:0!important;
    margin-top:0!important;
  }
  body.cr-dossier-page .cr-sidebar .cr-ad,
  body.cr-dossier-page .cr-sidebar .cr-ad.cr-ad-sidebar,
  body.cr-dossier-page .cr-sidebar .cr-ad.cr-ad-sidebar-under-calculator{
    margin-top:0!important;
  }
  body.cr-dossier-page .cr-sidebar > :first-child{
    margin-top:0!important;
  }
}
@media (max-width:1120px){
  body.cr-dossier-page .cr-sidebar{position:static!important;}
}
