body.guide-mathematiques-ipad {
  --max: 1280px;
  --math-indigo: #4d4fa3;
  --math-indigo-soft: #f0f0ff;
  --math-blue: #25658a;
  --math-blue-soft: #edf8fd;
  --math-green: #28705d;
  --math-green-soft: #ecfbf5;
  --math-purple: #7048a6;
  --math-gold: #9b6418;
}

body.guide-mathematiques-ipad .wrap {
  padding-top: 28px;
  padding-bottom: 82px;
}

body.guide-mathematiques-ipad .hero::before {
  content: "";
  position: absolute;
  inset: -145px -80px auto auto;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,79,163,.18), transparent 69%);
  pointer-events: none;
}

body.guide-mathematiques-ipad .hero::after {
  inset: auto auto -180px -110px;
  width: 410px;
  height: 410px;
  background: radial-gradient(circle, rgba(37,101,138,.14), transparent 70%);
}

body.guide-mathematiques-ipad .brand img {
  width: min(365px, 100%);
}

body.guide-mathematiques-ipad .hero-content {
  padding: 12px 4px 8px;
}

body.guide-mathematiques-ipad h1 {
  max-width: 13ch;
  font-size: clamp(2.45rem, 4.45vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}

body.guide-mathematiques-ipad .lead {
  max-width: 830px;
}

body.guide-mathematiques-ipad .central-question {
  margin-top: 22px;
  max-width: 850px;
  border-radius: 22px;
  padding: 18px 19px;
  background: linear-gradient(135deg, #252955, #4d4fa3);
  color: #fff;
  box-shadow: 0 16px 36px rgba(15,23,42,.15);
}

body.guide-mathematiques-ipad .central-question span {
  display: block;
  color: #ddddff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 850;
  margin-bottom: 6px;
}

body.guide-mathematiques-ipad .central-question p {
  margin: 0;
  color: inherit;
  font-size: 1.02rem;
}

body.guide-mathematiques-ipad .hero-aside {
  display: grid;
  gap: 13px;
  align-content: center;
}

body.guide-mathematiques-ipad .principle-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: start;
  padding: 17px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 21px;
}

body.guide-mathematiques-ipad .principle-card h2 {
  margin: 1px 0 4px;
  font-size: 1rem;
  letter-spacing: -.015em;
}

body.guide-mathematiques-ipad .principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
}

body.guide-mathematiques-ipad .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

body.guide-mathematiques-ipad .icon-box {
  color: var(--math-indigo);
  background: var(--math-indigo-soft);
  border-color: #d9d9fb;
}

body.guide-mathematiques-ipad .icon-box.small {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

body.guide-mathematiques-ipad .icon-box .icon {
  width: 27px;
  height: 27px;
}

body.guide-mathematiques-ipad .panel {
  padding: 28px;
}

body.guide-mathematiques-ipad .card h3 {
  margin: 0 0 11px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 1.1rem;
  letter-spacing: -.015em;
}

body.guide-mathematiques-ipad .card h4 {
  margin: 0 0 5px;
}

body.guide-mathematiques-ipad .card p {
  margin: 0 0 11px;
  color: var(--muted);
}

body.guide-mathematiques-ipad .card p:last-child {
  margin-bottom: 0;
}

body.guide-mathematiques-ipad .card ul,
body.guide-mathematiques-ipad .card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

body.guide-mathematiques-ipad .card li + li {
  margin-top: 8px;
}

body.guide-mathematiques-ipad .goal-grid,
body.guide-mathematiques-ipad .question-grid,
body.guide-mathematiques-ipad .example-grid,
body.guide-mathematiques-ipad .geometry-observe,
body.guide-mathematiques-ipad .representation-grid,
body.guide-mathematiques-ipad .deliverable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 11px;
}

body.guide-mathematiques-ipad .goal-grid > div,
body.guide-mathematiques-ipad .question-grid > div,
body.guide-mathematiques-ipad .example-grid > div,
body.guide-mathematiques-ipad .geometry-observe > div,
body.guide-mathematiques-ipad .representation-grid > div,
body.guide-mathematiques-ipad .deliverable-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfcfe;
}

body.guide-mathematiques-ipad .goal-grid strong,
body.guide-mathematiques-ipad .goal-grid span,
body.guide-mathematiques-ipad .question-grid strong,
body.guide-mathematiques-ipad .question-grid span,
body.guide-mathematiques-ipad .geometry-observe strong,
body.guide-mathematiques-ipad .geometry-observe span,
body.guide-mathematiques-ipad .deliverable-grid strong,
body.guide-mathematiques-ipad .deliverable-grid span {
  display: block;
}

body.guide-mathematiques-ipad .goal-grid span,
body.guide-mathematiques-ipad .question-grid span,
body.guide-mathematiques-ipad .geometry-observe span,
body.guide-mathematiques-ipad .deliverable-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .91rem;
}

body.guide-mathematiques-ipad .lesson-flow,
body.guide-mathematiques-ipad .conjecture-cycle,
body.guide-mathematiques-ipad .storyboard {
  display: grid;
  gap: 10px;
}

body.guide-mathematiques-ipad .lesson-flow > div,
body.guide-mathematiques-ipad .conjecture-cycle > div,
body.guide-mathematiques-ipad .storyboard > div {
  display: grid;
  grid-template-columns: 38px 130px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfcfe;
}

body.guide-mathematiques-ipad .lesson-flow > div > span,
body.guide-mathematiques-ipad .conjecture-cycle > div > span {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--math-indigo);
  color: #fff;
  font-weight: 900;
}

body.guide-mathematiques-ipad .lesson-flow p,
body.guide-mathematiques-ipad .conjecture-cycle p,
body.guide-mathematiques-ipad .storyboard p {
  margin: 0;
  font-size: .92rem;
}

body.guide-mathematiques-ipad .step {
  grid-template-columns: 42px minmax(0,1fr);
}

body.guide-mathematiques-ipad .step::before {
  content: none;
}

body.guide-mathematiques-ipad .step-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--math-indigo);
  border: 1px solid #d9d9fb;
  box-shadow: 0 5px 12px rgba(77,79,163,.07);
  font-weight: 900;
}

body.guide-mathematiques-ipad .step h4 {
  margin: 1px 0 5px;
  font-size: 1rem;
}

body.guide-mathematiques-ipad .step p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

body.guide-mathematiques-ipad .checklist-card {
  display: grid;
  gap: 10px;
}

body.guide-mathematiques-ipad .checklist-card h3 {
  margin-bottom: 3px;
}

body.guide-mathematiques-ipad .check-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcfe;
  cursor: pointer;
}

body.guide-mathematiques-ipad .check-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--math-indigo);
}

body.guide-mathematiques-ipad .check-row span {
  color: #334155;
}

body.guide-mathematiques-ipad .compare-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

body.guide-mathematiques-ipad .compare-table > div {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
}

body.guide-mathematiques-ipad .compare-table > div > * {
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}

body.guide-mathematiques-ipad .compare-table > div > *:last-child {
  border-right: 0;
}

body.guide-mathematiques-ipad .compare-table > div:last-child > * {
  border-bottom: 0;
}

body.guide-mathematiques-ipad .compare-head {
  background: #f8fafc;
  font-weight: 850;
  color: #334155;
}

body.guide-mathematiques-ipad .app-use-grid {
  display: grid;
  gap: 10px;
}

body.guide-mathematiques-ipad .app-use-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfcfe;
}

body.guide-mathematiques-ipad .app-use-grid p {
  margin: 4px 0 0;
  font-size: .92rem;
}

body.guide-mathematiques-ipad .reasoning-strip {
  display: grid;
  gap: 9px;
}

body.guide-mathematiques-ipad .reasoning-strip > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 6px 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}

body.guide-mathematiques-ipad .reasoning-strip span {
  color: var(--math-indigo);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 900;
}

body.guide-mathematiques-ipad .reasoning-strip small {
  grid-column: 2;
  color: var(--muted);
}

body.guide-mathematiques-ipad .app-selection {
  margin-bottom: 18px;
}

body.guide-mathematiques-ipad .app-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 13px;
}

body.guide-mathematiques-ipad .app-cards > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

body.guide-mathematiques-ipad .app-cards h4 {
  margin: 10px 0 5px;
  font-size: 1.03rem;
}

body.guide-mathematiques-ipad .app-cards p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .91rem;
}

body.guide-mathematiques-ipad .app-cards a {
  font-weight: 780;
  font-size: .9rem;
}

body.guide-mathematiques-ipad .app-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: #44469a;
  background: var(--math-indigo-soft);
  border: 1px solid #d9d9fb;
  font-size: .78rem;
  font-weight: 850;
}

body.guide-mathematiques-ipad .representation-grid > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 10px;
  align-items: start;
}

body.guide-mathematiques-ipad .representation-grid span {
  color: var(--math-indigo);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
}

body.guide-mathematiques-ipad .representation-grid p {
  margin: 0;
  font-size: .91rem;
}

body.guide-mathematiques-ipad .tool-timing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 11px;
}

body.guide-mathematiques-ipad .tool-timing > div {
  padding: 14px;
  border-radius: 17px;
  border: 1px solid #caeadf;
  background: var(--math-green-soft);
}

body.guide-mathematiques-ipad .tool-timing > div.warn {
  border-color: #f7d4aa;
  background: #fff8ec;
}

body.guide-mathematiques-ipad .tool-timing strong {
  display: block;
  margin-bottom: 4px;
}

body.guide-mathematiques-ipad .tool-timing p {
  margin: 0;
  font-size: .91rem;
}

body.guide-mathematiques-ipad .auto-answer-check {
  display: grid;
  gap: 9px;
}

body.guide-mathematiques-ipad .auto-answer-check > div {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}

body.guide-mathematiques-ipad .storyboard > div {
  grid-template-columns: 72px 120px 1fr;
}

body.guide-mathematiques-ipad .storyboard > div > span {
  color: var(--math-indigo);
  font-size: .82rem;
  font-weight: 900;
}

body.guide-mathematiques-ipad .challenge {
  padding: 18px;
  border: 1px solid #f2d5aa;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff9ee, #fff);
}

body.guide-mathematiques-ipad .challenge > span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff1cf;
  color: #85550f;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

body.guide-mathematiques-ipad .challenge h3 {
  margin: 0 0 5px;
  font-size: 1.06rem;
}

body.guide-mathematiques-ipad .challenge p {
  margin: 0;
  color: var(--muted);
}

body.guide-mathematiques-ipad .resource-card {
  display: grid;
  gap: 9px;
}

body.guide-mathematiques-ipad .resource-card h3 {
  margin-bottom: 2px;
}

body.guide-mathematiques-ipad .resource-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcfe;
  font-weight: 750;
  color: #1d4ed8;
}

body.guide-mathematiques-ipad .resource-card a::after {
  content: "↗";
  flex: 0 0 auto;
}

body.guide-mathematiques-ipad .resource-card a:hover {
  text-decoration: none;
  background: var(--math-indigo-soft);
}

body.guide-mathematiques-ipad .small-note {
  margin-top: 11px !important;
  font-size: .87rem;
}

body.guide-mathematiques-ipad .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}

body.guide-mathematiques-ipad .rubric {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

body.guide-mathematiques-ipad .rubric th,
body.guide-mathematiques-ipad .rubric td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}

body.guide-mathematiques-ipad .rubric th {
  background: #f8fafc;
  color: #334155;
  font-size: .83rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

body.guide-mathematiques-ipad .rubric tr:last-child td {
  border-bottom: 0;
}

body.guide-mathematiques-ipad .notice {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #d9d9fb;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--math-indigo-soft), #fff);
  box-shadow: var(--shadow-soft);
}

body.guide-mathematiques-ipad .notice h2 {
  margin: 0 0 6px;
  font-size: 1.28rem;
  letter-spacing: -.02em;
}

body.guide-mathematiques-ipad .notice p {
  margin: 0;
  color: var(--muted);
}

body.guide-mathematiques-ipad .footer {
  padding-top: 20px;
  padding-bottom: 20px;
}

body.guide-mathematiques-ipad .footer h2 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

body.guide-mathematiques-ipad .footer p {
  margin: 0;
  font-size: .91rem;
}

body.guide-mathematiques-ipad .footer-links {
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  body.guide-mathematiques-ipad .app-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.guide-mathematiques-ipad .wrap {
    padding-bottom: 60px;
  }

  body.guide-mathematiques-ipad .hero,
  body.guide-mathematiques-ipad .panel,
  body.guide-mathematiques-ipad .footer {
    border-radius: 24px;
  }

  body.guide-mathematiques-ipad .brand img {
    width: 275px;
  }

  body.guide-mathematiques-ipad .panel {
    padding: 19px;
  }

  body.guide-mathematiques-ipad .goal-grid,
  body.guide-mathematiques-ipad .question-grid,
  body.guide-mathematiques-ipad .example-grid,
  body.guide-mathematiques-ipad .geometry-observe,
  body.guide-mathematiques-ipad .representation-grid,
  body.guide-mathematiques-ipad .deliverable-grid,
  body.guide-mathematiques-ipad .tool-timing {
    grid-template-columns: 1fr;
  }

  body.guide-mathematiques-ipad .lesson-flow > div,
  body.guide-mathematiques-ipad .conjecture-cycle > div,
  body.guide-mathematiques-ipad .storyboard > div {
    grid-template-columns: 1fr;
  }

  body.guide-mathematiques-ipad .compare-table {
    overflow-x: auto;
  }

  body.guide-mathematiques-ipad .compare-table > div {
    min-width: 610px;
  }

  body.guide-mathematiques-ipad .reasoning-strip > div,
  body.guide-mathematiques-ipad .representation-grid > div {
    grid-template-columns: 1fr;
  }

  body.guide-mathematiques-ipad .reasoning-strip small {
    grid-column: auto;
  }

  body.guide-mathematiques-ipad .notice {
    grid-template-columns: 1fr;
    padding: 19px;
  }

  body.guide-mathematiques-ipad .footer-links {
    justify-content: flex-start;
  }

  body.guide-mathematiques-ipad .tab-btn {
    padding: 9px 10px;
    font-size: .87rem;
  }
}

@media print {
  body.guide-mathematiques-ipad .tabs,
  body.guide-mathematiques-ipad .hero-actions,
  body.guide-mathematiques-ipad .copy-btn {
    display: none !important;
  }

  body.guide-mathematiques-ipad .panel,
  body.guide-mathematiques-ipad .panel[hidden] {
    display: block !important;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #d1d5db;
  }

  body.guide-mathematiques-ipad .wrap {
    width: 100%;
  }

  body.guide-mathematiques-ipad .hero,
  body.guide-mathematiques-ipad .quick-start,
  body.guide-mathematiques-ipad .notice,
  body.guide-mathematiques-ipad .footer {
    box-shadow: none;
  }
}


/* Version 2 : sélection d'applications resserrée */
body.guide-mathematiques-ipad .app-cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.guide-mathematiques-ipad .selection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

body.guide-mathematiques-ipad .selection-heading h3 {
  margin-bottom: 5px;
}

body.guide-mathematiques-ipad .selection-heading p {
  margin: 0;
  max-width: 800px;
}

body.guide-mathematiques-ipad .developer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid #d9d9fb;
  border-radius: 14px;
  background: var(--math-indigo-soft);
  color: #44469a;
  font-size: .88rem;
  font-weight: 800;
}

body.guide-mathematiques-ipad .developer-link:hover {
  text-decoration: none;
  background: #e5e5ff;
}

body.guide-mathematiques-ipad .auclair-selection {
  margin-bottom: 18px;
}

body.guide-mathematiques-ipad .training-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

body.guide-mathematiques-ipad .training-rules > div {
  padding: 12px 13px;
  border: 1px solid #caeadf;
  border-radius: 16px;
  background: var(--math-green-soft);
}

body.guide-mathematiques-ipad .training-rules strong,
body.guide-mathematiques-ipad .training-rules span {
  display: block;
}

body.guide-mathematiques-ipad .training-rules span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 900px) {
  body.guide-mathematiques-ipad .app-cards.two,
  body.guide-mathematiques-ipad .training-rules {
    grid-template-columns: 1fr;
  }

  body.guide-mathematiques-ipad .selection-heading {
    display: grid;
  }

  body.guide-mathematiques-ipad .developer-link {
    justify-self: start;
  }
}
