/* Calculatrice.com — index /math/ v6
   Reprise fidèle de la structure /argent/ de Statistiques.com, avec la couleur Calculatrice.com.
   Scope strict : body.cr-math-index-page. */

body.cr-math-index-page{
  --math-main:#ffa300;
  --math-dark:#8a4b00;
  --math-soft:#fff0c9;
  --math-bg:#f3f5fb;
  --math-text:#111827;
  --math-muted:#64748b;
  --math-border:#dde4f0;
  --math-card:#ffffff;
  background:var(--math-bg)!important;
  overflow-x:clip;
}

body.cr-math-index-page .cr-index-main{padding:0!important;margin:0!important;}
body.cr-math-index-page .cr-wrap{width:80vw!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;padding-left:16px!important;padding-right:16px!important;box-sizing:border-box;}
@media (max-width:900px){body.cr-math-index-page .cr-wrap{width:100%!important;max-width:var(--cr-max)!important;}}

body.cr-math-index-page .cr-toc{z-index:35!important;}
body.cr-math-index-page #vue-ensemble,
body.cr-math-index-page #reperes,
body.cr-math-index-page #calculatrices,
body.cr-math-index-page #surfaces,
body.cr-math-index-page #dossiers,
body.cr-math-index-page #citation,
body.cr-math-index-page #quiz,
body.cr-math-index-page #methodologie,
body.cr-math-index-page #faq{scroll-margin-top:92px;}
@media (max-width:860px){
  body.cr-math-index-page #vue-ensemble,
  body.cr-math-index-page #reperes,
  body.cr-math-index-page #calculatrices,
  body.cr-math-index-page #surfaces,
  body.cr-math-index-page #dossiers,
  body.cr-math-index-page #citation,
  body.cr-math-index-page #quiz,
  body.cr-math-index-page #methodologie,
  body.cr-math-index-page #faq{scroll-margin-top:78px;}
}

/* HERO : mêmes proportions que /argent/ : section ~500px, visuel vertical qui dépasse vers le bas. */
body.cr-math-index-page .math-hero{
  position:relative;
  color:#fff;
  padding:30px 0 28px;
  overflow-x:clip;
  overflow-y:visible;
  background:linear-gradient(135deg,#ffb52a 0%,#ffa300 52%,#e88300 100%);
}
body.cr-math-index-page .math-hero::after{
  content:"";
  position:absolute;
  right:-120px;
  top:-80px;
  width:280px;
  height:280px;
  border-radius:999px;
  border:32px solid rgba(255,255,255,.12);
  opacity:.7;
  pointer-events:none;
}
body.cr-math-index-page .math-hero-inner{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:32px;
  position:relative;
  z-index:1;
  flex-wrap:wrap;
}
@media (min-width:900px){body.cr-math-index-page .math-hero-inner{flex-wrap:nowrap;}}
body.cr-math-index-page .math-hero-text{flex:1 1 320px;min-width:280px;padding-right:0;}
body.cr-math-index-page .math-hero-badge{
  display:inline-block;
  background-color:rgba(15,23,42,.16);
  border-radius:999px;
  padding:4px 10px;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:8px;
  font-weight:850;
}
body.cr-math-index-page .math-hero-title-split{line-height:1.02;margin:0;color:#fff!important;}
body.cr-math-index-page .math-hero-title-main{display:block;font-size:clamp(42px,5.4vw,64px);line-height:1;font-weight:950;letter-spacing:-.06em;}
body.cr-math-index-page .math-hero-title-sub{display:block;margin-top:8px;font-size:clamp(24px,3.1vw,34px);line-height:1.12;font-weight:850;color:rgba(255,255,255,.97);letter-spacing:-.035em;}
body.cr-math-index-page .math-hero-tagline{font-size:15px;margin:10px 0 14px;color:#fff5d7;font-weight:800;}
body.cr-math-index-page .math-hero-lead{margin:0 0 16px;max-width:760px;color:rgba(255,255,255,.96);font-size:15px;line-height:1.68;font-weight:600;}
body.cr-math-index-page .math-hero-highlights{list-style:none;margin:0 0 18px;padding:0;font-size:14px;line-height:1.55;color:#fff;}
body.cr-math-index-page .math-hero-highlights li + li{margin-top:4px;}
body.cr-math-index-page .math-hero-meta{font-size:12px;opacity:.86;margin-top:6px;max-width:760px;}
body.cr-math-index-page .math-hero-cta-row{margin-top:12px;}
body.cr-math-index-page .math-btn-primary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  font-weight:900;
  text-decoration:none!important;
  border:1px solid rgba(255,255,255,.72);
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 22px rgba(15,23,42,.14);
  color:#8a4b00!important;
  white-space:nowrap;
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
body.cr-math-index-page .math-btn-primary:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(15,23,42,.18);filter:brightness(1.02);}
body.cr-math-index-page .math-btn-primary span{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border-radius:999px;background:rgba(138,75,0,.08);border:1px solid rgba(138,75,0,.10);font-weight:950;line-height:1;}
body.cr-math-index-page .math-hero-visual{flex:0 0 320px;min-width:260px;position:relative;z-index:2;}
body.cr-math-index-page .math-hero-image{
  width:100%;
  height:440px;
  max-width:360px;
  border-radius:18px;
  display:block;
  object-fit:cover;
  box-shadow:0 18px 35px rgba(70,42,0,.45);
  border:1px solid rgba(255,255,255,.35);
}
@media (min-width:900px){
  body.cr-math-index-page .math-hero-visual{transform:translateY(70px);height:440px;overflow:visible;}
  body.cr-math-index-page .math-hero-image{position:absolute;top:0;right:0;width:125%;height:550px;max-width:none;object-fit:cover;}
  body.cr-math-index-page .math-hero-text{padding-right:110px;}
  body.cr-math-index-page .math-section-main{padding-top:130px!important;}
}
@media (max-width:899px){
  body.cr-math-index-page .math-hero-visual{transform:none;margin-top:18px;height:auto;}
  body.cr-math-index-page .math-hero-image{position:static;width:100%;height:auto;max-width:420px;}
  body.cr-math-index-page .math-hero-text{padding-right:0;}
  body.cr-math-index-page .math-section-main{padding-top:34px!important;}
}

/* Sections et blocs : copie du rythme /argent/. */
body.cr-math-index-page .math-section{padding:18px 0;}
body.cr-math-index-page .math-section-main{padding:36px 0 18px;}
body.cr-math-index-page .math-section-header h2{margin:0 0 8px;color:#172033!important;font-size:26px!important;line-height:1.18!important;letter-spacing:-.04em!important;}
body.cr-math-index-page .math-section-intro{max-width:820px;margin:0 0 18px;color:#526072;font-size:14px;line-height:1.72;}
body.cr-math-index-page .math-block{background:var(--math-card);border-radius:14px;border:1px solid var(--math-border);box-shadow:0 8px 18px rgba(15,23,42,.05);padding:14px 16px;}
body.cr-math-index-page .math-block-alt{background:radial-gradient(circle at top right,#fff3d8 0,#fff 55%);}
body.cr-math-index-page .math-block-meta{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#8a4b00;margin-bottom:4px;font-weight:850;}
body.cr-math-index-page .math-block-title{font-size:16px!important;font-weight:800!important;color:#172033!important;margin:0 0 6px!important;line-height:1.25!important;letter-spacing:-.02em!important;}
body.cr-math-index-page .math-block-text{font-size:13px;color:#64748b;margin:0 0 10px;line-height:1.55;}
body.cr-math-index-page .math-note-bottom{margin-top:10px;font-size:11px;color:#64748b;}

/* KPI */
body.cr-math-index-page .math-kpi-block{margin:16px 0 20px;}
body.cr-math-index-page .math-kpi-grid{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;margin-top:12px;}
body.cr-math-index-page .math-kpi-card{position:relative;border-radius:14px;padding:14px;background:#e88900;border:1px solid rgba(255,255,255,.16);box-shadow:0 18px 44px rgba(15,23,42,.14);overflow:hidden;min-height:108px;color:#fff;}
body.cr-math-index-page .math-kpi-value{color:#fff!important;text-shadow:0 1px 0 rgba(0,0,0,.18);font-size:26px;font-weight:950;letter-spacing:.01em;line-height:1.05;margin-bottom:6px;}
body.cr-math-index-page .math-kpi-label{color:rgba(255,255,255,.94)!important;font-size:13px;line-height:1.25;font-weight:800;margin:0 0 10px;}
body.cr-math-index-page .math-kpi-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:850;color:rgba(255,255,255,.95)!important;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);}
@media (max-width:1020px){body.cr-math-index-page .math-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:560px){body.cr-math-index-page .math-kpi-grid{grid-template-columns:1fr;}}

/* Deux colonnes */
body.cr-math-index-page .math-layout{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(0,1.1fr);gap:18px;align-items:flex-start;margin-top:14px;}
@media (max-width:980px){body.cr-math-index-page .math-layout{grid-template-columns:minmax(0,1fr);}}
body.cr-math-index-page .math-items-grid{margin-top:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
@media (max-width:880px){body.cr-math-index-page .math-items-grid{grid-template-columns:minmax(0,1fr);}}
body.cr-math-index-page .math-item-card{display:block;background:#f8fafc;border-radius:10px;padding:8px 10px;border:1px solid var(--math-border);font-size:13px;color:#172033;text-decoration:none!important;line-height:1.45;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background-color .12s ease;}
body.cr-math-index-page .math-item-card:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.08);border-color:#ffa300;background:#fff;}
body.cr-math-index-page .math-block-alt .math-item-card{background:#fff;}
body.cr-math-index-page .math-item-title{font-weight:800;font-size:13px;margin-bottom:2px;color:#172033;}
body.cr-math-index-page .math-item-desc{font-size:12px;color:#64748b;}
body.cr-math-index-page .math-item-tag{display:inline-flex;margin-top:8px;padding:3px 8px;border-radius:999px;background:#fff0c9;color:#8a4b00;font-size:11px;font-weight:900;}
body.cr-math-index-page .math-item-card-featured{grid-column:1 / -1;display:grid;grid-template-columns:160px 1fr;gap:12px;align-items:stretch;padding:10px;background:#fff;}
body.cr-math-index-page .math-item-thumb img{width:100%;height:100%;max-height:120px;object-fit:cover;border-radius:10px;border:1px solid var(--math-border);display:block;}
body.cr-math-index-page .math-item-title-featured{font-size:14px;}
body.cr-math-index-page .math-item-desc-featured{font-size:12px;}
@media (max-width:880px){body.cr-math-index-page .math-item-card-featured{grid-template-columns:1fr;}}

/* Citation */
body.cr-math-index-page .math-quote{position:relative;padding:28px 22px;border-radius:16px;background:linear-gradient(135deg,rgba(255,163,0,.10),rgba(15,23,42,.02));border:1px solid rgba(255,163,0,.22);box-shadow:0 10px 30px rgba(15,23,42,.06);overflow:hidden;text-align:center;margin:0;}
body.cr-math-index-page .math-quote-mark{position:absolute;top:14px;right:16px;font-size:44px;font-weight:950;color:rgba(255,163,0,.28);line-height:1;user-select:none;}
body.cr-math-index-page .math-quote-kicker{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#0f172a;opacity:.65;margin:0 0 10px;display:inline-block;}
body.cr-math-index-page .math-quote-text{font-size:22px;line-height:1.35;font-weight:900;margin:0;color:#0b1220;}
@media (min-width:900px){body.cr-math-index-page .math-quote-text{font-size:28px;}}
body.cr-math-index-page .math-quote-author{margin:10px 0 0;font-weight:750;color:#0f172a;opacity:.85;}

/* Surfaces */
body.cr-math-index-page .math-surface-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px;}
body.cr-math-index-page .math-surface-groups article{border:1px solid var(--math-border);border-radius:12px;background:#f8fafc;padding:12px;}
body.cr-math-index-page .math-surface-groups h4{margin:0 0 6px;color:#172033;font-size:14px;}
body.cr-math-index-page .math-surface-groups p{margin:0 0 10px;color:#64748b;font-size:12px;line-height:1.5;}
body.cr-math-index-page .math-surface-groups div{display:flex;flex-wrap:wrap;gap:6px;}
body.cr-math-index-page .math-surface-groups a{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff0c9;color:#8a4b00;font-size:11px;font-weight:850;text-decoration:none!important;}
@media (max-width:980px){body.cr-math-index-page .math-surface-groups{grid-template-columns:1fr;}}

/* Quiz : structure identique à /argent/ : image à gauche, questionnaire à droite. */
body.cr-math-index-page .math-quiz-wrapper{display:grid;grid-template-columns:1fr 1.25fr;gap:16px;align-items:stretch;}
@media (max-width:980px){body.cr-math-index-page .math-quiz-wrapper{grid-template-columns:1fr;}}
body.cr-math-index-page .math-quiz-image{background:#fff;border:1px solid var(--math-border);border-radius:16px;overflow:hidden;box-shadow:0 10px 24px rgba(15,23,42,.06);}
body.cr-math-index-page .math-quiz-image img{width:100%;height:100%;min-height:260px;object-fit:cover;display:block;}
body.cr-math-index-page .math-quiz{background:#fff;border:1px solid var(--math-border);border-radius:16px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.06);}
body.cr-math-index-page .math-quiz-title{font-size:18px!important;color:#172033!important;margin:0 0 6px!important;line-height:1.25!important;letter-spacing:-.02em!important;}
body.cr-math-index-page .math-quiz-intro{font-size:13px;color:#64748b;margin:0 0 10px;line-height:1.55;}
body.cr-math-index-page .math-quiz-progress{font-size:12px;color:#64748b;font-weight:800;margin-bottom:8px;}
body.cr-math-index-page .math-quiz-question{font-size:14px;font-weight:850;color:#172033;margin-bottom:10px;line-height:1.45;}
body.cr-math-index-page .math-quiz-options{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:10px;}
body.cr-math-index-page .math-quiz-option{width:100%;border:1px solid var(--math-border);background:#f8fafc;border-radius:12px;padding:10px 12px;text-align:left;cursor:pointer;font-size:13px;color:#172033;transition:transform .10s ease,border-color .10s ease,background-color .10s ease,box-shadow .10s ease;}
body.cr-math-index-page .math-quiz-option:hover{transform:translateY(-1px);border-color:#ffa300;background:#fff;}
body.cr-math-index-page .math-quiz-option-active{border-color:#ffa300;background:#fff;box-shadow:0 10px 20px rgba(15,23,42,.08);}
body.cr-math-index-page .math-quiz-next{width:100%;border:0;background:#8a4b00;color:#fff;border-radius:12px;padding:10px 12px;font-weight:850;font-size:13px;cursor:pointer;opacity:1;}
body.cr-math-index-page .math-quiz-next[disabled]{cursor:not-allowed;opacity:.45;}
body.cr-math-index-page .math-quiz-result{display:none;margin-top:10px;font-size:13px;color:#172033;line-height:1.5;}
body.cr-math-index-page .math-quiz-result ol{padding-left:18px;margin:8px 0 0;font-size:13px;}
body.cr-math-index-page .math-quiz-result li{margin-bottom:10px;}

/* Méthodologie */
body.cr-math-index-page .math-eeat-mini{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding:12px 14px;border-radius:12px;background:rgba(255,163,0,.08);border:1px solid rgba(255,163,0,.18);color:#0f172a;margin:0 0 14px;font-size:13px;}
body.cr-math-index-page .math-eeat-mini b{font-weight:850;}
body.cr-math-index-page .math-eeat-mini .dot{opacity:.45;font-weight:900;}
body.cr-math-index-page .math-method-details{background:#fff;border:1px solid #e5ecf5;border-radius:16px;box-shadow:0 10px 24px rgba(17,24,39,.04);overflow:hidden;}
body.cr-math-index-page .math-method-details summary{list-style:none;cursor:pointer;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:900;color:#132238;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);}
body.cr-math-index-page .math-method-details summary::-webkit-details-marker{display:none;}
body.cr-math-index-page .math-method-details summary::after{content:'+';flex:0 0 auto;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff0c9;color:#8a4b00;font-size:18px;line-height:1;}
body.cr-math-index-page .math-method-details[open] summary::after{content:'–';}
body.cr-math-index-page .math-method-note{font-size:12px;line-height:1.6;color:#64748b;font-weight:400;}
body.cr-math-index-page .math-method-panel{padding:0 18px 18px;color:#51607a;font-size:13px;line-height:1.7;}

body.cr-math-index-page .math-faq-list{margin-top:8px;}
body.cr-math-index-page .cr-breadcrumb-bottom{margin-top:34px!important;}

@media (max-width:760px){
  body.cr-math-index-page .math-hero-title-main{font-size:36px;line-height:1.04;}
  body.cr-math-index-page .math-hero-title-sub{font-size:24px;}
  body.cr-math-index-page .math-section-header h2{font-size:22px!important;}
  body.cr-math-index-page .math-quote-text{font-size:19px;}
  body.cr-math-index-page .math-quiz-image img{min-height:210px;}
}


/* Correction v5 — fil d’Ariane bas de page : aligné, sans numérotation, style rubrique */
body.cr-math-index-page .cr-breadcrumb-bottom{
  margin:34px 0 0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
body.cr-math-index-page .cr-breadcrumb-bottom .cr-wrap{
  display:block!important;
}
body.cr-math-index-page .cr-breadcrumb-bottom ol{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  font-family:inherit!important;
  font-size:12px!important;
  line-height:1.4!important;
  color:#7a8495!important;
}
body.cr-math-index-page .cr-breadcrumb-bottom li{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  font-size:12px!important;
  line-height:1.4!important;
  white-space:nowrap!important;
}
body.cr-math-index-page .cr-breadcrumb-bottom li + li::before{
  content:'›';
  color:#b4bdcc;
  font-weight:800;
  font-size:12px;
  line-height:1;
}
body.cr-math-index-page .cr-breadcrumb-bottom a{
  color:#8a4b00!important;
  text-decoration:none!important;
  font-weight:800!important;
}
body.cr-math-index-page .cr-breadcrumb-bottom a:hover{
  color:#d98200!important;
}
body.cr-math-index-page .cr-breadcrumb-bottom [aria-current="page"]{
  color:#7a8495!important;
  font-weight:500!important;
}


/* v6 — 4 calculatrices mises en avant, images stables et quiz culture math. */
body.cr-math-index-page .math-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
body.cr-math-index-page .math-tools-grid .math-item-card-featured{grid-column:auto;grid-template-columns:150px minmax(0,1fr);}
body.cr-math-index-page .math-item-thumb{aspect-ratio:3/2;overflow:hidden;border-radius:10px;background:#fff7e6;}
body.cr-math-index-page .math-item-thumb img{width:100%;height:100%!important;max-height:none!important;object-fit:cover;display:block;}
body.cr-math-index-page .math-quiz-question{min-height:42px;}
body.cr-math-index-page .math-quiz-option[aria-pressed="true"],
body.cr-math-index-page .math-quiz-option-active{border-color:#ffa300!important;background:#fff8e8!important;box-shadow:0 10px 20px rgba(15,23,42,.08);}
@media (max-width:1120px){body.cr-math-index-page .math-tools-grid .math-item-card-featured{grid-template-columns:128px minmax(0,1fr);}}
@media (max-width:880px){body.cr-math-index-page .math-tools-grid{grid-template-columns:1fr;}body.cr-math-index-page .math-tools-grid .math-item-card-featured{grid-template-columns:1fr;}}
