:root {
  --myds-blue: #2a76bb;
  --myds-blue-dark: #003d70;
  --myds-pink: #e61e89;
  --myds-dark: #17191b;
  --myds-line: #e5e7eb;
  --myds-soft: #f4f4f4;
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

.site-content {
  transition: opacity 120ms ease;
}

body.is-navigating .site-content {
  opacity: .72;
}

body.is-navigating,
body.is-navigating a {
  cursor: progress;
}

a[data-instant-ready] {
  text-decoration-thickness: max(1px, .08em);
  text-underline-offset: .18em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.c-home-hero {
  position: relative;
}

.c-home-hero::before {
  z-index: 0;
  pointer-events: none;
}

.c-home-hero__container,
.c-home-hero__text-col,
.c-home-hero .title__page,
.c-home-hero__cta {
  position: relative;
  z-index: 2;
}

.c-home-hero a {
  pointer-events: auto;
}

.c-course-tab__tabs {
  list-style: none;
  padding-left: 0;
  width: calc(100% - 30px);
  max-width: 1330px;
  margin-left: auto;
  margin-right: auto;
}

.c-course-tab__tabs.flex-row,
.c-home-services .container--narrow > .flex-row,
.c-home-avantages .flex-row,
.c-home-engagement__row.flex-row {
  margin-left: auto;
  margin-right: auto;
}

.c-course-tab__tabs > .col,
.c-home-services .container--narrow > .flex-row > .col,
.c-home-avantages .flex-row > .col,
.c-home-engagement__row.flex-row > .col {
  min-width: 0;
}

.c-course-tab__tab {
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.c-course-tab__tab a {
  color: inherit;
  text-decoration: none;
}

.c-home-services__item {
  position: relative;
}

.c-home-services__item .js-accordion-content {
  display: none;
}

.c-home-services__item.is-open .js-accordion-content {
  display: block;
}

.c-home-services__item-caret {
  cursor: pointer;
  z-index: 2;
}

.c-home-services__item-link a {
  display: block;
  color: var(--myds-blue);
  font-weight: 800;
  text-decoration: none;
}

.c-home-services__item-link a + a {
  margin-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--myds-blue);
  background: var(--myds-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: var(--myds-pink);
  border-color: var(--myds-pink);
  color: #fff;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--myds-line);
  border-radius: 0;
  padding: 18px;
  background: #fff;
}

.event-date {
  text-align: center;
  font-weight: 800;
}

.event-date span {
  display: block;
  color: var(--myds-pink);
  font-size: 34px;
  line-height: 1;
}

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

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

.myds-blog-card {
  background: #fff;
  min-height: 100%;
}

.myds-blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.myds-blog-card h3 {
  font-size: 1rem;
  line-height: 1.45;
  padding: 22px 22px 10px;
  margin: 0;
}

.myds-blog-card h3 a,
.c-blog-card__content h2 {
  color: var(--myds-blue-dark);
  font-weight: 900;
}

.myds-blog-card__image-link {
  display: block;
}

.myds-blog-card a {
  display: inline-block;
  padding: 0 22px 22px;
  color: var(--myds-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .12em;
}

.myds-blog-card .myds-blog-card__image-link {
  display: block;
  padding: 0;
}

.myds-blog-card h3 a {
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
}

.c-blog-card__content p {
  margin: 14px auto 0;
  max-width: 92%;
  color: #4b5563;
  font-size: .96rem;
  line-height: 1.58;
}

.c-blog-card__content h2 {
  margin-bottom: 0;
}

.myds-review-placeholder {
  text-align: center;
  color: #414243;
  font-size: 1.125rem;
}

.myds-reviews-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.myds-review-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 215px;
  padding: 26px;
  background: #fff;
  border: 1px solid #e7edf3;
  box-shadow: 0 7px 18px rgba(31, 52, 72, .06);
}

.myds-review-summary__source {
  color: var(--myds-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.myds-google-letter {
  font-weight: 900;
  letter-spacing: 0;
}

.myds-google-letter.is-blue { color: #4285f4; }
.myds-google-letter.is-red { color: #ea4335; }
.myds-google-letter.is-yellow { color: #fbbc04; }
.myds-google-letter.is-green { color: #34a853; }

.myds-review-summary strong {
  display: block;
  margin: 8px 0 4px;
  color: #414243;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 900;
}

.myds-review-summary span:last-child {
  color: #60656b;
  font-weight: 700;
}

.myds-review-write-link {
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--myds-blue);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.myds-review-write-link:hover {
  background: var(--myds-pink);
  color: #fff;
}

.myds-google-reviews-panel {
  position: relative;
  min-width: 0;
}

.myds-review-nav {
  position: absolute;
  inset: 0 8px 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.myds-review-nav__button {
  pointer-events: auto;
  display: inline-flex;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 118, 187, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 26px rgba(31, 52, 72, .16);
  color: var(--myds-blue);
  cursor: pointer;
  font-family: "Blinker", "Inter", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
}

.myds-review-nav__button:hover,
.myds-review-nav__button:focus-visible {
  border-color: var(--myds-pink);
  background: var(--myds-pink);
  color: #fff;
  transform: translateY(-1px);
}

.myds-review-nav__button:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.myds-google-reviews {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 58px 14px;
  margin: 0;
  scrollbar-width: none;
}

.myds-google-reviews::-webkit-scrollbar {
  display: none;
}

.myds-google-review {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  min-height: 215px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e7edf3;
  box-shadow: 0 7px 18px rgba(31, 52, 72, .06);
}

.myds-google-review__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.myds-google-review__head img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.myds-google-review__head strong {
  display: block;
  color: #414243;
  font-size: .92rem;
  line-height: 1.2;
}

.myds-google-review__stars {
  color: #fbbc04;
  font-size: .9rem;
  letter-spacing: 1px;
  margin-top: 3px;
}

.myds-google-review p {
  margin: 0;
  color: #60656b;
  font-size: .86rem;
  line-height: 1.55;
}

.site-footer .widget {
  margin: 0 0 14px;
}

.site-footer .wp-block-heading {
  color: #fff;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, .78);
}

.site-footer a:hover {
  color: #fff;
}

.footer__socials {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.footer__socials a {
  display: inline-flex;
}

.myds-footer-logos {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 18px;
  margin-top: 26px;
}

.myds-footer-logos figure {
  margin: 0;
}

.myds-footer-logo-card--eduqua {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

.myds-footer-logos img {
  display: block;
  max-height: 58px;
  width: auto;
  opacity: 1;
}

.entry-content .c-selection__ctas {
  justify-content: center;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.entry-content .c-selection__ctas .wp-block-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.myds-legacy-button {
  text-align: center;
}

.myds-legacy-button .btn {
  width: min(100%, 320px);
  min-height: 48px;
  padding-inline: 24px;
  text-transform: uppercase;
}

.myds-packs-hero {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image: url('/wp-content/uploads/2022/05/person-taking-driver-s-license-exam-scaled.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}

.myds-packs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .58);
}

.myds-packs-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -86px;
  width: 160vw;
  height: 150px;
  transform: translateX(-50%);
  border-top: 8px solid var(--myds-blue-dark);
  border-radius: 50% 50% 0 0;
  background: #fff;
}

.myds-packs-hero__inner {
  width: min(760px, 88%);
  margin-top: 60px;
  text-align: center;
}

.myds-packs-hero h1 {
  margin: 0 0 32px;
  color: #fff;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
}

.myds-packs-hero p {
  margin: 0 auto;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.35;
}

.myds-packs-page {
  padding: 86px 0 110px;
  background: #fff;
}

.myds-packs-page .title__section {
  margin-bottom: 54px;
}

.myds-packs-page__group {
  margin-top: 56px;
}

.myds-packs-page__group h3 {
  margin: 0 0 28px;
  color: var(--myds-blue-dark);
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.myds-packs-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.myds-contact-page {
  padding: 78px 0 90px;
  background: #fff;
}

.myds-contact-page__intro {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.myds-contact-page__intro h2 {
  margin: 0 0 18px;
  color: var(--myds-blue);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
}

.myds-contact-page__intro p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.myds-contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: start;
}

.myds-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.myds-contact-form label {
  display: block;
}

.myds-contact-form label.is-wide,
.myds-contact-form button {
  grid-column: 1 / -1;
}

.myds-form-success {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border-left: 4px solid #34a853;
  border-radius: 8px;
  background: #eefaf2;
  color: #14532d;
  font-weight: 800;
}

.myds-form-error {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border-left: 4px solid #e61e89;
  border-radius: 8px;
  background: #fff1f8;
  color: #8a124f;
  font-weight: 800;
}

.myds-contact-form span {
  display: block;
  margin-bottom: 7px;
  color: var(--myds-blue-dark);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.myds-contact-form input,
.myds-contact-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 13px 14px;
  font: inherit;
}

.myds-contact-form__privacy {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #414243;
  font-size: .88rem;
  line-height: 1.55;
}

.myds-contact-form__privacy input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--myds-pink);
}

.myds-contact-form .myds-contact-form__privacy span {
  margin: 0;
  color: #414243;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.myds-contact-form__privacy a {
  color: var(--myds-blue);
  font-weight: 800;
  text-decoration: underline;
}

.myds-contact-card {
  padding: 34px;
  background: var(--myds-blue);
  color: #fff;
}

.myds-contact-card h3 {
  margin: 0 0 22px;
  color: #fff;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.myds-contact-card a,
.myds-contact-card p {
  color: #fff;
}

.myds-contact-schools {
  position: relative;
  padding: 84px 0 92px;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .72)),
    url('/wp-content/uploads/2022/09/my-driving-school-contact-bandeau@2x-scaled.jpg') center / cover no-repeat;
  overflow: hidden;
}

.myds-contact-schools__inner {
  width: min(calc(100% - 30px), 1330px);
  margin: 0 auto;
}

.myds-contact-schools h2 {
  margin: 0 0 46px;
  color: #fff;
  text-align: center;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
}

.myds-contact-schools__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.myds-contact-school-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  color: #fff;
  backdrop-filter: blur(7px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .28);
}

.myds-contact-school-card__image {
  display: block;
  aspect-ratio: 1.62 / 1;
  overflow: hidden;
}

.myds-contact-school-card__image img {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
}

.myds-contact-school-card__body {
  display: flex;
  min-height: 252px;
  flex-direction: column;
  padding: 18px 14px 24px;
  background: linear-gradient(180deg, rgba(23, 17, 13, .82), rgba(9, 9, 10, .78));
}

.myds-contact-school-card h3 {
  position: relative;
  margin: 0 0 28px;
  padding-bottom: 18px;
  color: #fff;
  text-align: center;
  font-size: 1.28rem;
  line-height: 1.25;
  text-transform: none;
}

.myds-contact-school-card h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .62);
}

.myds-contact-school-card p {
  margin: 0 0 16px;
  color: #fff;
  font-size: .96rem;
  line-height: 1.45;
}

.myds-contact-school-card a {
  color: #fff;
}

.myds-contact-school-card__link {
  margin-top: auto;
  text-align: center;
  font-weight: 800;
  text-decoration: underline;
}

.myds-faq-page {
  padding: 74px 0 90px;
  background: #f5f5f5;
}

.myds-message-page {
  padding: 86px 0 110px;
  background: #fff;
}

.myds-message-page p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.myds-faq-page .c-home-faq__items {
  margin-top: 44px;
}

.c-tarifs-license-tabs {
  padding: 78px 0 34px;
  background: #fff;
}

.c-tarifs-license-tabs .container--narrow,
.c-tarifs > section > .container {
  width: min(calc(100% - 30px), 1330px);
  max-width: 1330px;
}

.c-tarifs > section > .container {
  padding-left: 0;
  padding-right: 0;
}

.c-tarifs-license-tabs .c-course-tab__tabs {
  width: 100%;
  max-width: none;
  margin-top: 36px;
}

[data-tariff-type][hidden],
[data-lesson-location-panel][hidden],
[data-faq-groups][hidden] {
  display: none !important;
}

.c-tarif-card__prices {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.c-tarif-card__price-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.c-tarif-card__price-line .from {
  margin: 0;
}

.c-tarif-card__discount {
  margin-bottom: 8px;
}

.myds-faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 34px 0 10px;
}

.myds-faq-tabs button {
  min-height: 42px;
  border: 1px solid var(--myds-blue);
  border-radius: 6px;
  padding: 0 18px;
  background: #fff;
  color: var(--myds-blue-dark);
  font-weight: 900;
  cursor: pointer;
}

.myds-faq-tabs button.is-active {
  background: var(--myds-blue);
  color: #fff;
}

.myds-event-card__price {
  display: block;
  margin: 10px 0 16px;
  color: var(--myds-blue-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.myds-blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 52px;
}

.myds-blog-pagination a,
.myds-blog-pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--myds-blue);
  color: var(--myds-blue);
  font-weight: 800;
  text-decoration: none;
}

.myds-blog-pagination .is-current,
.myds-blog-pagination a:hover {
  background: var(--myds-blue);
  color: #fff;
}

.myds-school-team {
  padding: 74px 0 90px;
}

.myds-school-team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.myds-school-team__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 26px 18px 24px;
  text-align: center;
}

.myds-school-team__card img {
  width: 190px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.myds-school-team__card h3 {
  margin: 18px 0 6px;
  color: var(--myds-blue);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.myds-school-team__phone {
  margin: 0 0 10px;
  color: var(--myds-pink);
  font-weight: 800;
  text-decoration: none;
}

.myds-school-team__card p {
  margin: 0;
  color: #414243;
  font-weight: 700;
}

.c-tarifs > section,
.c-cours,
.c-blog,
.c-contact-ecoles {
  padding-top: 72px;
  padding-bottom: 72px;
}

.c-tarifs .title__section {
  margin-bottom: 22px;
}

.c-tarifs-carousel {
  row-gap: 34px;
}

.myds-booking-hero,
.myds-event-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}

.myds-booking-hero::before,
.myds-event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .62);
}

.myds-booking-hero__inner,
.myds-event-hero__inner {
  width: min(1040px, 90%);
  text-align: center;
}

.myds-booking-hero h1,
.myds-event-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.18;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.myds-booking-hero h1.myds-hero-title-badge {
  display: inline-block;
  padding: 10px 16px 8px;
  background: rgba(255, 255, 255, .68);
  color: var(--myds-blue-dark);
  font-size: clamp(2.3rem, 4.3vw, 4.1rem);
  line-height: 1;
  letter-spacing: .08em;
}

.myds-event-hero__text {
  max-width: 920px;
  margin: 42px auto 0;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.75;
}

.myds-event-hero__text p {
  color: inherit;
}

.myds-hero-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  min-height: 54px;
  margin-top: 48px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .2);
  white-space: nowrap;
}

.myds-hero-google__faces {
  display: block;
  flex: 0 0 auto;
  width: 146px;
  height: 40px;
  object-fit: contain;
}

.myds-hero-google__stars {
  color: #ffb400;
  letter-spacing: 1px;
}

.myds-hero-google__g {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #4285f4;
  font-weight: 900;
}

.myds-booking-list {
  padding: 135px 0 90px;
  background: #fff;
}

.myds-registration-listing {
  padding-top: 88px;
}

.myds-booking-list .container--narrower {
  width: min(1120px, 90%);
  max-width: 1120px;
}

.myds-registration-listing__title {
  margin: 0 0 58px;
  color: var(--myds-blue-dark);
  text-align: center;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.myds-registration-filter {
  margin: 0 auto 96px;
  width: min(100%, 1120px);
}

.myds-registration-filter label {
  position: relative;
  display: block;
}

.myds-registration-filter span {
  position: absolute;
  top: 50%;
  left: 55px;
  z-index: 1;
  transform: translateY(-50%);
  color: #666;
  font-size: 1rem;
}

.myds-registration-filter label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 16px;
  height: 16px;
  transform: translateY(-65%) rotate(-45deg);
  border: 2px solid var(--myds-blue);
  border-radius: 50% 50% 50% 0;
}

.myds-registration-filter label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 23px;
  width: 6px;
  height: 6px;
  transform: translateY(-82%);
  border-radius: 50%;
  background: var(--myds-blue);
}

.myds-registration-filter select {
  width: 100%;
  min-height: 48px;
  padding: 0 18px 0 115px;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  background: #fff;
  color: transparent;
  font: inherit;
  appearance: auto;
}

.myds-event-month {
  margin-bottom: 86px;
}

.myds-event-month.is-extra-month {
  display: none;
}

.myds-booking-list.is-expanded .myds-event-month.is-extra-month {
  display: block;
}

.myds-event-month h2 {
  margin: 0 0 66px;
  color: #1f2933;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.myds-event-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  justify-items: center;
}

.myds-registration-listing .myds-event-card-grid .myds-event-card:only-child {
  grid-column: 2 / 4;
}

.myds-event-card {
  width: min(100%, 260px);
  overflow: hidden;
  border-radius: 8px;
  background: #211915;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .22);
}

.myds-event-card.is-extra {
  display: none;
}

.myds-booking-list.is-expanded .myds-event-card.is-extra,
.myds-event-card-grid.is-expanded .myds-event-card.is-extra {
  display: block;
}

.myds-event-card__image {
  position: relative;
  min-height: 145px;
  background-size: cover;
  background-position: center;
}

.myds-event-card__date {
  position: absolute;
  top: 12px;
  left: 13px;
  right: 13px;
  padding: 9px 10px;
  border-radius: 4px;
  background: var(--myds-blue);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: .9rem;
}

.myds-event-card__body {
  min-height: 188px;
  padding: 18px 20px 22px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(39, 28, 22, .82), #2a201b);
}

.myds-event-card__body h3 {
  margin: 0;
  color: #fff;
  font-size: 1.04rem;
  line-height: 1.45;
  font-weight: 900;
}

.myds-event-card__seats {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--myds-pink);
  color: #fff;
  font-size: .64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.myds-event-card__body p {
  margin: 12px 0 16px;
  color: #8fd4ee;
  font-style: italic;
  font-weight: 700;
}

.myds-event-card .btn {
  min-height: 38px;
  padding-inline: 18px;
  border-color: var(--myds-pink);
  border-radius: 5px;
  background: var(--myds-pink);
  font-size: .82rem;
}

.myds-more-wrap {
  margin-top: -28px;
  text-align: center;
}

.myds-more-events {
  min-height: 40px;
  padding: 0 30px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fff;
  color: #9ca3af;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.myds-booking-reviews {
  padding-top: 90px;
  background: #f4f4f4;
}

.myds-booking-reviews .container {
  width: min(94%, 1340px);
  max-width: 1340px;
}

.myds-booking-reviews .title__section span {
  color: #fff;
  background: var(--myds-blue);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.myds-event-booking {
  padding: 58px 0 64px;
  background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
}

.myds-event-booking .container--narrower,
.myds-event-info .container--narrower,
.myds-related-events .container--narrower {
  width: min(1120px, 90%);
  max-width: 1120px;
}

.myds-event-booking__label {
  margin-bottom: 14px;
  color: var(--myds-blue);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.myds-event-booking__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.myds-event-schedule {
  min-height: 0;
  padding: 30px 28px;
  box-shadow: 0 18px 38px rgba(17, 24, 39, .14);
}

.myds-event-schedule .myds-schedule-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-width: 5px;
  font-size: 1.8rem;
}

.myds-event-schedule .myds-schedule-card__line {
  margin: 18px 0 24px;
}

.myds-schedule-card {
  min-height: 410px;
  padding: 36px 34px;
  border-radius: 8px;
  background: linear-gradient(rgba(230, 30, 137, .9), rgba(230, 30, 137, .9)), url('/wp-content/uploads/2022/08/my-driving-school-formation-aux-premiers-secours-bandeau@2x.jpg') center/cover;
  color: #fff;
}

.myds-schedule-card__icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border: 6px solid #18010d;
  border-radius: 50%;
  color: #18010d;
  font-size: 2.2rem;
  font-weight: 900;
}

.myds-schedule-card h2 {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.myds-schedule-card__line {
  height: 3px;
  margin: 22px 0 30px;
  background: #fff;
}

.myds-schedule-card h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 500;
}

.myds-schedule-card ol {
  position: relative;
  margin: 24px 0 0;
  padding: 0 0 0 28px;
  list-style: none;
}

.myds-schedule-card ol::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: #fff;
}

.myds-schedule-card li {
  position: relative;
  margin-bottom: 24px;
}

.myds-schedule-card li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.myds-schedule-card span,
.myds-schedule-card strong,
.myds-schedule-card em {
  display: block;
  color: #fff;
}

.myds-schedule-card strong {
  margin-top: 3px;
}

.myds-booking-panel {
  padding: 32px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(17, 24, 39, .12);
}

.myds-booking-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  margin-bottom: 26px;
  border-top: 2px solid #d8dee8;
}

.myds-booking-steps span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: -14px;
  color: #8b96a6;
  font-weight: 900;
}

.myds-booking-steps span::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #fff;
}

.myds-booking-steps span {
  counter-increment: step;
}

.myds-booking-steps span {
  font-size: 0;
}

.myds-booking-steps span::after {
  content: counter(step);
  position: absolute;
  top: 5px;
  font-size: .8rem;
}

.myds-booking-steps span small {
  color: inherit;
  font-size: .78rem;
}

.myds-booking-steps .is-current {
  color: var(--myds-pink);
}

.myds-booking-steps .is-done {
  color: var(--myds-blue);
}

.myds-booking-step-panel[hidden] {
  display: none !important;
}

.myds-booking-step-panel {
  display: grid;
  gap: 18px;
}

.myds-ticket-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 86px;
  gap: 18px 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #fbfcfe;
  box-shadow: inset 4px 0 0 var(--myds-blue);
}

.myds-ticket-row__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(42, 118, 187, .12);
  color: var(--myds-blue);
  font-size: 1.45rem;
}

.myds-ticket-row span,
.myds-ticket-row strong {
  display: block;
}

.myds-ticket-row strong {
  margin-top: 6px;
  color: var(--myds-blue-dark);
  font-size: 1.65rem;
  line-height: 1;
}

.myds-ticket-row input {
  width: 76px;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--myds-blue-dark);
  font-weight: 900;
  text-align: center;
}

.myds-ticket-row em {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: .82rem;
  font-style: normal;
  font-weight: 700;
  text-align: left;
}

.myds-participant-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 22px;
  padding: 18px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #f8fafc;
}

.myds-participant-fields__header {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  color: #64748b;
}

.myds-participant-fields__header strong,
.myds-participant-fields__header span {
  display: block;
}

.myds-participant-fields__header strong {
  color: var(--myds-blue-dark);
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.myds-participant-fields__header span {
  font-size: .82rem;
}

.myds-participant-fields label {
  display: block;
  color: #475569;
  font-weight: 700;
}

.myds-participant-fields label > span {
  display: block;
  margin-bottom: 6px;
  font-size: .72rem;
  text-transform: uppercase;
}

.myds-participant-fields input,
.myds-participant-fields select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
}

.myds-agreement {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.myds-agreement input {
  width: auto;
  min-height: 0;
}

.myds-choice-group {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.myds-choice-group legend {
  margin-bottom: 2px;
  color: #475569;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.myds-choice {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  background: #fff;
}

.myds-choice input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.myds-choice span {
  margin: 0 !important;
  font-size: .9rem !important;
  line-height: 1.35;
  text-transform: none !important;
}

.myds-booking-submit {
  width: 100%;
  min-height: 50px;
  border-radius: 6px;
  border: 0;
  background: var(--myds-pink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.myds-booking-actions {
  display: grid;
  grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr);
  gap: 12px;
}

.myds-booking-back {
  min-height: 50px;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  background: #fff;
  color: var(--myds-blue-dark);
  font-weight: 900;
  cursor: pointer;
}

.myds-event-info {
  padding: 44px 0;
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
}

.myds-event-info::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(42, 118, 187, .86);
}

.myds-event-info__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.myds-event-info__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, .65);
}

.myds-event-info__cards div {
  min-height: 116px;
  padding: 28px 18px;
  border-right: 1px solid rgba(255, 255, 255, .35);
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  text-align: center;
  color: #fff;
}

.myds-event-info__cards .is-wide {
  grid-column: span 2;
}

.myds-event-info__cards strong,
.myds-event-info__cards span {
  display: block;
  color: #fff;
}

.myds-event-info__cards strong {
  margin-bottom: 14px;
}

.myds-event-map iframe {
  width: 100%;
  height: 250px;
  border: 0;
  display: block;
}

.myds-event-map input,
.myds-event-map a {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
}

.myds-event-map input {
  border: 0;
  padding: 0 14px;
}

.myds-event-map a {
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.myds-related-events {
  padding: 70px 0;
  background: #fff;
}

.myds-related-events h2 {
  color: var(--myds-blue);
  text-align: center;
  font-size: 2.6rem;
  font-weight: 400;
}

.myds-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-top: 28px;
}

.myds-related-card {
  overflow: hidden;
  border-radius: 6px;
  background: #211915;
  color: #fff;
  text-decoration: none;
}

.myds-related-card div {
  min-height: 155px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.myds-related-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  padding: 8px;
  border-radius: 4px;
  background: var(--myds-blue);
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.myds-related-card strong {
  display: block;
  min-height: 82px;
  padding: 18px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.myds-related-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 54px;
}

.myds-related-nav a {
  color: var(--myds-pink);
  font-weight: 900;
  text-decoration: none;
}

.myds-blog-hero .title__page {
  color: var(--myds-blue);
}

.myds-course-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .62)), url('/wp-content/uploads/2022/09/my-driving-school-formation-premiers-secours-bandeau-scaled.jpg') center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.myds-course-hero--moto {
  min-height: 560px;
  background-image: linear-gradient(rgba(0, 0, 0, .70), rgba(0, 0, 0, .70)), url('/wp-content/uploads/2025/07/slider1-1.png');
  background-position: center bottom;
}

.myds-course-hero--moto::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -52px;
  width: 120%;
  height: 120px;
  transform: translateX(-50%);
  border-top: 10px solid var(--myds-blue);
  border-radius: 50% 50% 0 0;
  background: #fff;
}

.myds-course-hero__inner {
  position: relative;
  z-index: 1;
  width: min(900px, 92%);
  margin: 0 auto;
  padding: 70px 0 100px;
}

.myds-course-hero h1 {
  margin: 0 0 32px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.myds-course-hero__actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.myds-course-hero .btn,
.myds-course-sticky-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border-radius: 4px;
  border: 0;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.myds-course-hero .btn-primary,
.myds-course-sticky-cta .btn-primary {
  background: var(--myds-pink);
}

.myds-course-hero .btn-secondary {
  background: var(--myds-blue);
}

.myds-course-review-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  text-decoration: none;
  box-shadow: 0 7px 25px rgba(0, 0, 0, .18);
}

.myds-course-review-pill img {
  width: 146px;
  height: 38px;
  object-fit: contain;
}

.myds-course-review-pill span {
  color: #f6bf26;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.myds-course-review-pill strong {
  font-size: .95rem;
}

.myds-course-review-pill em {
  color: #636b74;
  font-size: .82rem;
  font-style: normal;
}

.myds-course-page {
  background: #fff;
  color: #1f2933;
}

.myds-course-page .container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

.myds-course-intro {
  padding: 42px 0 28px;
  text-align: center;
}

.myds-course-intro .container {
  width: min(1180px, 90%);
}

.myds-course-intro h2,
.myds-moto-content h2 {
  margin: 0 0 25px;
  color: var(--myds-blue);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.18;
}

.myds-course-intro p,
.myds-moto-content p {
  max-width: 1120px;
  margin: 0 auto 18px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.myds-course-intro strong,
.myds-moto-content strong {
  color: var(--myds-pink);
}

.myds-course-overview {
  padding: 76px 0 54px;
  background: #fff;
}

.myds-course-overview .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.myds-course-overview__copy {
  max-width: 660px;
}

.myds-course-kicker {
  margin: 0 0 12px;
  color: var(--myds-pink);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.myds-course-overview h2 {
  margin: 0 0 22px;
  color: var(--myds-blue);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
}

.myds-course-overview p:not(.myds-course-kicker) {
  margin: 0 0 24px;
  color: #273444;
  font-size: 1.08rem;
  line-height: 1.72;
}

.myds-course-overview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 34, 58, .16);
}

.myds-course-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 4px;
  background: var(--myds-pink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.myds-course-highlights {
  padding: 20px 0 70px;
  background: #fff;
}

.myds-course-highlights .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.myds-course-highlights article {
  min-height: 150px;
  padding: 28px 26px;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  background: #f8fafc;
}

.myds-course-highlights strong {
  display: block;
  margin-bottom: 12px;
  color: var(--myds-blue);
  font-size: 1.1rem;
  font-weight: 900;
}

.myds-course-highlights p {
  margin: 0;
  color: #3b4856;
  font-size: .98rem;
  line-height: 1.58;
}

.myds-course-notice {
  padding: 0 0 54px;
  background: #fff;
}

.myds-course-notice .container {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px 28px;
  border-left: 6px solid var(--myds-pink);
  border-radius: 8px;
  background: #fff4fa;
}

.myds-course-notice strong {
  color: var(--myds-pink);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.myds-course-notice p {
  margin: 0;
  color: #273444;
  line-height: 1.55;
}

.myds-course-sections {
  padding: 0 0 112px;
  background: #fff;
}

.myds-course-sections .container {
  display: grid;
  gap: 22px;
}

.myds-course-sections article {
  padding: clamp(28px, 4vw, 46px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 34, 58, .08);
}

.myds-course-sections article.is-muted {
  background: #f4f7fb;
  box-shadow: none;
}

.myds-course-sections h2 {
  margin: 0 0 18px;
  color: var(--myds-blue);
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
}

.myds-course-sections p {
  max-width: 980px;
  margin: 0 0 16px;
  color: #273444;
  font-size: 1.03rem;
  line-height: 1.72;
}

.myds-course-sections p:last-child {
  margin-bottom: 0;
}

.myds-moto-prices {
  padding: 20px 0 64px;
}

.myds-moto-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.myds-moto-price-card {
  position: relative;
  min-height: 445px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: hidden;
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, .82)), url('/wp-content/uploads/2022/11/my-driving-school-tarifs-lecon-de-conduite-moto@2x.jpg') center / cover no-repeat;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .22);
}

.myds-moto-price-card span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.myds-moto-price-card strong {
  margin-top: 20px;
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: .9;
  font-weight: 800;
}

.myds-moto-price-card small {
  margin-left: 8px;
  font-size: 1.2rem;
}

.myds-moto-price-card em {
  margin-top: 8px;
  color: var(--myds-pink);
  font-style: normal;
  font-weight: 800;
}

.myds-moto-price-card b {
  align-self: center;
  margin-top: 28px;
  padding: 13px 28px;
  border-radius: 28px;
  background: var(--myds-blue);
  color: #fff;
  font-size: 1rem;
}

.myds-moto-info-band {
  padding: 72px 0;
  background: linear-gradient(rgba(0, 34, 58, .90), rgba(0, 34, 58, .90)), url('/wp-content/uploads/2025/07/Background-2.png') center / cover no-repeat;
}

.myds-moto-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  align-items: start;
}

.myds-moto-info-grid article {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.myds-moto-info-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.myds-moto-info-grid p {
  margin: 0;
  padding: 34px 38px 42px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.myds-moto-content {
  padding: 80px 0 130px;
  text-align: center;
}

.myds-moto-content img {
  display: block;
  width: min(760px, 100%);
  margin: 38px auto 54px;
}

.myds-course-sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(5vw, 26px);
  background: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
}

.myds-course-sticky-cta strong {
  color: var(--myds-pink);
  font-size: clamp(1.35rem, 2.3vw, 2.2rem);
  font-weight: 700;
}

.myds-course-sticky-cta span {
  color: var(--myds-blue);
}

.myds-blog-single {
  padding: 45px 0 95px;
  background: #fff;
}

.myds-blog-single .container {
  width: min(1120px, 90%);
}

.myds-blog-single .simple-link {
  color: var(--myds-blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.myds-blog-single .entry-content {
  width: min(840px, 90%);
  margin: 64px auto 0;
  text-align: center;
  color: #111;
  font-size: 1rem;
  line-height: 1.7;
}

.myds-blog-single .title__blog {
  max-width: 980px;
  margin: 0 auto 42px;
  color: var(--myds-blue);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.25;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.myds-blog-single .entry-content h2 {
  margin: 28px auto 18px;
  color: #111;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.myds-blog-single .entry-content p {
  margin: 0 auto 18px;
  color: #111;
  text-align: center;
}

.myds-blog-single .entry-content > span {
  display: block;
  margin: 0 auto 18px;
  color: #111;
  text-align: center;
}

.myds-blog-single .entry-content ul,
.myds-blog-single .entry-content ol {
  display: inline-block;
  margin: 0 auto 22px;
  padding-left: 22px;
  text-align: left;
}

.myds-blog-single .entry-content img {
  display: block;
  max-width: min(100%, 360px);
  height: auto;
  margin: 24px auto;
}

.myds-instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(980px, 90%);
  margin: 0 auto;
}

.myds-instagram-tile {
  display: block;
  background: #f2f2f2;
  overflow: hidden;
}

.myds-instagram-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.c-home-packs .c-tarif-card {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.c-home-packs .myds-pack-grid {
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.c-home-packs .c-tarif-card__details {
  min-height: 145px;
}

.myds-single-tarif {
  width: min(360px, 100%);
  margin: 0 auto;
}

.myds-schools-index {
  padding: 84px 0 96px;
}

.myds-schools-index .container {
  width: min(calc(100% - 30px), 1330px);
  max-width: 1330px;
}

.myds-schools-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  align-items: stretch;
}

.myds-school-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(102, 102, 102, .18) 100%), #10131a;
  box-shadow: 0 22px 46px rgba(15, 23, 42, .18);
  color: #fff;
}

.myds-school-card__media {
  display: block;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  padding: 0;
}

.myds-school-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 5s ease;
}

.site-main .myds-school-card__media img {
  height: 100% !important;
}

.myds-school-card:hover .myds-school-card__media img {
  transform: scale(1.18);
}

.myds-school-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(11, 16, 28, .88), rgba(5, 9, 18, .96));
}

.myds-school-card h3 {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 18px;
  font-size: 1.16rem;
  line-height: 1.28;
  text-transform: uppercase;
}

.myds-school-card h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 2px;
  transform: translateX(-50%);
  background: #fff;
}

.myds-school-card h3 a,
.myds-school-card__phone a,
.myds-school-card__cta {
  color: #fff;
  text-decoration: none;
}

.myds-school-card__address,
.myds-school-card__phone {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .86);
  font-size: .92rem;
  line-height: 1.5;
}

.myds-school-card__phone {
  font-weight: 800;
}

.myds-school-card__cta {
  margin-top: auto;
  padding-top: 8px;
  color: var(--myds-pink);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.myds-school-card__cta:hover,
.myds-school-card h3 a:hover,
.myds-school-card__phone a:hover {
  color: var(--myds-pink);
}

.myds-school-gallery-shell {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.myds-school-gallery {
  display: flex;
  gap: 18px;
  width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 0;
}

.myds-school-gallery::-webkit-scrollbar {
  display: none;
}

.myds-school-gallery__slide {
  flex: 0 0 min(650px, 78vw);
  margin: 0;
  aspect-ratio: 4 / 3;
  scroll-snap-align: center;
}

.myds-school-gallery__slide img {
  width: 100%;
  height: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.c-ecole-detail__content {
  white-space: pre-line;
}

.myds-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--myds-blue);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .24);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.myds-carousel-arrow--prev {
  left: 18px;
}

.myds-carousel-arrow--next {
  right: 18px;
}

.myds-carousel-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.myds-school-map {
  padding: 0 0 70px;
}

.myds-school-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 8px;
}

.myds-school-map a {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 800;
  color: var(--a-blue-dark);
  text-decoration: none;
}

.myds-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 18px;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.top-header__container {
  justify-content: space-between;
  gap: 18px;
}

.top-header--left,
.top-header--right {
  flex: 0 1 auto;
  min-width: 0;
}

.top-header--right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  white-space: nowrap;
}

.top-header__contacts,
.top-header__socials {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
}

.top-header__contacts li,
.top-header__socials li {
  display: block;
}

.top-header__contacts a,
.top-header__socials a {
  white-space: nowrap;
}

.top-header__socials {
  gap: 9px;
}

.top-header__socials a {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.top-header__socials a > svg {
  display: block;
  width: 23px;
  height: 23px;
  margin-right: 0 !important;
  overflow: visible;
}

.top-header--right .myds-language-switch {
  margin-left: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
}

.myds-language-switch a {
  position: relative;
  display: inline-flex;
  width: 21px;
  height: 14px;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0;
  line-height: 1;
  transition: transform .15s ease, opacity .15s ease;
}

.myds-language-switch .myds-flag {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  opacity: .78;
}

.myds-language-switch a.is-active .myds-flag,
.myds-language-switch a:hover .myds-flag {
  opacity: 1;
}

.myds-language-switch a.is-active::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -5px;
  left: 2px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.myds-language-switch a:hover {
  transform: translateY(-1px);
}

.c-home-faq__answer {
  display: none;
}

.c-home-faq__item.is-open .c-home-faq__answer {
  display: block;
}

.btn-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  display: inline-flex;
  width: 58px;
  height: 58px;
}

.btn-whatsapp img {
  width: 100%;
  height: 100%;
}

/* =========================================================
   ADMIN — Refonte Light SaaS (charte MyDS)
   Bleu #2a76bb · Bleu foncé #003d70 · Rose #e61e89 · Inter
   ========================================================= */

.admin-auth-body,
.admin-body {
  --a-blue: #2a76bb;
  --a-blue-dark: #003d70;
  --a-pink: #e61e89;
  --a-ink: #0f1b2d;
  --a-muted: #64748b;
  --a-soft: #94a3b8;
  --a-surface: #ffffff;
  --a-bg: #eaeff6;
  --a-panel: #f7f9fc;
  --a-line: #e4eaf2;
  --a-line-soft: #eef2f7;
  --a-radius: 18px;
  --a-radius-sm: 13px;
  --a-shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 10px 30px rgba(15, 27, 45, .06);
  --a-shadow-lg: 0 24px 60px rgba(15, 27, 45, .14);
  --a-ring: 0 0 0 4px rgba(42, 118, 187, .18);
  --a-grad: linear-gradient(135deg, var(--a-blue), var(--a-blue-dark));
  --a-grad-pink: linear-gradient(135deg, var(--a-pink), #b3156c);
  --a-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----------------------------- Auth / Login ----------------------------- */

.admin-auth-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(230, 30, 137, .28), transparent 60%),
    radial-gradient(1000px 700px at 10% 110%, rgba(42, 118, 187, .35), transparent 55%),
    linear-gradient(135deg, #042a52, #07111f 70%);
  color: var(--a-ink);
  font-family: var(--a-font);
  -webkit-font-smoothing: antialiased;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(330px, .85fr);
  align-items: stretch;
  justify-content: center;
  width: min(1080px, 100%);
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(20px, 5vw, 56px);
}

.admin-login__panel,
.admin-login__card {
  border: 1px solid rgba(255, 255, 255, .14);
}

.admin-login__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  min-height: 580px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 24px 0 0 24px;
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(7, 22, 41, .35), rgba(7, 22, 41, .78)),
    url("/wp-content/uploads/2022/09/my-driving-school-auto-ecole-servette-02@2x.jpg") center / cover;
  color: #fff;
}

.admin-login__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 61, 112, .82), rgba(230, 30, 137, .30));
  mix-blend-mode: multiply;
}

.admin-login__panel > * {
  position: relative;
  z-index: 1;
}

.admin-login__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-login__brand img {
  width: min(220px, 64%);
  height: auto;
  filter: brightness(0) invert(1);
}

.admin-login__brand span,
.admin-login__status span {
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-login__intro { max-width: 440px; }

.admin-login__eyebrow {
  margin: 0 0 14px;
  color: #ff7ac0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.admin-login__intro h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
}

.admin-login__intro p:not(.admin-login__eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.65;
}

.admin-login__status {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.admin-login__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 580px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 0 24px 24px 0;
  background: #fff;
  box-shadow: var(--a-shadow-lg);
}

.admin-login__card .admin-login__eyebrow { color: var(--a-pink); }

.admin-login__card h2 {
  margin: 6px 0 26px;
  color: var(--a-ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.admin-login__form { display: grid; gap: 7px; }

.admin-login__form label {
  margin-top: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.admin-login__form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 0 16px;
  background: #f8fafc;
  color: var(--a-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.admin-login__form input:focus {
  border-color: var(--a-blue);
  background: #fff;
  outline: none;
  box-shadow: var(--a-ring);
}

.admin-login__form button {
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: var(--a-grad);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(42, 118, 187, .28);
  transition: transform .12s ease, box-shadow .15s ease, background .2s ease;
}

.admin-login__form button:hover,
.admin-login__form button:focus {
  background: var(--a-grad-pink);
  box-shadow: 0 14px 28px rgba(230, 30, 137, .32);
  transform: translateY(-1px);
}

.admin-login__error {
  margin-bottom: 18px;
  border: 1px solid #fbcfe0;
  border-left: 4px solid var(--a-pink);
  border-radius: 12px;
  padding: 13px 16px;
  background: #fff1f7;
  color: #9d174d;
  font-size: 14px;
  font-weight: 600;
}

.admin-login__success {
  margin-bottom: 18px;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 12px;
  padding: 13px 16px;
  background: #f0fdf4;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
}

.admin-login__help {
  margin: 22px 0 0;
  color: var(--a-muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-login__breakable {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-login__site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 22px;
  color: var(--a-blue-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.admin-login__site-link::before { content: "←"; font-weight: 800; }
.admin-login__site-link:hover { color: var(--a-pink); }

/* ------------------------------- Shell ------------------------------- */

.admin-body {
  margin: 0;
  overflow-x: hidden;
  background: var(--a-bg);
  color: var(--a-ink);
  font-family: var(--a-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.admin-shell {
  --admin-ink: var(--a-ink);
  --admin-muted: var(--a-muted);
  --admin-surface: var(--a-surface);
  --admin-panel: var(--a-panel);
  --admin-line: var(--a-line);
  --admin-blue: var(--a-blue);
  --admin-pink: var(--a-pink);
  display: grid;
  grid-template-columns: 266px minmax(0, 1fr);
  min-height: 100vh;
}

/* ------------------------------ Sidebar ------------------------------ */

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 16px;
  background:
    radial-gradient(520px 320px at 100% 100%, rgba(230, 30, 137, .50), transparent 62%),
    radial-gradient(460px 280px at 0% 0%, rgba(120, 190, 255, .45), transparent 60%),
    linear-gradient(180deg, #2f80c9 0%, #2168ad 42%, #0b4f8f 100%);
  color: #fff;
  scrollbar-width: thin;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.admin-sidebar__brand img {
  width: 152px;
  height: auto;
  filter: brightness(0) invert(1);
}

.admin-sidebar__brand span {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-nav { display: grid; gap: 8px; padding: 18px 0 14px; }

.admin-nav__group {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.admin-nav__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  color: rgba(255, 255, 255, .40);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  list-style: none;
  text-transform: uppercase;
}

.admin-nav__group summary { color: rgba(255, 255, 255, .68); }

.admin-nav__group summary::-webkit-details-marker { display: none; }

.admin-nav__group summary:hover {
  color: rgba(255, 255, 255, .72);
}

.admin-nav__chevron {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  transition: transform .15s ease;
}

.admin-nav__group[open] .admin-nav__chevron {
  transform: rotate(180deg);
}

.admin-nav__submenu {
  display: grid;
  gap: 3px;
  padding: 0 5px 6px;
}

.admin-nav a,
.admin-sidebar__footer a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  border-radius: 11px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}

.admin-nav a svg {
  flex: none;
  width: 18px;
  height: 18px;
  opacity: .68;
  transition: opacity .15s ease;
}

.admin-nav__label {
  min-width: 0;
  flex: 1;
}

.admin-nav__tech-badge {
  flex: none;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255, 184, 0, .16);
  color: #ffd76a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.admin-nav a:hover,
.admin-sidebar__footer a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.admin-nav a:hover svg { opacity: 1; }

.admin-nav a.is-active {
  background: linear-gradient(135deg, #e61e89, #ff5fae);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(230, 30, 137, .45);
}

.admin-nav a.is-active svg { opacity: 1; }

.admin-nav a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
}

.admin-sidebar__footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

/* ----------------------------- Workspace ----------------------------- */

.admin-workspace {
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 320px at 100% 0%, rgba(42, 118, 187, .08), transparent 60%),
    var(--a-bg);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 14px clamp(18px, 3vw, 38px);
  border-bottom: 1px solid var(--a-line);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
}

.admin-topbar__title strong {
  display: block;
  color: var(--a-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.admin-topbar__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--a-pink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-topbar__right { display: flex; align-items: center; gap: 12px; }

.admin-topbar__site {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--a-blue-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--a-shadow);
  transition: border-color .15s ease, color .15s ease;
}

.admin-topbar__site svg { width: 16px; height: 16px; }
.admin-topbar__site:hover { border-color: var(--a-blue); color: var(--a-blue); }

.admin-topbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  background: #fff;
  box-shadow: var(--a-shadow);
}

.admin-topbar__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--a-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.admin-topbar__meta { display: flex; flex-direction: column; line-height: 1.2; }

.admin-topbar__meta span {
  overflow: hidden;
  max-width: 200px;
  color: var(--a-ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-topbar__meta strong {
  color: var(--a-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ------------------------------- Main ------------------------------- */

.admin-main {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 38px);
}

.admin-main h1 {
  margin: 0;
  color: var(--a-ink);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.admin-main h2 {
  margin: 0 0 14px;
  color: var(--a-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.admin-main h3 {
  margin: 0 0 10px;
  color: var(--a-ink);
  font-size: 15px;
  font-weight: 700;
}

.admin-main > p,
.admin-card > p,
.admin-main small { color: var(--a-muted); }

.admin-main > p { max-width: 900px; margin: -8px 0 0; line-height: 1.6; }
.admin-muted { color: var(--a-muted); font-size: 13px; }

/* --------------------------- Page header ---------------------------- */

.adm-header,
.admin-page-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  padding: clamp(22px, 3vw, 30px);
  background:
    radial-gradient(620px 240px at 100% 0%, rgba(230, 30, 137, .12), transparent 60%),
    linear-gradient(135deg, rgba(42, 118, 187, .12), rgba(255, 255, 255, 0) 55%),
    #fff;
  box-shadow: var(--a-shadow);
}

.adm-header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--a-blue), var(--a-pink));
}

.adm-header__eyebrow,
.admin-page-header span {
  display: block;
  margin-bottom: 8px;
  color: var(--a-pink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.adm-header__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--a-ink);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.adm-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--a-grad);
  color: #fff;
  box-shadow: 0 8px 18px rgba(42, 118, 187, .28);
}

.adm-header__icon svg { width: 20px; height: 20px; }

.adm-header__lead,
.admin-page-header p {
  max-width: 820px;
  margin: 9px 0 0;
  color: var(--a-muted);
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.adm-header__actions,
.admin-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* ------------------------------ KPI grid ----------------------------- */

.adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.adm-stat {
  --tone: var(--a-blue);
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  min-height: 84px;
  border: 1px solid color-mix(in srgb, var(--tone) 22%, var(--a-line));
  border-radius: var(--a-radius-sm);
  padding: 16px;
  background: color-mix(in srgb, var(--tone) 7%, #fff);
  box-shadow: var(--a-shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.adm-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--tone);
}

.adm-stat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tone) 40%, var(--a-line));
  box-shadow: var(--a-shadow-lg);
}

.adm-stat--blue { --tone: var(--a-blue); }
.adm-stat--pink { --tone: var(--a-pink); }
.adm-stat--green { --tone: #10b981; }
.adm-stat--amber { --tone: #f59e0b; }
.adm-stat--navy { --tone: var(--a-blue-dark); }

.adm-stat__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--tone) 14%, #fff);
  color: var(--tone);
}

.adm-stat__icon svg { width: 20px; height: 20px; }
.adm-stat__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.adm-stat__label {
  color: var(--a-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.adm-stat__value {
  color: var(--a-ink);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.adm-stat__hint { color: var(--a-soft); font-size: 11.5px; font-weight: 600; }

/* ------------------------------- Panel ------------------------------- */

.adm-panel {
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  background: var(--a-surface);
  box-shadow: var(--a-shadow);
}

.adm-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--a-line-soft);
}

.adm-panel__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--a-ink);
  font-size: 16px;
  font-weight: 700;
}

.adm-panel__title svg { width: 18px; height: 18px; color: var(--a-blue); }

.adm-panel__count {
  border-radius: 999px;
  padding: 2px 10px;
  background: color-mix(in srgb, var(--a-blue) 12%, #fff);
  color: var(--a-blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.adm-panel__body { padding: 8px; }
.adm-panel__body--pad { padding: 22px; }
.adm-panel__body > table { border: 0 !important; box-shadow: none !important; border-radius: 12px; }

/* -------------------------- Planning board -------------------------- */

.adm-planning-weekbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.adm-planning-weekbar strong {
  color: var(--a-ink);
  font-size: 14px;
}

.adm-calendar-grid {
  --hour-height: 72px;
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(132px, 1fr));
  overflow-x: auto;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: #fff;
}

.adm-calendar-grid__corner,
.adm-calendar-grid__day-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 58px;
  border-bottom: 1px solid var(--a-line);
  background: #f8fafc;
}

.adm-calendar-grid__corner {
  left: 0;
  z-index: 4;
  border-right: 1px solid var(--a-line);
}

.adm-calendar-grid__day-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border-right: 1px solid var(--a-line-soft);
}

.adm-calendar-grid__day-head span {
  color: var(--a-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.adm-calendar-grid__day-head strong {
  color: var(--a-ink);
  font-size: 16px;
}

.adm-calendar-grid__hours {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(16, var(--hour-height));
  border-right: 1px solid var(--a-line);
  background: #f8fafc;
}

.adm-calendar-grid__hours span {
  display: block;
  padding: 8px 8px 0 0;
  color: var(--a-soft);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.adm-calendar-grid__day {
  position: relative;
  min-width: 132px;
  height: calc(var(--hour-height) * 15);
  border-right: 1px solid var(--a-line-soft);
  background: linear-gradient(180deg, rgba(248,250,252,.55), #fff);
}

.adm-calendar-grid__line {
  display: block;
  height: var(--hour-height);
  border-bottom: 1px solid #edf2f7;
}

.adm-calendar-event {
  position: absolute;
  inset: var(--event-top) 8px auto 8px;
  min-height: var(--event-height);
  max-height: var(--event-height);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  border: 1px solid rgba(42, 118, 187, .28);
  border-left: 4px solid var(--a-blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  padding: 8px 9px;
  color: var(--a-ink);
  text-decoration: none;
}

.adm-calendar-event strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-calendar-event span {
  color: var(--a-muted);
  font-size: 11px;
  font-weight: 700;
}

.adm-calendar-event:hover {
  border-color: rgba(42, 118, 187, .55);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

@media (max-width: 900px) {
  .adm-planning-weekbar {
    align-items: stretch;
    flex-direction: column;
  }

  .adm-calendar-grid {
    grid-template-columns: 56px repeat(7, 154px);
  }

  .adm-related {
    grid-template-columns: 1fr;
  }
}

/* ------------------------- Legacy card/panel ------------------------- */

.admin-card,
.admin-main .card {
  min-width: 0;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  background: var(--a-surface);
  box-shadow: var(--a-shadow);
  padding: 22px;
}

.admin-main .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-main .card {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.admin-main .grid .card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--a-blue), var(--a-pink));
}

.admin-main .grid .card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 118, 187, .35);
  box-shadow: var(--a-shadow-lg);
}

.admin-main .card h2,
.admin-main .card h3 {
  margin: 0 0 12px;
  color: var(--a-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-main .card p {
  margin: 0;
  color: var(--a-ink);
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* ------------------------- Legacy metrics --------------------------- */

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.admin-metrics > div {
  position: relative;
  overflow: hidden;
  min-height: 100px;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f7faff);
}

.admin-metrics > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--a-blue), var(--a-pink));
}

.admin-metrics strong,
.admin-metrics span { display: block; }

.admin-metrics strong {
  margin-bottom: 5px;
  color: var(--a-ink);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.admin-metrics span {
  color: var(--a-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ------------------------------- Tables ------------------------------ */

.admin-main table {
  width: 100%;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  background: var(--a-surface);
  box-shadow: var(--a-shadow);
  border-collapse: separate;
  border-spacing: 0;
}

/* Le scroll horizontal est porté par le conteneur, pas par la table,
   pour que les colonnes occupent toute la largeur. */
.adm-panel__body,
.adm-panel__body--pad,
.adm-table-scroll {
  overflow-x: auto;
}

.admin-main th,
.admin-main td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--a-line-soft);
  color: var(--a-ink);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.5;
}

.admin-main th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fb;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-main tbody tr { transition: background .12s ease; }
.admin-main tbody tr:hover { background: rgba(42, 118, 187, .045); }
.admin-main tbody tr:nth-child(even) { background: rgba(15, 27, 45, .015); }
.admin-main tbody tr:nth-child(even):hover { background: rgba(42, 118, 187, .05); }
.admin-main tr:last-child td { border-bottom: 0; }
.admin-main td small { color: var(--a-soft); font-size: 12px; }

.admin-main td a {
  color: var(--a-blue);
  font-weight: 700;
  text-decoration: none;
}

.admin-main td a:hover {
  color: var(--a-pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.adm-main-cell {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.adm-main-cell strong {
  color: var(--a-ink);
  font-size: 14px;
  line-height: 1.25;
}

.adm-main-cell span {
  color: var(--a-muted);
  font-size: 12.5px;
}

.adm-main-cell__tags,
.adm-actions-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.adm-actions-compact {
  justify-content: flex-end;
}

.adm-priority {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eff6ff;
  color: var(--a-blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.adm-help {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #d8e6f6;
  border-radius: var(--a-radius-sm);
  padding: 13px 15px;
  background: linear-gradient(180deg, #f7fbff, #fff);
  color: var(--a-muted);
  box-shadow: var(--a-shadow);
}

.adm-help__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #e8f1fb;
  color: var(--a-blue);
}

.adm-help__icon svg {
  width: 16px;
  height: 16px;
}

.adm-help p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.adm-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #e8f1fb;
  color: var(--a-blue-dark);
  font-size: 11px;
  font-weight: 800;
  cursor: help;
}

.adm-related {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid #d8e6f6;
  border-radius: var(--a-radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--a-shadow);
}

.adm-related__intro {
  display: grid;
  align-content: center;
  gap: 5px;
}

.adm-related__intro h2 {
  margin: 0;
  color: var(--a-ink);
  font-size: 15px;
}

.adm-related__intro p {
  margin: 0;
  color: var(--a-muted);
  font-size: 13px;
  line-height: 1.5;
}

.adm-related__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.adm-related__links a {
  display: grid;
  gap: 4px;
  min-height: 74px;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  padding: 12px 13px;
  background: #f8fafc;
  color: var(--a-ink);
  text-decoration: none;
}

.adm-related__links a:hover {
  border-color: var(--a-blue);
  background: #eff6ff;
}

.adm-related__links a.is-primary {
  border-color: rgba(42, 118, 187, .35);
  background: #edf6ff;
}

.adm-related__links strong {
  font-size: 13px;
}

.adm-related__links span {
  color: var(--a-muted);
  font-size: 12px;
  line-height: 1.35;
}

/* ------------------------- Inputs & buttons ------------------------- */

.admin-main :where(input, select, textarea) {
  min-height: 44px;
  border: 1px solid #d7e0ec;
  border-radius: 11px;
  padding: 0 13px;
  background: #fff;
  color: var(--a-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-main :where(input, select, textarea):focus {
  border-color: var(--a-blue);
  outline: none;
  box-shadow: var(--a-ring);
}

.admin-main input[type="checkbox"] {
  min-height: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--a-blue);
}

.admin-main textarea { min-height: 110px; padding-block: 11px; line-height: 1.5; }

.adm-quill {
  overflow: hidden;
  border: 1px solid #d8e1ec;
  border-radius: 12px;
  background: #fff;
}

.adm-quill .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid #d8e1ec;
  background: #f8fafc;
}

.adm-quill .ql-container.ql-snow {
  min-height: 320px;
  border: 0;
  font: 15px/1.65 Inter, system-ui, sans-serif;
}

.adm-quill .ql-editor {
  min-height: 320px;
  color: var(--a-ink);
}

.adm-quill .ql-editor h2,
.adm-quill .ql-editor h3 {
  margin: 0 0 12px;
  line-height: 1.25;
}

.adm-content-preview {
  max-width: 820px;
  color: var(--a-ink);
  line-height: 1.7;
}

.adm-content-preview :where(h1, h2, h3) {
  margin: 0 0 14px;
  line-height: 1.25;
}

.adm-content-preview p {
  margin: 0 0 14px;
}

.adm-map-preview {
  overflow: hidden;
  margin: 12px 0 16px;
  border: 1px solid #d8e1ec;
  border-radius: 12px;
}

.adm-map-preview iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.admin-main :where(button, .button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 18px;
  background: var(--a-grad);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(42, 118, 187, .22);
  transition: transform .12s ease, box-shadow .15s ease, background .2s ease;
}

.admin-main :where(button, .button):hover {
  background: var(--a-grad-pink);
  box-shadow: 0 10px 22px rgba(230, 30, 137, .28);
  transform: translateY(-1px);
}

.admin-main :where(button, .button):disabled,
.admin-main :where(button, .button)[aria-disabled="true"] {
  border-color: #d8e1ec;
  background: #eef2f7;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.admin-main :where(input, select, textarea):disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.admin-main .admin-button-secondary,
.admin-main .button.is-ghost {
  border-color: #cdd8e6;
  background: #fff;
  color: var(--a-ink);
  box-shadow: none;
}

.admin-main .admin-button-secondary:hover,
.admin-main .button.is-ghost:hover {
  border-color: var(--a-blue);
  background: #eff6ff;
  color: var(--a-blue);
  box-shadow: none;
}

/* ------------------------------ Badges ------------------------------ */

.admin-status,
.adm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 23px;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-status::before,
.adm-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.adm-badge--green,
.admin-status--sent { background: #e7f8ef; color: #047857; }
.adm-badge--red,
.admin-status--failed { background: #fff0f4; color: #be123c; }
.adm-badge--amber,
.admin-status--pending { background: #fff7e6; color: #b45309; }
.adm-badge--neutral { background: #eef2f7; color: #475569; }
.adm-badge--blue { background: #e8f1fb; color: var(--a-blue-dark); }

/* ------------------------------ Toolbar ----------------------------- */

.adm-toolbar,
.admin-filter-form,
.admin-main form.card {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}

.admin-main form.card { margin-bottom: 0 !important; }

.adm-toolbar {
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  padding: 16px 18px;
  background: var(--a-surface);
  box-shadow: var(--a-shadow);
}

.adm-toolbar label,
.admin-filter-form label,
.admin-main form.card label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.adm-toolbar label.is-inline,
.admin-main form.card label.is-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-actions,
.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-inline-form input,
.admin-inline-form select,
.admin-inline-form button,
.admin-actions button { min-height: 40px; }

.admin-inline-form .button,
.admin-inline-form button {
  padding-inline: 13px;
  font-size: 13px;
}

/* ------------------------------- Alert ------------------------------ */

.adm-alert {
  display: flex;
  gap: 12px;
  border: 1px solid var(--a-line);
  border-left: 4px solid var(--a-blue);
  border-radius: var(--a-radius-sm);
  padding: 16px 18px;
  background: #fff;
  box-shadow: var(--a-shadow);
}

.adm-alert svg { flex: none; width: 20px; height: 20px; color: var(--a-blue); }
.adm-alert strong { display: block; color: var(--a-ink); font-size: 14px; }
.adm-alert p { margin: 4px 0 0; color: var(--a-muted); font-size: 13px; }
.adm-alert--error { border-left-color: var(--a-pink); }
.adm-alert--error svg { color: var(--a-pink); }
.adm-alert--success { border-left-color: #10b981; }
.adm-alert--success svg { color: #10b981; }
.adm-alert--warning { border-left-color: #f59e0b; background: #fffbf2; }
.adm-alert--warning svg { color: #f59e0b; }

.adm-ajax-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 28px));
  border: 1px solid var(--a-line);
  border-left: 4px solid #10b981;
  border-radius: var(--a-radius-sm);
  padding: 13px 15px;
  background: #fff;
  color: var(--a-ink);
  box-shadow: var(--a-shadow-lg);
  font-size: 13px;
  font-weight: 700;
}

.adm-ajax-toast.is-error {
  border-left-color: var(--a-pink);
}

.adm-kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
}

.adm-kv div {
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  padding: 12px 14px;
  background: #fff;
}

.adm-kv dt {
  color: var(--a-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.adm-kv dd {
  margin: 5px 0 0;
  color: var(--a-ink);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.adm-code {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  padding: 14px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.adm-code--small {
  max-height: 160px;
  min-width: 220px;
}

.adm-tech-details {
  border: 1px dashed #cbd5e1;
  border-radius: var(--a-radius-sm);
  background: #f8fafc;
}

.adm-tech-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: var(--a-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.adm-tech-details summary::marker { color: var(--a-soft); }

.adm-tech-details summary svg {
  width: 16px;
  height: 16px;
}

.adm-tech-details__body {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

/* ----------------------------- Empty state -------------------------- */

.adm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 22px;
  text-align: center;
  color: var(--a-muted);
}

.adm-empty svg {
  width: 34px;
  height: 34px;
  color: var(--a-soft);
}

.adm-empty strong { color: var(--a-ink); font-size: 15px; font-weight: 700; }
.adm-empty p { margin: 0; font-size: 13px; max-width: 420px; }

/* ----------------------------- Quick links -------------------------- */

.adm-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.adm-quick a {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  padding: 16px 18px;
  background: #fff;
  color: var(--a-ink);
  text-decoration: none;
  box-shadow: var(--a-shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.adm-quick a:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 118, 187, .35);
  box-shadow: var(--a-shadow-lg);
}

.adm-quick__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--a-grad);
  color: #fff;
}

.adm-quick__icon svg { width: 20px; height: 20px; }
.adm-quick strong { display: block; font-size: 14px; font-weight: 700; }
.adm-quick span { color: var(--a-muted); font-size: 12px; }

/* ---------------------- Home action tiles --------------------------- */

.adm-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.adm-action {
  --tone: var(--a-blue);
  --tone-2: var(--a-blue-dark);
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  min-height: 96px;
  border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--a-line));
  border-radius: var(--a-radius);
  padding: 18px 20px;
  background:
    radial-gradient(360px 180px at 100% 120%, color-mix(in srgb, var(--tone) 14%, transparent), transparent 70%),
    color-mix(in srgb, var(--tone) 6%, #fff);
  color: var(--a-ink);
  text-decoration: none;
  box-shadow: var(--a-shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.adm-action:hover {
  transform: translateY(-3px);
  border-color: var(--tone);
  box-shadow: var(--a-shadow-lg);
}

.adm-action--pink { --tone: var(--a-pink); --tone-2: #b3156c; }
.adm-action--green { --tone: #10b981; --tone-2: #0a7d5a; }
.adm-action--amber { --tone: #f59e0b; --tone-2: #b9740a; }

.adm-action__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tone), var(--tone-2));
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tone) 45%, transparent);
}

.adm-action__icon svg { width: 26px; height: 26px; }

.adm-action__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adm-action__title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.adm-action__sub { color: var(--a-muted); font-size: 13px; font-weight: 500; }

.adm-action__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tone), var(--tone-2));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.adm-action__arrow {
  margin-left: auto;
  color: var(--tone);
  font-size: 20px;
  font-weight: 800;
  opacity: .5;
  transition: transform .15s ease, opacity .15s ease;
}

.adm-action:hover .adm-action__arrow { transform: translateX(3px); opacity: 1; }

.adm-home-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 -6px;
  color: var(--a-ink);
  font-size: 15px;
  font-weight: 800;
}

.adm-home-section-title svg { width: 18px; height: 18px; color: var(--a-pink); }

/* ------------------------ Topbar search ----------------------------- */

.admin-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 360px;
  margin: 0;
}

.admin-search svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--a-soft);
  pointer-events: none;
}

.admin-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  padding: 0 16px 0 40px;
  background: #fff;
  color: var(--a-ink);
  font: inherit;
  font-size: 14px;
  box-shadow: var(--a-shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-search input::placeholder { color: var(--a-soft); }

.admin-search input:focus {
  outline: none;
  border-color: var(--a-pink);
  box-shadow: var(--a-ring);
}

.admin-search__suggestions {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(520px, 70vh);
  overflow: auto;
  border: 1px solid var(--a-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(15, 27, 45, .18);
  padding: 8px;
}

.admin-search__suggestions a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--a-ink);
  text-decoration: none;
}

.admin-search__suggestions a:hover,
.admin-search__suggestions a.is-active {
  background: #f1f7ff;
}

.admin-search__suggestions strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.admin-search__suggestions small {
  overflow: hidden;
  color: var(--a-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search__type {
  width: max-content;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(230, 30, 137, .1);
  color: var(--a-pink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-search__empty {
  padding: 16px;
  color: var(--a-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.admin-nav__group.is-search-hidden { display: none; }
.admin-nav a.is-search-hidden { display: none; }

.admin-nav__empty {
  display: none;
  padding: 14px 12px;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
}

.admin-nav.is-searching .admin-nav__empty.is-visible { display: block; }

/* ------------------------- Breadcrumb ------------------------------- */

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--a-soft);
  font-size: 11.5px;
  font-weight: 700;
}

.admin-breadcrumb a {
  color: var(--a-pink);
  text-decoration: none;
}

.admin-breadcrumb a:hover { text-decoration: underline; }
.admin-breadcrumb span { color: var(--a-muted); }

/* ------------------ Inline relation panels -------------------------- */

.adm-relation {
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  padding: 16px 18px;
  background: color-mix(in srgb, var(--a-pink) 4%, #fff);
}

.adm-relation + .adm-relation { margin-top: 14px; }

.adm-relation__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.adm-relation__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--a-grad-pink);
  color: #fff;
}

.adm-relation__icon svg { width: 18px; height: 18px; }
.adm-relation__head strong { display: block; color: var(--a-ink); font-size: 14px; font-weight: 700; }
.adm-relation__head small { display: block; margin-top: 2px; color: var(--a-muted); font-size: 12.5px; }

.adm-relation__form { display: flex; flex-direction: column; gap: 12px; }

.adm-relation__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adm-relation__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  color: var(--a-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}

.adm-relation__chip input { width: 15px; height: 15px; margin: 0; accent-color: var(--a-pink); }
.adm-relation__chip:hover { border-color: var(--a-pink); }

.adm-relation__chip.is-on {
  border-color: var(--a-pink);
  background: color-mix(in srgb, var(--a-pink) 12%, #fff);
  color: var(--a-blue-dark);
}

.adm-relation__form select { max-width: 420px; }
.adm-relation__actions { display: flex; gap: 10px; }

.adm-relation-row {
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  margin-bottom: 10px;
  background: #fff;
}

.adm-relation-row > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--a-radius-sm);
}

.adm-relation-row > summary::-webkit-details-marker { display: none; }
.adm-relation-row > summary::after { content: "▾"; color: var(--a-soft); transition: transform .15s ease; }
.adm-relation-row[open] > summary::after { transform: rotate(180deg); }
.adm-relation-row > summary:hover { background: color-mix(in srgb, var(--a-blue) 5%, #fff); }
.adm-relation-row > summary strong { color: var(--a-ink); font-size: 14px; }

.adm-relation-row__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 4px 16px 16px;
}

.adm-school-instructor-list {
  display: grid;
  gap: 12px;
}

.adm-school-instructor-row {
  display: grid;
  grid-template-columns: auto 46px minmax(180px, 1fr) minmax(220px, 360px);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--a-border);
  border-radius: 12px;
  background: #fff;
}

.adm-school-instructor-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--a-pink);
}

.adm-school-instructor-row img,
.adm-inline-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f7;
}

.adm-school-instructor-row strong,
.adm-inline-card strong {
  display: block;
  color: var(--a-ink);
}

.adm-school-instructor-row small,
.adm-inline-card small,
.adm-inline-card span {
  display: block;
  color: var(--a-muted);
  font-size: 12.5px;
}

.adm-school-instructor-row input[type="text"] {
  width: 100%;
}

.adm-inline-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.adm-inline-card {
  min-height: 100%;
  padding: 14px;
  border: 1px solid var(--a-border);
  border-radius: 12px;
  background: #fff;
}

/* ------------------------------- Code ------------------------------- */

.admin-main code,
.admin-main pre {
  border-radius: 11px;
  background: #0b1626;
  color: #c7e0ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-main code { padding: 2px 7px; font-size: 12.5px; }

.admin-main pre {
  max-width: 560px;
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.6;
}

/* ------------------------ Pedagogical note -------------------------- */

.adm-note {
  display: flex;
  gap: 14px;
  border: 1px solid #d8e6f6;
  border-radius: var(--a-radius);
  padding: 16px 18px;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(42, 118, 187, .10), transparent 70%),
    linear-gradient(180deg, #f4f9ff, #ffffff);
  box-shadow: var(--a-shadow);
}

.adm-note__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--a-grad);
  color: #fff;
}

.adm-note__icon svg { width: 19px; height: 19px; }
.adm-note__body { min-width: 0; }

.adm-note__title {
  margin: 0 0 4px;
  color: var(--a-ink);
  font-size: 14px;
  font-weight: 700;
}

.adm-note p {
  margin: 0;
  color: var(--a-muted);
  font-size: 13px;
  line-height: 1.55;
}

.adm-note__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.adm-note__steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e6f6;
  border-radius: 999px;
  padding: 6px 13px 6px 6px;
  background: #fff;
  color: var(--a-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.adm-note__steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--a-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* ------------------------------ Charts ------------------------------ */

.adm-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.adm-chart {
  position: relative;
  height: 280px;
  padding: 6px 4px 2px;
}

.adm-chart canvas { max-height: 100%; }

.adm-chart--tall { height: 340px; }

.adm-panel__head .adm-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.adm-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--a-muted);
  font-size: 12px;
  font-weight: 600;
}

.adm-chart-legend span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c, var(--a-blue));
}

/* ----------------------- Lesson analytics -------------------------- */

.adm-toolbar--wrap {
  flex-wrap: wrap;
  align-items: end;
}

.adm-heatmap-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}

.adm-heatmap {
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 5px;
  box-shadow: none !important;
}

.adm-heatmap th,
.adm-heatmap td {
  border: 0 !important;
  padding: 0 !important;
  text-align: center;
  background: transparent !important;
}

.adm-heatmap th {
  color: var(--a-ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.adm-heatmap tbody th {
  width: 112px;
  padding-right: 8px !important;
  text-align: left;
}

.adm-heatmap td span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  border-radius: 8px;
  background: rgba(230, 30, 137, calc(.08 + (var(--heat) * .78)));
  color: var(--a-ink);
  font-size: 13px;
  font-weight: 800;
}

.adm-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 6px;
  border-bottom: 1px solid var(--a-line);
}

.adm-tabs__nav button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  background: transparent;
  color: var(--a-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.adm-tabs__nav button.is-active {
  background: var(--a-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 61, 112, .14);
}

.adm-tab-panel {
  display: none;
}

.adm-tab-panel.is-active {
  display: block;
}

/* ------------------------- Admin access ----------------------------- */

.adm-access {
  min-width: 260px;
}

.adm-access summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--a-blue);
  font-size: 13px;
  font-weight: 800;
}

.adm-access summary span {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(42, 118, 187, .12);
  color: var(--a-navy);
  font-size: 11px;
}

.adm-access__groups {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.adm-access__group {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  background: #f8fbff;
}

.adm-access__group legend {
  padding: 0 4px;
  color: var(--a-ink);
  font-size: 12px;
  font-weight: 800;
}

.adm-access__group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--a-muted);
  font-size: 12px;
  font-weight: 700;
}

.adm-access__group input {
  margin: 0;
}

/* --------------------- Mini bar (in tables) ------------------------- */

.adm-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.adm-bar__track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: #e8eef6;
  overflow: hidden;
}

.adm-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--a-grad);
}

.adm-bar__fill--green { background: linear-gradient(135deg, #34d399, #10b981); }
.adm-bar__fill--amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.adm-bar__fill--pink { background: linear-gradient(135deg, #f472b6, #e61e89); }

.adm-bar__value {
  flex: none;
  min-width: 38px;
  color: var(--a-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

/* --------------------------- Édition / formulaires ------------------ */

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

.adm-field {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.adm-field.is-wide { grid-column: 1 / -1; }
.adm-field input,
.adm-field select,
.adm-field textarea { font-weight: 500; }

.adm-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Éditeur riche Quill aux couleurs MyDS */
.ql-toolbar.ql-snow {
  border-color: var(--a-line);
  border-radius: 12px 12px 0 0;
  background: #f5f8fc;
}

.ql-container.ql-snow {
  border-color: var(--a-line);
  border-radius: 0 0 12px 12px;
  font-family: var(--a-font);
  font-size: 14px;
}

.ql-editor { min-height: 300px; }
.ql-snow .ql-stroke { stroke: #475569; }
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke { stroke: var(--a-blue); }
.ql-snow .ql-toolbar button.ql-active .ql-stroke { stroke: var(--a-blue); }
.ql-snow a { color: var(--a-blue); }

@media (max-width: 640px) {
  .myds-schools-grid {
    grid-template-columns: 1fr;
  }

  .myds-contact-schools {
    padding: 62px 0 70px;
  }

  .myds-contact-schools__grid {
    grid-template-columns: 1fr;
  }

  .myds-contact-school-card__body {
    min-height: auto;
  }

  .myds-school-card__media {
    aspect-ratio: 16 / 10;
  }

  .myds-carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .myds-carousel-arrow--prev {
    left: 10px;
  }

  .myds-carousel-arrow--next {
    right: 10px;
  }

  .adm-form-grid { grid-template-columns: 1fr; }
}

/* --------------------------- Responsive ---------------------------- */

@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-login { grid-template-columns: 1fr; width: 100%; }
  .admin-login__panel {
    border-radius: 24px 24px 0 0;
    border-right: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 0;
    min-height: 300px;
  }
  .admin-login__card { border-radius: 0 0 24px 24px; min-height: auto; }
}

@media (max-width: 640px) {
  .admin-topbar { flex-wrap: wrap; min-height: auto; }
  .admin-topbar__site span { display: none; }
  .admin-search { order: 3; flex-basis: 100%; max-width: none; }
  .adm-header,
  .admin-page-header { flex-direction: column; align-items: flex-start; }
  .adm-header__actions,
  .admin-page-actions { justify-content: flex-start; }
}

.myds-lesson-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.myds-lesson-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.myds-lesson-form select,
.myds-lesson-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--myds-line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.myds-lesson-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 991px) {
  .myds-schools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .myds-contact-schools__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adm-school-instructor-row {
    grid-template-columns: auto 42px minmax(0, 1fr);
  }

  .adm-school-instructor-row input[type="text"] {
    grid-column: 1 / -1;
  }

  .myds-pack-grid,
  .myds-packs-page__grid,
  .myds-school-team__grid,
  .myds-blog-grid {
    grid-template-columns: 1fr;
  }

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

  .myds-reviews-shell {
    grid-template-columns: 1fr;
  }

  .myds-review-summary {
    min-height: auto;
    text-align: center;
  }

  .myds-google-review {
    flex-basis: min(310px, 86vw);
  }

  .myds-newsletter-form {
    flex-direction: column;
  }

  .myds-newsletter-form__fields {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .myds-contact-page__grid,
  .myds-contact-form {
    grid-template-columns: 1fr;
  }

  .myds-contact-form label.is-wide,
  .myds-contact-form button {
    grid-column: auto;
  }

  .top-header__container {
    width: 94%;
    gap: 8px;
  }

  .top-header__contacts {
    gap: 10px;
  }

  .top-header__contacts li:nth-child(2) {
    display: none;
  }

  .top-header__socials {
    display: none;
  }

  .top-header--right {
    flex-shrink: 0;
  }

  .myds-packs-hero {
    min-height: 500px;
  }

  .myds-packs-hero h1 {
    font-size: 3rem;
  }

  .myds-packs-hero p {
    font-size: 1.15rem;
  }

  .entry-content .c-selection__ctas {
    display: block;
  }

  .myds-booking-hero,
  .myds-event-hero {
    min-height: 320px;
  }

  .myds-hero-google {
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 9px;
    min-height: 0;
    margin-top: 30px;
    padding: 8px 11px;
    font-size: .76rem;
    white-space: normal;
  }

  .myds-hero-google__faces {
    width: 118px;
    height: 32px;
  }

  .myds-booking-list {
    padding: 70px 0;
  }

  .myds-event-card-grid,
  .myds-related-grid,
  .myds-event-booking__grid,
  .myds-event-info__grid,
  .myds-event-info__cards,
  .myds-participant-fields {
    grid-template-columns: 1fr;
  }

  .myds-event-month h2 {
    margin-bottom: 32px;
  }

  .myds-event-booking__grid {
    gap: 22px;
  }

  .myds-booking-panel {
    padding: 22px 16px;
  }

  .myds-booking-actions {
    grid-template-columns: 1fr;
  }

  .myds-booking-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .myds-ticket-row {
    grid-template-columns: 44px 1fr;
    padding: 18px;
  }

  .myds-ticket-row input,
  .myds-ticket-row em {
    grid-column: 2;
  }

  .myds-ticket-row input {
    width: 100%;
    max-width: 150px;
  }

  .myds-participant-fields {
    padding: 16px;
  }

  .myds-participant-fields__header {
    display: block;
  }

  .myds-participant-fields__header span {
    margin-top: 4px;
  }

  .myds-event-info__cards .is-wide {
    grid-column: auto;
  }

  .myds-instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .myds-school-gallery {
    grid-template-columns: 1fr;
  }

  .myds-course-hero,
  .myds-course-hero--moto {
    min-height: 440px;
  }

  .myds-course-hero__inner {
    padding: 58px 0 90px;
  }

  .myds-course-hero--moto::after {
    width: 100%;
    bottom: -58px;
  }

  .myds-course-review-pill {
    flex-wrap: wrap;
    justify-content: center;
  }

  .myds-course-overview {
    padding: 46px 0 34px;
  }

  .myds-course-overview .container,
  .myds-course-highlights .container {
    grid-template-columns: 1fr;
  }

  .myds-course-overview img {
    aspect-ratio: 4 / 3;
  }

  .myds-course-inline-cta {
    width: min(100%, 320px);
  }

  .myds-course-highlights {
    padding-bottom: 42px;
  }

  .myds-course-highlights article {
    min-height: 0;
  }

  .myds-course-notice {
    padding-bottom: 38px;
  }

  .myds-course-notice .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .myds-course-sections {
    padding-bottom: 58px;
  }

  .myds-moto-price-grid,
  .myds-moto-info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .myds-moto-price-card {
    min-height: 360px;
  }

  .myds-course-sticky-cta {
    position: static;
    flex-direction: column;
    text-align: center;
    max-width: 100%;
    padding-inline: 18px;
  }

  .myds-course-sticky-cta .btn {
    width: min(100%, 340px);
    min-height: 50px;
    padding-inline: 18px;
    white-space: normal;
  }

  .event-card,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    max-height: none;
  }

  .admin-nav {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .admin-workspace {
    min-width: 0;
  }

  .admin-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar__user {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
}

/* Public QA polish pass */
.site-main :where(a, button, input, select, textarea):focus-visible,
.admin-main :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(42, 118, 187, .38);
  outline-offset: 3px;
}

.c-home-hero,
.c-page-hero,
.myds-booking-hero,
.myds-event-hero,
.myds-course-hero {
  background-color: #123b5d;
  background-repeat: no-repeat;
  overflow: hidden;
}

.c-home-hero .title__page,
.c-page-hero .title__page,
.myds-booking-hero h1,
.myds-event-hero h1,
.myds-course-hero h1 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.c-home-hero__cta,
.myds-course-hero__actions,
.myds-related-nav,
.c-home-services__item-link {
  gap: 12px;
}

.btn,
button,
input,
select,
textarea {
  max-width: 100%;
}

.btn {
  white-space: normal;
  text-align: center;
}

.entry-content img,
.site-main img {
  max-width: 100%;
  height: auto;
}

.c-cours-card,
.c-tarif-card,
.myds-blog-card,
.myds-school-team__card,
.myds-event-card,
.myds-driving-lesson-card,
.myds-related-card,
.myds-contact-school {
  border-radius: 8px;
}

.myds-blog-card,
.myds-school-team__card,
.myds-driving-lesson-card,
.myds-contact-school {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .08);
}

.myds-blog-card h3,
.myds-driving-lesson-card h3,
.myds-contact-school h3,
.c-cours-card__title {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.myds-event-card-grid,
.myds-blog-grid,
.myds-school-team__grid,
.myds-driving-lessons__grid,
.c-tarifs-carousel,
.myds-pack-grid {
  align-items: stretch;
}

.myds-event-card,
.myds-blog-card,
.myds-driving-lesson-card {
  height: 100%;
}

.myds-registration-filter select {
  color: #1f2937;
}

.myds-registration-filter select:focus {
  border-color: var(--myds-blue);
}

.myds-event-month h2,
.title__section {
  text-wrap: balance;
}

.site-main :where(h1, h2, h3, h4, h5, h6, .title__page, .title__section, .title__section--small, .c-course-tab__tab-title, .c-home-services__item-title h4, .c-home-services__item-title h5, .c-cours-card__title) {
  font-family: "Blinker", "Inter", sans-serif;
}

.myds-event-booking__grid,
.myds-event-info__grid,
.myds-course-overview .container,
.myds-course-highlights .container {
  min-width: 0;
}

.myds-booking-panel,
.myds-event-schedule,
.myds-course-sections article,
.myds-event-info__cards div {
  border-radius: 8px;
}

.myds-booking-panel input,
.myds-booking-panel select,
.myds-booking-panel textarea,
.myds-contact-form input,
.myds-contact-form textarea,
.myds-newsletter-form input,
.myds-ebook-form input {
  min-height: 44px;
  border-radius: 6px;
}

.myds-ebook-form__intro {
  margin: 22px 0 16px;
  color: #fff;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.45;
}

.myds-ebook-form {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  margin: 0 auto;
  text-align: left;
}

.myds-ebook-form label {
  display: grid;
  gap: 6px;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.myds-ebook-form input[type="text"],
.myds-ebook-form input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1rem;
}

.myds-ebook-form input[type="text"]:focus,
.myds-ebook-form input[type="email"]:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, .14);
  outline: 3px solid rgba(255, 255, 255, .22);
}

.myds-ebook-form__privacy {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.4;
  text-transform: none !important;
}

.myds-ebook-form__privacy input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--myds-pink);
}

.myds-ebook-form__privacy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.myds-ebook-form__privacy a:hover {
  color: var(--myds-pink);
}

.myds-ebook-form button {
  justify-self: center;
  margin-top: 8px;
  cursor: pointer;
}

.entry-content .c-selection__ctas {
  gap: 18px;
}

.entry-content .c-selection__ctas a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

@media (max-width: 1180px) {
  .myds-event-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .myds-course-overview .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .c-home-hero,
  .c-page-hero,
  .myds-booking-hero,
  .myds-event-hero,
  .myds-course-hero {
    min-height: 330px;
  }

  .c-home-hero__cta,
  .myds-course-hero__actions,
  .myds-related-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .c-home-hero__cta .btn,
  .myds-course-hero__actions .btn,
  .myds-related-nav a {
    width: 100%;
  }

  .myds-event-card-grid,
  .myds-course-highlights .container,
  .myds-moto-price-grid {
    grid-template-columns: 1fr;
  }

  .myds-registration-filter {
    margin-bottom: 48px;
  }

  .myds-registration-filter span {
    position: static;
    display: block;
    transform: none;
    margin-bottom: 8px;
  }

  .myds-registration-filter label::before,
  .myds-registration-filter label::after {
    display: none;
  }

  .myds-registration-filter select {
    padding-left: 14px;
  }

  .myds-course-review-pill {
    flex-wrap: wrap;
    justify-content: center;
  }

  .myds-course-review-pill img {
    width: 120px;
  }

  .myds-course-notice .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-login {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 16px;
  }

  .admin-login__panel,
  .admin-login__card {
    min-height: auto;
  }

  .admin-login__panel {
    gap: 70px;
  }

  .admin-login__brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-login__brand img {
    width: 220px;
    max-width: 100%;
  }

  .admin-login__intro h1 {
    font-size: 36px;
  }

  .admin-filter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-sidebar {
    padding: 18px 14px;
  }

  .admin-sidebar__brand {
    align-items: center;
    flex-direction: row;
    padding-bottom: 14px;
  }

  .admin-sidebar__brand img {
    width: 185px;
  }

  .admin-nav {
    display: grid;
    gap: 8px;
    padding: 14px 0;
  }

  .admin-sidebar__footer::-webkit-scrollbar {
    display: none;
  }

  .admin-nav__group {
    display: block;
  }

  .admin-nav__group summary {
    min-height: 36px;
  }

  .admin-nav a {
    min-height: 36px;
    white-space: nowrap;
  }

  .admin-sidebar__footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .admin-sidebar__footer a {
    flex: 0 0 auto;
    min-height: 34px;
    white-space: nowrap;
  }

  .admin-main {
    padding: 18px 14px;
  }

  .admin-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-actions {
    justify-content: flex-start;
  }

  .admin-main .grid,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-main th,
  .admin-main td {
    padding: 11px 12px;
    font-size: 12px;
  }
}

.myds-driving-lessons {
  padding: 76px 0 90px;
  background: #f6f6f6;
}

.myds-driving-lessons__intro {
  max-width: 820px;
  margin: 0 auto 46px;
}

.myds-driving-lessons__intro p {
  color: #4c5661;
  line-height: 1.7;
}

.myds-driving-lessons__sync {
  margin-top: 12px;
  font-size: 13px;
  color: #7a828a;
}

.myds-lesson-locations {
  margin: 0 auto 34px;
  padding: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 34, 48, .08);
}

.myds-lesson-locations h3,
.myds-lesson-location-heading h3 {
  margin: 0;
  color: var(--myds-blue-dark);
}

.myds-lesson-location-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.myds-lesson-location-tabs button {
  min-height: 76px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
  color: var(--myds-blue-dark);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.myds-lesson-location-tabs button span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: .8rem;
  font-weight: 700;
}

.myds-lesson-location-tabs button.is-active {
  border-color: var(--myds-blue);
  background: var(--myds-blue);
  color: #fff;
}

.myds-lesson-location-tabs button.is-active span {
  color: rgba(255, 255, 255, .82);
}

.myds-lesson-location-panel {
  scroll-margin-top: 110px;
}

.myds-lesson-location-heading {
  margin: 0 0 20px;
}

.myds-lesson-location-heading span {
  display: block;
  color: var(--myds-pink);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.myds-driving-lessons__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.myds-driving-lesson-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(20, 34, 48, .10);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.myds-driving-lesson-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #d8dde3;
}

.myds-driving-lesson-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.myds-driving-lesson-card__kicker {
  color: #e61e89;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  margin: 0;
}

.myds-driving-lesson-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
  color: #1d2630;
}

.myds-driving-lesson-card p {
  margin: 0;
  color: #4d5966;
  line-height: 1.55;
}

.myds-driving-lesson-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.myds-driving-lesson-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8edf2;
}

.myds-driving-lesson-card dt {
  color: #7a828a;
  font-weight: 700;
}

.myds-driving-lesson-card dd {
  margin: 0;
  color: #1d2630;
  text-align: right;
  font-weight: 800;
}

.myds-driving-lesson-card__staff {
  display: grid;
  gap: 4px;
  color: #4d5966;
  font-size: 14px;
}

.myds-driving-lesson-card__staff strong {
  color: #1d2630;
}

.myds-driving-lesson-card .btn {
  margin-top: auto;
  align-self: stretch;
  width: 100%;
}

@media (max-width: 980px) {
  .myds-driving-lessons__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .myds-lesson-location-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .myds-driving-lessons {
    padding: 52px 0 64px;
  }

  .myds-driving-lessons__grid {
    grid-template-columns: 1fr;
  }

  .myds-lesson-location-tabs {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   Driving lessons — redesigned catalog + booking (v2)
   ============================================================ */

/* ----- Hero ----- */
.myds-lessons-hero {
  position: relative;
  background-position: center;
}

.myds-lessons-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 48, .35) 0%, rgba(8, 28, 48, .55) 55%, rgba(8, 28, 48, .78) 100%),
    radial-gradient(120% 90% at 50% 0%, rgba(42, 118, 187, .42) 0%, rgba(42, 118, 187, 0) 60%);
  pointer-events: none;
}

.myds-lessons-hero .c-page-hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 15px;
}

.myds-lessons-hero__sub {
  display: block;
  width: 100%;
  margin: 16px auto 0;
  max-width: 640px;
  color: #fff;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.myds-lessons-hero__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  list-style: none;
  margin: 22px auto 0;
  padding: 0;
}

.myds-lessons-hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.myds-lessons-hero__points li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat,
    linear-gradient(135deg, var(--myds-pink) 0%, #b3156a 100%);
}

/* ----- Section + filters ----- */
.myds-driving-lessons { padding: 48px 0 90px; background: #f5f7fa; }

/* ----- Step progress ----- */
.myds-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 980px;
  margin: 0 auto 26px;
  padding: 0;
  list-style: none;
}

.myds-stepper__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-weight: 800;
  font-size: 14px;
}

.myds-stepper__item::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: #d8e0ea;
  transition: background .2s ease;
}

.myds-stepper__item:last-child::after { display: none; }

.myds-stepper__bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 14px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.myds-stepper__item.is-active { color: var(--myds-dark); }

.myds-stepper__item.is-active .myds-stepper__bullet {
  background: linear-gradient(135deg, var(--myds-blue) 0%, var(--myds-blue-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(42, 118, 187, .35);
}

.myds-stepper__item.is-done { color: var(--myds-blue-dark); }

.myds-stepper__item.is-done .myds-stepper__bullet {
  background: #d6ebff;
  color: var(--myds-blue-dark);
}

.myds-stepper__item.is-done::after { background: var(--myds-blue); }

.myds-stepper__item.is-done .myds-stepper__bullet {
  font-size: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003d70' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E") center / 15px no-repeat,
    #d6ebff;
}

.myds-lessons-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.myds-lessons-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.myds-fchip {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all .15s ease;
}

.myds-fchip:hover { border-color: var(--myds-blue); color: var(--myds-blue); }

.myds-fchip.is-active {
  border-color: var(--myds-blue);
  background: var(--myds-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(42, 118, 187, .28);
}

.myds-lessons-count {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.myds-lessons-empty {
  text-align: center;
  color: #64748b;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
}

/* ----- Catalog grid + cards ----- */
.myds-driving-lessons__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.myds-driving-lesson-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 34, 48, .07);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #eef1f5;
  transition: transform .2s ease, box-shadow .2s ease;
}

.myds-driving-lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(20, 34, 48, .14);
}

.myds-driving-lesson-card__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  text-decoration: none;
  background: linear-gradient(135deg, #eaf2fb 0%, #d7e6f7 100%);
  color: var(--myds-blue);
}

.myds-driving-lesson-card.is-manual .myds-driving-lesson-card__head {
  background: linear-gradient(135deg, #e8f6f0 0%, #cfeede 100%);
  color: #0f9d6b;
}

.myds-driving-lesson-card.is-moto .myds-driving-lesson-card__head {
  background: linear-gradient(135deg, #fdeaf3 0%, #fbd6e7 100%);
  color: var(--myds-pink);
}

.myds-driving-lesson-card__icon svg { width: 58px; height: 58px; }

.myds-driving-lesson-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  color: var(--myds-dark);
  font-weight: 800;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.myds-driving-lesson-card__type {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
}

.myds-driving-lesson-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.myds-driving-lesson-card__body h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}

.myds-driving-lesson-card__body h3 a {
  color: var(--myds-dark);
  text-decoration: none;
}

.myds-driving-lesson-card__body h3 a:hover { color: var(--myds-blue); }

.myds-driving-lesson-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.myds-driving-lesson-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 5px 11px;
  border-radius: 8px;
}

.myds-meta-pin::before,
.myds-meta-clock::before {
  font-size: 13px;
  line-height: 1;
}
.myds-meta-pin::before { content: "\1F4CD"; }
.myds-meta-clock::before { content: "\23F1"; }

.myds-driving-lesson-card__staff {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.myds-driving-lesson-card__cta {
  margin-top: auto;
  align-self: stretch;
  width: 100%;
  border-radius: 10px;
  font-weight: 700;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--myds-blue);
  color: var(--myds-blue);
}
.btn-outline:hover { background: var(--myds-blue); color: #fff; }

/* ----- Guided lesson planner ----- */
.myds-lesson-planner {
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.myds-lesson-picker,
.myds-lesson-availability {
  background: #fff;
  border: 1px solid #e7edf4;
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(20, 34, 48, .08);
}

.myds-lesson-picker {
  position: sticky;
  top: 20px;
  overflow: hidden;
}

.myds-lesson-picker__head {
  padding: 24px 24px 18px;
  border-bottom: 1px solid #edf2f7;
}

.myds-lesson-picker__head p,
.myds-lesson-section-title p,
.myds-lesson-availability__empty p,
.myds-lesson-selected p {
  margin: 0 0 6px;
  color: var(--myds-pink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.myds-lesson-picker__head h2,
.myds-lesson-availability__empty h2,
.myds-lesson-selected h2 {
  margin: 0;
  color: var(--myds-dark);
  font-size: 24px;
  line-height: 1.2;
}

.myds-lesson-picker__head span {
  display: inline-flex;
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.myds-lesson-picker__list {
  display: grid;
  gap: 0;
  max-height: 720px;
  overflow: auto;
}

.myds-lesson-choice {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px 24px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}

.myds-lesson-choice:hover,
.myds-lesson-choice.is-active {
  background: #f4f9ff;
}

.myds-lesson-choice.is-active {
  box-shadow: inset 5px 0 0 var(--myds-blue);
}

.myds-lesson-choice__type {
  color: var(--myds-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.myds-lesson-choice strong {
  color: var(--myds-dark);
  font-size: 16px;
  line-height: 1.28;
}

.myds-lesson-choice span:last-child {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.myds-lesson-availability {
  min-height: 520px;
}

.myds-lesson-availability__empty {
  padding: 56px 42px;
}

.myds-lesson-availability__empty span,
.myds-lesson-muted {
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}

.myds-lesson-availability__content {
  padding: 28px;
}

.myds-lesson-selected {
  padding-bottom: 22px;
  border-bottom: 1px solid #edf2f7;
}

.myds-lesson-selected__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.myds-lesson-selected__meta span {
  display: inline-flex;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.myds-lesson-next,
.myds-lesson-instructor-block {
  margin-top: 28px;
}

.myds-lesson-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.myds-lesson-section-title h3 {
  margin: 0;
  color: var(--myds-dark);
  font-size: 20px;
}

.myds-lesson-slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.myds-lesson-slot,
.myds-lesson-instructor {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: var(--myds-dark);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.myds-lesson-slot {
  justify-content: space-between;
  padding: 15px 16px;
}

.myds-lesson-slot:hover,
.myds-lesson-instructor:hover {
  border-color: var(--myds-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(42, 118, 187, .12);
}

.myds-lesson-slot strong {
  font-size: 15px;
}

.myds-lesson-slot span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.myds-lesson-instructors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.myds-lesson-instructor {
  padding: 14px;
}

.myds-lesson-instructor__avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--myds-blue) 0%, var(--myds-blue-dark) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.myds-lesson-instructor strong,
.myds-lesson-instructor small {
  display: block;
}

.myds-lesson-instructor strong {
  color: var(--myds-dark);
  font-size: 15px;
}

.myds-lesson-instructor small {
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.myds-lesson-no-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  background: #f8fafc;
  padding: 18px;
}

.myds-lesson-no-slot p {
  flex: 1 1 100%;
  margin: 0;
  color: #64748b;
}

/* ----- Strict lesson flow: vehicle -> instructor -> slot ----- */
.myds-lesson-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.myds-lesson-flow__step {
  position: relative;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #e7edf4;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 16px 42px rgba(20, 34, 48, .08);
  overflow: hidden;
}

.myds-lesson-flow__step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--myds-blue) 0%, var(--myds-pink) 100%);
}

.myds-lesson-flow__step[hidden] {
  display: none;
}

.myds-lesson-flow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.myds-lesson-flow__heading { min-width: 0; }

.myds-lesson-flow__head p {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #fde7f2;
  color: var(--myds-pink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.myds-lesson-flow__head h2 {
  margin: 0;
  color: var(--myds-dark);
  font-size: 28px;
  line-height: 1.18;
}

.myds-flow-reset {
  border: 1px solid #d9e4ef;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--myds-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 14px;
  cursor: pointer;
}

.myds-flow-reset:hover {
  border-color: var(--myds-blue);
  background: #eef6ff;
}

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

.myds-vehicle-choice,
.myds-monitor-option {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: var(--myds-dark);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.myds-vehicle-choice {
  position: relative;
  min-height: 184px;
  border-radius: 18px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.myds-vehicle-choice:hover,
.myds-vehicle-choice:focus-visible,
.myds-monitor-option:hover,
.myds-monitor-option:focus-visible,
.myds-monitor-option.is-active {
  border-color: var(--myds-blue);
  background: #f4f9ff;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(42, 118, 187, .16);
  outline: none;
}

.myds-vehicle-choice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf3fc 0%, #d6e9fb 100%);
  color: var(--myds-blue-dark);
  box-shadow: inset 0 0 0 1px rgba(42, 118, 187, .14);
  transition: background .16s ease, color .16s ease;
}

.myds-vehicle-choice__icon svg { width: 28px; height: 28px; }

.myds-vehicle-choice:hover .myds-vehicle-choice__icon,
.myds-vehicle-choice:focus-visible .myds-vehicle-choice__icon {
  background: linear-gradient(135deg, var(--myds-blue) 0%, var(--myds-blue-dark) 100%);
  color: #fff;
}

.myds-vehicle-choice__body { display: block; }

.myds-vehicle-choice__body strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.14;
}

.myds-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.myds-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 11px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.myds-chip--accent {
  background: #fde7f2;
  color: #b3156a;
}

.myds-vehicle-choice__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px dashed #e4eaf1;
}

.myds-vehicle-choice__price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--myds-dark);
  font-size: 20px;
  font-weight: 800;
}

.myds-vehicle-choice__price small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.myds-vehicle-choice__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--myds-blue);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.myds-vehicle-choice:hover .myds-vehicle-choice__go,
.myds-vehicle-choice:focus-visible .myds-vehicle-choice__go {
  background: var(--myds-blue);
  color: #fff;
  transform: translateX(2px);
}

.myds-selected-type {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #f1f5f9;
  padding: 12px 14px;
}

.myds-selected-type strong {
  color: var(--myds-dark);
  font-size: 15px;
}

.myds-selected-type span {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.myds-monitor-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.myds-monitor-option {
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 16px;
  padding: 16px;
}

.myds-monitor-option__avatar {
  flex: none;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--myds-blue) 0%, var(--myds-blue-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.myds-monitor-option--any .myds-monitor-option__avatar,
.myds-monitor-option__avatar--any {
  background: linear-gradient(135deg, var(--myds-pink) 0%, #b3156a 100%);
}

.myds-monitor-option__avatar--photo {
  background: #e2e8f0;
  overflow: hidden;
}

.myds-monitor-option__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.myds-monitor-option.is-active .myds-monitor-option__avatar--photo {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--myds-blue);
}

.myds-monitor-option > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }

.myds-monitor-option__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  margin-left: auto;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--myds-blue);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.myds-monitor-option:hover .myds-monitor-option__go,
.myds-monitor-option:focus-visible .myds-monitor-option__go {
  background: var(--myds-blue);
  color: #fff;
  transform: translateX(2px);
}

.myds-monitor-option strong,
.myds-monitor-option small {
  display: block;
}

.myds-monitor-option strong {
  font-size: 16px;
  line-height: 1.2;
}

.myds-monitor-option small {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.myds-lesson-flow .myds-lesson-slot-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.myds-lesson-flow .myds-lesson-slot {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.myds-lesson-slot:focus-visible,
.myds-flow-reset:focus-visible {
  outline: 2px solid var(--myds-blue);
  outline-offset: 2px;
}

.myds-lesson-slot__date {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  flex: none;
  width: 52px;
  padding: 7px 4px;
  border-radius: 12px;
  background: linear-gradient(160deg, #eaf3fc 0%, #d9eafa 100%);
  color: var(--myds-blue-dark);
  line-height: 1.1;
  transition: background .16s ease, color .16s ease;
}

.myds-lesson-slot:hover .myds-lesson-slot__date {
  background: linear-gradient(160deg, var(--myds-blue) 0%, var(--myds-blue-dark) 100%);
  color: #fff;
}

.myds-lesson-slot__weekday {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  opacity: .85;
}

.myds-lesson-slot__day {
  font-size: 22px;
  font-weight: 800;
}

.myds-lesson-slot__month {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  opacity: .85;
}

.myds-lesson-slot__body {
  flex: 1 1 auto;
  min-width: 0;
}

.myds-lesson-flow .myds-lesson-slot__body strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 18px;
}

.myds-lesson-slot__price {
  color: var(--myds-pink);
  font-size: 13px;
  font-weight: 800;
}

.myds-lesson-flow .myds-lesson-slot__instructor {
  display: block;
  margin-top: 2px;
  color: var(--myds-blue);
  font-size: 13px;
  font-weight: 700;
}

.myds-lesson-flow .myds-lesson-slot small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.myds-lesson-slot__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  align-self: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: #eef6ff;
  color: var(--myds-blue);
  font-size: 13px;
  font-weight: 800;
  transition: background .16s ease, color .16s ease;
}

.myds-lesson-slot:hover .myds-lesson-slot__cta {
  background: var(--myds-blue);
  color: #fff;
}

/* ----- Selected-type chip with avatar ----- */
.myds-selected-type__avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.myds-selected-type__text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

/* ----- Scheduler: calendar + time grid ----- */
.myds-scheduler {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.myds-calendar {
  border: 1px solid #e7edf4;
  border-radius: 16px;
  padding: 16px 16px 12px;
  background: #fff;
}

.myds-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.myds-calendar__month {
  font-size: 16px;
  color: var(--myds-dark);
  text-transform: capitalize;
}

.myds-calendar__nav { display: inline-flex; gap: 6px; }

.myds-calendar__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  color: var(--myds-blue-dark);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.myds-calendar__arrow:hover:not([disabled]) {
  border-color: var(--myds-blue);
  background: #eef6ff;
}

.myds-calendar__arrow[disabled] { opacity: .35; cursor: not-allowed; }

.myds-calendar__weekdays,
.myds-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.myds-calendar__wd {
  text-align: center;
  padding: 4px 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.myds-calendar__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--myds-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

button.myds-calendar__day {
  cursor: pointer;
  background: #eef6ff;
  color: var(--myds-blue-dark);
  font-weight: 800;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}

button.myds-calendar__day:hover {
  background: #d6ebff;
  transform: translateY(-1px);
}

.myds-calendar__day.is-disabled {
  color: #cbd5e1;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.myds-calendar__day.is-empty { background: transparent; }

.myds-calendar__day.is-today {
  box-shadow: inset 0 0 0 1.5px #b9d6f2;
}

button.myds-calendar__day.is-selected {
  background: linear-gradient(135deg, var(--myds-blue) 0%, var(--myds-blue-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(42, 118, 187, .35);
}

.myds-calendar__tz {
  margin: 12px 0 2px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.myds-timeslots__head {
  margin: 2px 0 14px;
  color: var(--myds-dark);
  font-size: 17px;
  font-weight: 800;
  text-transform: capitalize;
}

.myds-timeslots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.myds-timeslot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: var(--myds-dark);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .15s ease, color .15s ease;
}

.myds-timeslot.is-active {
  border-color: var(--myds-blue);
  background: var(--myds-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(42, 118, 187, .28);
}

.myds-timeslot.is-active .myds-timeslot__sub { color: rgba(255, 255, 255, .85); }

.myds-timeslot:hover,
.myds-timeslot:focus-visible {
  border-color: var(--myds-blue);
  background: var(--myds-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(42, 118, 187, .22);
  outline: none;
}

.myds-timeslot__time { font-size: 16px; font-weight: 800; }

.myds-timeslot__sub {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.25;
}

.myds-timeslot:hover .myds-timeslot__sub,
.myds-timeslot:focus-visible .myds-timeslot__sub { color: rgba(255, 255, 255, .85); }

/* ============================================================
   Booking page
   ============================================================ */
.myds-lesson-booking-hero {
  position: relative;
  min-height: 390px;
  background-position: center;
}

.myds-lesson-booking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 48, .3) 0%, rgba(8, 28, 48, .58) 58%, rgba(8, 28, 48, .82) 100%),
    radial-gradient(120% 90% at 50% 0%, rgba(42, 118, 187, .38) 0%, rgba(42, 118, 187, 0) 62%);
  pointer-events: none;
}

.myds-lesson-booking-hero .c-page-hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px 15px;
  text-align: center;
}

.myds-lesson-booking-hero__kicker {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.myds-lesson-booking-hero__service {
  max-width: 760px;
  margin: 16px auto 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .52);
}

.myds-lesson-booking-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.myds-lesson-booking-hero__pills li {
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--myds-blue-dark);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

.myds-booking { padding: 36px 0 96px; background: #f5f7fa; }

.myds-booking__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--myds-blue-dark);
  text-decoration: none;
}
.myds-booking__back:hover { color: var(--myds-pink); }

.myds-booking__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  align-items: start;
}

.myds-booking__main {
  background: #fff;
  border-radius: 18px;
  padding: 34px 36px 40px;
  box-shadow: 0 16px 44px rgba(20, 34, 48, .08);
  border: 1px solid #eef1f5;
}

.myds-booking__head { padding-bottom: 8px; border-bottom: 1px solid #eef1f5; }

.myds-booking__kicker {
  margin: 0 0 6px;
  color: var(--myds-pink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}

.myds-booking__title {
  font-size: 27px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--myds-dark);
}

.myds-booking__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 4px;
  padding: 0;
}

.myds-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 7px 13px;
  border-radius: 999px;
}
.myds-pill--price { background: #fdeaf3; color: var(--myds-pink); }
.myds-pill--pin::before { content: "\1F4CD"; }
.myds-pill--clock::before { content: "\23F1"; }

.myds-booking__step { margin-top: 34px; }

.myds-booking__step > h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  margin: 0 0 18px;
  color: var(--myds-dark);
}

.myds-booking__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--myds-blue) 0%, var(--myds-blue-dark) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

/* instructor cards */
.myds-booking__instructors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.myds-inst {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: all .15s ease;
}
.myds-inst:hover { border-color: var(--myds-blue); }
.myds-inst.is-active {
  border-color: var(--myds-blue);
  background: #f3f8fd;
  box-shadow: 0 6px 18px rgba(42, 118, 187, .16);
}

.myds-inst__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--myds-blue) 0%, var(--myds-blue-dark) 100%);
}
.myds-inst--any .myds-inst__avatar { background: linear-gradient(135deg, var(--myds-pink) 0%, #b3156a 100%); }

.myds-inst__avatar--photo { background: #e2e8f0; overflow: hidden; }
.myds-inst__avatar--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.myds-inst.is-active .myds-inst__avatar--photo { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--myds-blue); }

.myds-inst__name { font-weight: 600; font-size: 14px; color: var(--myds-dark); line-height: 1.25; }
.myds-inst__sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: #64748b; }

.myds-booking__hint {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed #d9e2ec;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

/* date strip */
.myds-booking__dates {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}

.myds-date {
  flex: 0 0 auto;
  width: 64px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 0;
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition: all .15s ease;
}
.myds-date:hover { border-color: var(--myds-blue); }
.myds-date.is-active {
  border-color: var(--myds-blue);
  background: linear-gradient(135deg, var(--myds-blue) 0%, var(--myds-blue-dark) 100%);
  color: #fff;
}
.myds-date__wd { display: block; font-size: 12px; font-weight: 700; text-transform: capitalize; opacity: .8; }
.myds-date__dn { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.myds-date__mo { display: block; font-size: 11px; text-transform: capitalize; opacity: .8; }

/* time grid */
.myds-booking__times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.myds-time {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 11px 6px;
  font: inherit;
  font-weight: 700;
  color: var(--myds-dark);
  cursor: pointer;
  transition: all .15s ease;
}
.myds-time:hover { border-color: var(--myds-blue); color: var(--myds-blue); }
.myds-time.is-active {
  border-color: var(--myds-blue);
  background: var(--myds-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(42, 118, 187, .26);
}

.myds-booking__empty {
  color: #64748b;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 18px;
  margin: 0;
}

/* fields */
.myds-booking__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.myds-field { display: grid; gap: 6px; }
.myds-field--full { grid-column: 1 / -1; }
.myds-field > span { font-weight: 700; font-size: 14px; color: var(--myds-dark); }
.myds-field em { color: var(--myds-pink); font-style: normal; }

.myds-field input,
.myds-field select,
.myds-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  background: #fff;
}
.myds-field input:focus,
.myds-field select:focus,
.myds-field textarea:focus {
  outline: none;
  border-color: var(--myds-blue);
  box-shadow: 0 0 0 3px rgba(42, 118, 187, .15);
}
.myds-field textarea { min-height: 88px; resize: vertical; }
.myds-field__phone { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }

.myds-booking__terms {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 24px;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}
.myds-booking__terms input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

.myds-booking__error { margin: 16px 0 0; color: #c0263c; font-weight: 600; }

.myds-booking__submit {
  margin-top: 22px;
  width: 100%;
  font-size: 17px;
  font-weight: 800;
  padding: 15px 18px;
  border-radius: 12px;
}

.myds-booking__policy { margin: 18px 0 0; font-size: 13px; color: #7a828a; line-height: 1.6; }

/* summary */
.myds-booking__summary { position: sticky; top: 100px; }

.myds-booking__summary-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 16px 44px rgba(20, 34, 48, .08);
  border: 1px solid #eef1f5;
}

.myds-booking__summary-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
}

.myds-summary__service { font-weight: 800; font-size: 17px; color: var(--myds-dark); margin: 0 0 16px; line-height: 1.35; }

.myds-booking__summary-card dl {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid #eef1f5;
}
.myds-booking__summary-card dl div { display: flex; justify-content: space-between; gap: 14px; }
.myds-booking__summary-card dt { color: #94a3b8; font-weight: 600; font-size: 14px; }
.myds-booking__summary-card dd { margin: 0; text-align: right; font-weight: 700; color: var(--myds-dark); font-size: 14px; }

.myds-booking__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
}
.myds-booking__total span { color: #475569; font-weight: 700; }
.myds-booking__total strong { font-size: 26px; color: var(--myds-pink); }

.myds-booking__secure {
  margin: 14px 0 0;
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.myds-booking__secure::before { content: "\1F512"; }

.admin-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
}

.admin-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: #253248;
}

.admin-checkbox-row--columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.adm-simple-flow {
  display: grid;
  gap: 18px;
}

.adm-flow-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid #e6ecf4;
  border-radius: 14px;
  background: #fff;
}

.adm-flow-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e9f3ff;
  color: #0f69b4;
  font-weight: 900;
}

.adm-flow-step h3 {
  margin: 3px 0 14px;
  font-size: 18px;
  color: #142133;
}

.adm-advanced {
  margin-top: 8px;
  border: 1px solid #e6ecf4;
  border-radius: 12px;
  background: #f8fbff;
}

.adm-advanced summary {
  cursor: pointer;
  padding: 13px 15px;
  font-weight: 800;
  color: #1d4f86;
}

.adm-advanced .adm-form-grid {
  padding: 0 15px 15px;
}

.adm-choice-grid .adm-related__links {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.adm-choice-grid .adm-related__links a {
  min-height: 116px;
  justify-content: center;
  border-radius: 16px;
  padding: 22px;
}

.adm-choice-grid .adm-related__links strong {
  font-size: 19px;
}

.adm-choice-grid .adm-related__links span {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.adm-choice-grid--large .adm-related__links a {
  min-height: 145px;
}

.adm-model-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef7ff;
  color: #174166;
}

.adm-model-summary strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.adm-model-summary span {
  font-weight: 800;
}

.adm-preview-box {
  margin: 0 0 14px;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: #f4f9ff;
}

.adm-preview-box strong {
  display: block;
  color: #14345c;
  font-size: 16px;
}

.adm-preview-box p {
  margin: 6px 0 0;
  color: #526274;
}

.adm-preview-box ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.adm-preview-box li {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  color: #243044;
  font-weight: 700;
}

.adm-preview-box small {
  display: inline-block;
  margin-top: 10px;
  color: #64748b;
  font-weight: 700;
}

.adm-next-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.adm-next-actions a {
  display: grid;
  gap: 7px;
  min-height: 136px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #e3e9f2;
  background: #fff;
  text-decoration: none;
  color: #162033;
  box-shadow: 0 14px 34px rgba(15, 27, 45, .06);
}

.adm-next-actions a:hover {
  border-color: #b9d7f6;
  transform: translateY(-1px);
}

.adm-next-actions strong {
  font-size: 34px;
  line-height: 1;
  color: #0f69b4;
}

.adm-next-actions span {
  font-size: 17px;
  font-weight: 900;
}

.adm-next-actions small {
  color: #657386;
  line-height: 1.4;
}

.adm-search-page__form,
.adm-client-search__form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.adm-client-search__form {
  grid-template-columns: minmax(240px, 1.2fr) minmax(260px, .8fr) auto;
}

.adm-search-page__form label,
.adm-client-search__form label,
.adm-client-search__filters label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #263348;
}

.adm-search-page__form input,
.adm-client-search__form input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid #d8e1ec;
  padding: 0 15px;
  font: inherit;
}

.adm-client-search__filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.adm-search-page__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.adm-search-page__chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: #eef5ff;
  color: #0f69b4;
  text-decoration: none;
  font-weight: 800;
}

.adm-result-list {
  display: grid;
}

.adm-result-list a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  color: #182234;
  text-decoration: none;
  border-bottom: 1px solid #edf1f6;
}

.adm-result-list a:hover {
  background: #f7fbff;
}

.adm-result-list svg {
  color: #0f69b4;
}

.adm-result-list span {
  display: grid;
  gap: 4px;
}

.adm-result-list small {
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .adm-search-page__form,
  .adm-client-search__form,
  .adm-client-search__filters {
    grid-template-columns: 1fr;
  }

  .adm-flow-step {
    grid-template-columns: 1fr;
  }
}

/* responsive */
@media (max-width: 992px) {
  .myds-driving-lessons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .myds-lesson-planner { grid-template-columns: 1fr; }
  .myds-lesson-picker { position: static; }
  .myds-lesson-picker__list { max-height: none; }
  .myds-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .myds-lesson-flow .myds-lesson-slot-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .myds-scheduler { grid-template-columns: 1fr; }
  .myds-calendar { max-width: 100%; margin: 0; width: 100%; padding: 14px 12px 10px; }
  .myds-timeslots__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .myds-calendar__day { min-height: 40px; }
  .myds-lesson-booking-hero { min-height: 340px; }
  .myds-lesson-booking-hero .c-page-hero__container { padding: 42px 18px; }
  .myds-lesson-booking-hero__service { font-size: 15px; }
}
@media (max-width: 900px) {
  .myds-booking__layout { grid-template-columns: 1fr; }
  .myds-booking__summary { position: static; order: -1; }
  .myds-booking__main { padding: 26px 20px 32px; }
}
@media (max-width: 640px) {
  .myds-driving-lessons__grid { grid-template-columns: 1fr; }
  .myds-lesson-availability__content,
  .myds-lesson-availability__empty { padding: 24px 18px; }
  .myds-lesson-picker__head,
  .myds-lesson-choice { padding-left: 18px; padding-right: 18px; }
  .myds-lesson-slot-list,
  .myds-lesson-instructors { grid-template-columns: 1fr; }
  .myds-lesson-slot { align-items: flex-start; flex-direction: column; }
  .myds-lesson-slot span { text-align: left; }
  .myds-vehicle-grid { grid-template-columns: 1fr; }
  .myds-lesson-flow__step { padding: 20px 16px; }
  .myds-lesson-flow__head { align-items: flex-start; flex-direction: column; }
  .myds-lesson-flow__head h2 { font-size: 23px; }
  .myds-monitor-choice { grid-template-columns: 1fr; }
  .myds-vehicle-choice { min-height: 0; }
  .myds-vehicle-choice__body strong { font-size: 21px; }
  /* keep flow slots as a compact row with the date badge */
  .myds-lesson-flow .myds-lesson-slot { flex-direction: row; align-items: center; }
  .myds-stepper__label { display: none; }
  .myds-stepper { gap: 6px; }
  .myds-stepper__item::after { width: 20px; }
}
@media (max-width: 560px) {
  .myds-booking__fields { grid-template-columns: 1fr; }
}
