body.guide-gestion-classe-ipad {
  --max: 1240px;
  --classroom-blue: #2563eb;
  --classroom-blue-soft: #edf5ff;
  --jamf-purple: #7656c8;
  --jamf-purple-soft: #f3efff;
  --teacher-green: #0f766e;
  --teacher-green-soft: #eafbf6;
}

body.guide-gestion-classe-ipad .wrap {
  padding-top: 28px;
  padding-bottom: 58px;
}

body.guide-gestion-classe-ipad .brand img {
  width: min(330px, 100%);
}

body.guide-gestion-classe-ipad .hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,255,255,.84)),
    radial-gradient(circle at 88% 17%, rgba(37,99,235,.13), transparent 28%),
    radial-gradient(circle at 78% 92%, rgba(118,86,200,.11), transparent 30%);
}

body.guide-gestion-classe-ipad .hero::before {
  content: "";
  position: absolute;
  inset: -160px auto auto -120px;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245,130,32,.11), transparent 69%);
  pointer-events: none;
}

body.guide-gestion-classe-ipad .hero-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, .84fr);
  align-items: center;
}

body.guide-gestion-classe-ipad h1 {
  max-width: 13ch;
}

.course-hero-card {
  min-height: 370px;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 27px;
  background:
    radial-gradient(circle at 20% 15%, rgba(245,130,32,.10), transparent 30%),
    radial-gradient(circle at 86% 85%, rgba(37,99,235,.10), transparent 31%),
    linear-gradient(155deg, #fff, #f7f9fd);
  box-shadow: var(--shadow-soft);
}

.course-hero-card > p {
  max-width: 40ch;
  margin: 19px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .94rem;
}

.course-flow {
  width: min(100%, 360px);
  display: grid;
  gap: 11px;
}

.flow-row {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

.flow-row strong,
.flow-row small {
  display: block;
}

.flow-row small {
  color: var(--muted);
  margin-top: 1px;
}

.flow-row > .icon {
  width: 27px;
  height: 27px;
}

.flow-number {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-weight: 850;
}

.flow-row.prepare .flow-number { background: var(--jamf-purple-soft); color: var(--jamf-purple); }
.flow-row.prepare > .icon { color: var(--jamf-purple); }
.flow-row.guide .flow-number { background: var(--teacher-green-soft); color: var(--teacher-green); }
.flow-row.guide > .icon { color: var(--teacher-green); }
.flow-row.gather .flow-number { background: var(--classroom-blue-soft); color: var(--classroom-blue); }
.flow-row.gather > .icon { color: var(--classroom-blue); }

body.guide-gestion-classe-ipad .quick-start {
  margin-top: 24px;
}

body.guide-gestion-classe-ipad .todo {
  grid-template-columns: 30px minmax(0, 1fr) auto;
}

body.guide-gestion-classe-ipad .version-note {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d8e4f8;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2f7ff, #fff);
}

body.guide-gestion-classe-ipad .version-note > .icon {
  margin: 2px auto 0;
  color: var(--classroom-blue);
}

body.guide-gestion-classe-ipad .version-note p {
  margin: 0;
  color: #40526c;
  font-size: .93rem;
}

.deployment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.deployment-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.deployment-card.individual {
  border-color: #cfe0fb;
  background: linear-gradient(150deg, var(--classroom-blue-soft), #fff 57%);
}

.deployment-card.mobile-class {
  border-color: #ddd4f6;
  background: linear-gradient(150deg, var(--jamf-purple-soft), #fff 57%);
}

.deployment-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.deployment-head h3 {
  margin: 2px 0 0;
  font-size: 1.18rem;
}

.deployment-tag {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.deployment-card ul {
  margin: 16px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.deployment-card li + li {
  margin-top: 8px;
}

.common-principle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #c9eadf;
  border-radius: 19px;
  background: var(--teacher-green-soft);
}

.common-principle > .icon {
  width: 25px;
  height: 25px;
  margin: auto;
  color: var(--teacher-green);
}

.common-principle p {
  margin: 0;
  color: #365c55;
}

body.guide-gestion-classe-ipad .panel {
  scroll-margin-top: 130px;
}

.tool-compare {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
}

.tool-compare:focus-visible {
  outline: 3px solid rgba(245,130,32,.24);
  outline-offset: 3px;
}

.tool-compare table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.tool-compare th,
.tool-compare td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.tool-compare th {
  color: #475569;
  background: #f8fafc;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tool-compare tbody tr:last-child td {
  border-bottom: 0;
}

.tool-compare td:first-child {
  width: 28%;
  font-weight: 730;
}

.tool-compare td:nth-child(2) {
  width: 19%;
}

.tool-compare td:last-child {
  color: var(--muted);
}

.tool-pill,
.phase-tool {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.tool-pill.apple,
.phase-tool.apple { color: #1d4ed8; background: var(--classroom-blue-soft); }
.tool-pill.jamf,
.phase-tool.jamf { color: #6342b8; background: var(--jamf-purple-soft); }
.tool-pill.teacher,
.phase-tool.teacher { color: #0f6b64; background: var(--teacher-green-soft); }
.phase-tool.mixed { color: #8a4a10; background: var(--accent-soft); }

.posture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.routine-card {
  position: relative;
  min-height: 210px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
}

.routine-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -52px;
  bottom: -57px;
  border-radius: 999px;
  background: rgba(245,130,32,.08);
}

.routine-number {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.routine-card h3 {
  margin: 13px 0 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.routine-card p {
  margin: 0;
  color: var(--muted);
}

.class-example,
.challenge-card {
  padding: 20px;
  border-radius: 22px;
}

.class-example {
  border: 1px solid #c9eadf;
  background: linear-gradient(145deg, #effcf7, #fff);
}

.class-example h3,
.challenge-card h3 {
  margin: 8px 0 7px;
  font-size: 1.15rem;
}

.class-example p {
  margin: 0;
  color: var(--muted);
}

.example-label {
  color: var(--teacher-green);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.challenge-card {
  color: #e5e7eb;
  border: 1px solid rgba(16,24,40,.82);
  background: linear-gradient(145deg, #101828, #223047);
}

.challenge-card strong,
.challenge-card h3 {
  color: #fff;
}

.challenge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.challenge-top > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fdba74;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.challenge-card ol {
  margin: 14px 0 0;
  padding-left: 1.25rem;
  color: #d8dee8;
}

.challenge-card li + li {
  margin-top: 7px;
}

.compact-list strong {
  color: var(--text);
}

.jamf-model {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.jamf-model article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 13px;
  padding: 17px;
  border: 1px solid #ddd4f6;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--jamf-purple-soft), #fff);
}

.model-icon {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--jamf-purple);
  border-radius: 16px;
  background: #fff;
  border: 1px solid #ddd4f6;
}

.jamf-model h3 {
  margin: 1px 0 4px;
  font-size: 1.06rem;
}

.jamf-model p {
  margin: 0;
  color: var(--muted);
  font-size: .91rem;
}

.availability-note {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .88rem !important;
}

.differentiation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.path-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.path-card:nth-child(1) { border-top: 4px solid var(--classroom-blue); }
.path-card:nth-child(2) { border-top: 4px solid var(--teacher-green); }
.path-card:nth-child(3) { border-top: 4px solid var(--jamf-purple); }

.path-label {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.path-card h3 {
  margin: 11px 0 8px;
  font-size: 1.12rem;
}

.path-card > p {
  margin: 0;
  color: var(--muted);
}

.path-card dl {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 7px 9px;
  margin: 17px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.path-card dt {
  color: #64748b;
  font-size: .82rem;
  font-weight: 800;
}

.path-card dd {
  margin: 0;
  color: var(--text);
  font-size: .89rem;
}

.lesson-timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.lesson-phase {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  position: relative;
}

.lesson-phase:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 58px;
  bottom: -10px;
  width: 2px;
  background: #dfe4ec;
}

.lesson-phase time {
  width: 76px;
  min-height: 54px;
  display: grid;
  place-items: center;
  align-self: start;
  color: #475569;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  font-size: .9rem;
  font-weight: 850;
  z-index: 1;
}

.lesson-phase.before time,
.lesson-phase.end time {
  color: #8a4a10;
  border-color: #ffd5af;
  background: var(--accent-soft);
}

.lesson-phase > div {
  margin-bottom: 13px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}

.lesson-phase h3 {
  margin: 8px 0 5px;
  font-size: 1.08rem;
}

.lesson-phase p {
  margin: 0;
  color: var(--muted);
}

.week-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
}

.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trouble-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.trouble-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #b45309;
  border: 1px solid #fde2bd;
  border-radius: 15px;
  background: #fff8ed;
}

.trouble-card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.trouble-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.trouble-card p + p {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.fallback-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 20px;
  align-items: center;
  padding: 21px;
  color: #e5e7eb;
  border-radius: 23px;
  background: linear-gradient(145deg, #101828, #26354d);
  overflow: hidden;
}

.fallback-card .example-label {
  color: #fdba74;
}

.fallback-card h3 {
  margin: 8px 0 7px;
  color: #fff;
  font-size: 1.2rem;
}

.fallback-card p {
  margin: 0;
  color: #d2d9e4;
}

.fallback-card > .icon {
  width: 58px;
  height: 58px;
  color: #fdba74;
}

@media (max-width: 1080px) {
  body.guide-gestion-classe-ipad .hero-grid {
    grid-template-columns: 1fr;
  }

  .posture-grid,
  .differentiation-grid,
  .troubleshooting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .deployment-grid,
  .posture-grid,
  .jamf-model,
  .differentiation-grid,
  .troubleshooting-grid,
  .week-steps {
    grid-template-columns: 1fr;
  }

  body.guide-gestion-classe-ipad .todo {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  body.guide-gestion-classe-ipad .todo .tag {
    grid-column: 2;
    justify-self: start;
  }

  .routine-card {
    min-height: 0;
  }

  .lesson-phase {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .lesson-phase time {
    width: 62px;
  }

  .lesson-phase:not(:last-child)::before {
    left: 30px;
  }
}

@media (max-width: 520px) {
  .course-hero-card {
    min-height: 0;
    padding: 18px;
  }

  .flow-row {
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .flow-row > .icon {
    display: none;
  }

  .common-principle,
  body.guide-gestion-classe-ipad .version-note {
    grid-template-columns: 1fr;
  }

  .common-principle > .icon,
  body.guide-gestion-classe-ipad .version-note > .icon {
    margin: 0;
  }

  .lesson-phase {
    grid-template-columns: 1fr;
  }

  .lesson-phase:not(:last-child)::before {
    display: none;
  }

  .lesson-phase time {
    width: auto;
    min-height: 42px;
    justify-self: start;
    padding: 0 13px;
  }

  .fallback-card {
    grid-template-columns: 1fr;
  }
}

@media print {
  .course-hero-card {
    min-height: auto;
  }

  .tool-compare {
    overflow: visible;
  }

  .tool-compare table {
    min-width: 0;
  }

  .routine-card,
  .deployment-card,
  .path-card,
  .trouble-card,
  .lesson-phase > div,
  .fallback-card {
    break-inside: avoid;
  }
}
