/* Gabarit commun des pages secondaires AJCM */
body.page {
    --ajcm-page-blue: #009fe3;
    --ajcm-page-blue-dark: #007cad;
    --ajcm-page-ink: #17212b;
    --ajcm-page-copy: #334a56;
    --ajcm-page-soft: #f3fbfe;
    --ajcm-page-border: #d5eaf3;
}

body.page .inner-header-description h1.hero-title {
    max-width: 980px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    font-size: clamp(32px, 5vw, 54px) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
}

body.page .page-sidebar-column {
    display: none !important;
}

body.page #page-content > .gridContainer {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1180px !important;
    padding: 0 16px !important;
}

body.page #page-content > .gridContainer > .row {
    justify-content: center !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.page #page-content > .gridContainer > .row > [class*="col-"]:not(.page-sidebar-column),
body.page #page-content > .gridContainer > [id^="post-"] {
    box-sizing: border-box !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.page .ajcm-generic-page {
    box-sizing: border-box !important;
    color: var(--ajcm-page-copy) !important;
    background: #fff !important;
    border: 1px solid var(--ajcm-page-border) !important;
    border-left: 6px solid var(--ajcm-page-blue) !important;
    border-radius: 16px !important;
    width: min(100% - 32px, 900px) !important;
    max-width: 900px !important;
    margin: 28px auto 34px !important;
    padding: 30px 34px !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
    box-shadow: 0 8px 24px rgba(23, 65, 84, 0.11) !important;
}

body.page .ajcm-generic-page::before,
body.page .ajcm-generic-page::after {
    content: none !important;
    display: none !important;
}

body.page .ajcm-generic-eyebrow {
    color: var(--ajcm-page-blue-dark) !important;
    margin: 0 0 10px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 0.11em !important;
}

body.page .ajcm-generic-page h2 {
    color: var(--ajcm-page-blue-dark) !important;
    border-top: 1px solid var(--ajcm-page-border) !important;
    letter-spacing: -0.025em !important;
    margin: 30px 0 13px !important;
    padding-top: 24px !important;
    font-size: clamp(25px, 3.2vw, 34px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

body.page .ajcm-generic-page h2:first-of-type {
    border-top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page .ajcm-generic-page h3 {
    color: var(--ajcm-page-ink) !important;
    margin: 25px 0 9px !important;
    font-size: clamp(20px, 2.5vw, 25px) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

body.page .ajcm-generic-page h4,
body.page .ajcm-generic-page h5,
body.page .ajcm-generic-page h6 {
    color: var(--ajcm-page-ink) !important;
    margin: 20px 0 8px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

body.page .ajcm-generic-page p,
body.page .ajcm-generic-page li,
body.page .ajcm-generic-page address,
body.page .ajcm-generic-page td,
body.page .ajcm-generic-page th {
    color: var(--ajcm-page-copy) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

body.page .ajcm-generic-page p {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

body.page .ajcm-generic-page strong {
    color: var(--ajcm-page-ink) !important;
    font-weight: 800 !important;
}

body.page .ajcm-generic-page a:not(.button):not(.btn):not(.wp-block-button__link):not([class*="button"]) {
    color: var(--ajcm-page-blue-dark) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

body.page .ajcm-generic-page :is(.button, .btn, .wp-block-button__link, a[class*="button"], button, input[type="submit"]) {
    box-sizing: border-box !important;
    color: #fff !important;
    background: var(--ajcm-page-blue) !important;
    border: 2px solid var(--ajcm-page-blue) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 9px 20px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(0, 159, 227, 0.2) !important;
}

body.page .ajcm-generic-page :is(.button, .btn, .wp-block-button__link, a[class*="button"], button, input[type="submit"]):hover,
body.page .ajcm-generic-page :is(.button, .btn, .wp-block-button__link, a[class*="button"], button, input[type="submit"]):focus-visible {
    color: #fff !important;
    background: var(--ajcm-page-blue-dark) !important;
    border-color: var(--ajcm-page-blue-dark) !important;
}

body.page .ajcm-generic-page ul,
body.page .ajcm-generic-page ol {
    margin: 0 0 20px !important;
    padding-left: 25px !important;
}

body.page .ajcm-generic-page li {
    margin-bottom: 7px !important;
}

body.page .ajcm-generic-page hr {
    background: var(--ajcm-page-border) !important;
    border: 0 !important;
    width: 100% !important;
    height: 1px !important;
    margin: 27px 0 !important;
}

body.page .ajcm-generic-page blockquote {
    color: var(--ajcm-page-copy) !important;
    background: var(--ajcm-page-soft) !important;
    border: 1px solid #cce8f4 !important;
    border-left: 5px solid var(--ajcm-page-blue) !important;
    border-radius: 11px !important;
    margin: 22px 0 !important;
    padding: 17px 19px !important;
}

body.page .ajcm-generic-page img {
    box-sizing: border-box !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
}

body.page .ajcm-generic-page .aligncenter,
body.page .ajcm-generic-page .wp-caption.aligncenter {
    display: block !important;
    margin: 20px auto !important;
}

body.page .ajcm-generic-page .alignleft {
    margin: 6px 20px 14px 0 !important;
}

body.page .ajcm-generic-page .alignright {
    margin: 6px 0 14px 20px !important;
}

body.page .ajcm-generic-page figure,
body.page .ajcm-generic-page .wp-caption {
    max-width: 100% !important;
}

body.page .ajcm-generic-page figcaption,
body.page .ajcm-generic-page .wp-caption-text {
    color: #58707c !important;
    margin-top: 7px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

body.page .ajcm-generic-page table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 22px 0 !important;
}

body.page .ajcm-generic-page th,
body.page .ajcm-generic-page td {
    border: 1px solid var(--ajcm-page-border) !important;
    padding: 10px 12px !important;
    text-align: left !important;
    vertical-align: top !important;
}

body.page .ajcm-generic-page th {
    color: var(--ajcm-page-ink) !important;
    background: var(--ajcm-page-soft) !important;
    font-weight: 800 !important;
}

body.page .ajcm-generic-page iframe,
body.page .ajcm-generic-page video {
    max-width: 100% !important;
    border-radius: 10px !important;
}

body.page .ajcm-generic-page input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.page .ajcm-generic-page select,
body.page .ajcm-generic-page textarea {
    box-sizing: border-box !important;
    color: var(--ajcm-page-ink) !important;
    background: #fff !important;
    border: 1px solid #a9cddd !important;
    border-radius: 9px !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding: 9px 12px !important;
}

body.page .ajcm-generic-page :is(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid rgba(0, 159, 227, 0.38) !important;
    outline-offset: 3px !important;
}

body.page .sharedaddy {
    display: none !important;
}

@media (max-width: 767px) {
    body.page .inner-header-description h1.hero-title {
        font-size: 31px !important;
        line-height: 1.15 !important;
    }

    body.page .ajcm-generic-page {
        width: calc(100% - 20px) !important;
        margin: 18px auto 25px !important;
        padding: 23px 20px !important;
        border-left-width: 4px !important;
        border-radius: 13px !important;
    }

    body.page .ajcm-generic-page h2 {
        font-size: 26px !important;
    }

    body.page .ajcm-generic-page .alignleft,
    body.page .ajcm-generic-page .alignright {
        float: none !important;
        display: block !important;
        margin: 18px auto !important;
    }

    body.page .ajcm-generic-page table {
        display: block !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.page .ajcm-generic-page :is(.button, .btn, .wp-block-button__link, a[class*="button"], button, input[type="submit"]) {
        max-width: 100% !important;
    }
}

@media print {
    body.page .ajcm-generic-page {
        width: 100% !important;
        max-width: none !important;
        border: 1px solid #777 !important;
        box-shadow: none !important;
    }

    body.page .page-sidebar-column,
    body.page .sharedaddy {
        display: none !important;
    }
}

/* AJCM 6.13.0 — page centre Castellane. */
.ajcm-centre-page {
  width: min(100% - 32px, 980px);
  margin: 0 auto 48px;
}

.ajcm-centre-page .ajcm-centre-lead {
  margin: 0 auto 24px;
  padding: 20px 24px;
  border-left: 5px solid #009fe3;
  border-radius: 14px;
  background: #f3fbff;
  font-size: 1.05rem;
  line-height: 1.65;
}

.ajcm-centre-page .ajcm-centre-card {
  box-sizing: border-box;
  margin: 22px 0;
  padding: 26px 28px;
  border: 1px solid #d7ebf4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 65, 84, 0.08);
}

.ajcm-centre-page .ajcm-centre-card h2 {
  margin-top: 0;
}

.ajcm-centre-page .ajcm-centre-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin: 20px 0;
}

.ajcm-centre-page .ajcm-centre-schedule .ajcm-centre-slot {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 20px;
  border: 1px solid #dcecf3;
  border-radius: 14px;
  background: #f7fbfd;
  box-shadow: none;
  transform: none;
}

.ajcm-centre-page .ajcm-centre-schedule h3 {
  margin-top: 0;
}

.ajcm-centre-page .ajcm-centre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.ajcm-centre-page .ajcm-centre-actions a {
  text-decoration: none;
}

.ajcm-centre-page .ajcm-centre-faq h3 {
  margin-top: 22px;
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .ajcm-centre-page {
    width: min(100% - 20px, 980px);
  }

  .ajcm-centre-page .ajcm-centre-lead,
  .ajcm-centre-page .ajcm-centre-card {
    padding: 20px 18px;
  }

  .ajcm-centre-page .ajcm-centre-schedule {
    grid-template-columns: 1fr;
  }

  .ajcm-centre-page .ajcm-centre-actions {
    display: grid;
  }

  .ajcm-centre-page .ajcm-centre-actions a {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}


/* AJCM 6.13.4 — Castellane : paire de creneaux verrouillee contre les styles du theme. */
body .entry-content .ajcm-centre-page .ajcm-centre-schedule.ajcm-centre-schedule--paired,
body .ajcm-centre-page .ajcm-centre-schedule.ajcm-centre-schedule--paired {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 20px 0 !important;
  padding: 0 !important;
}

body .entry-content .ajcm-centre-page .ajcm-centre-schedule--paired > .ajcm-centre-slot,
body .ajcm-centre-page .ajcm-centre-schedule--paired > .ajcm-centre-slot {
  box-sizing: border-box !important;
  flex: 1 1 0 !important;
  width: calc(50% - 9px) !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 100% !important;
  margin: 0 !important;
  position: relative !important;
  inset: auto !important;
  top: 0 !important;
  vertical-align: top !important;
  align-self: stretch !important;
  transform: none !important;
}

.ajcm-inclusion-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 14px;
  padding: 7px 11px;
  border: 1px solid #b9dcec;
  border-radius: 999px;
  background: #f1faff;
  color: #173f52;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}

.ajcm-inclusion-badge:hover,
.ajcm-inclusion-badge:focus-visible {
  border-color: #009fe3;
  background: #e4f6fd;
  color: #102f3e;
}

.ajcm-inclusion-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #009fe3;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.ajcm-centre-page .ajcm-centre-inclusion {
  border-left: 5px solid #009fe3;
}

.ajcm-centre-page .ajcm-centre-actions {
  justify-content: center !important;
  text-align: center !important;
}

.ajcm-centre-page .ajcm-centre-actions > a {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ajcm-centre-page .ajcm-centre-endnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 6px;
  padding: 18px;
  border: 1px solid #d7ebf4;
  border-radius: 16px;
  background: #f7fbfd;
}

.ajcm-centre-page .ajcm-centre-endnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #009fe3;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.ajcm-age-schedule__inclusion {
  margin: 10px 0 4px;
}

@media (max-width: 720px) {
  body .entry-content .ajcm-centre-page .ajcm-centre-schedule.ajcm-centre-schedule--paired,
  body .ajcm-centre-page .ajcm-centre-schedule.ajcm-centre-schedule--paired {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  body .entry-content .ajcm-centre-page .ajcm-centre-schedule--paired > .ajcm-centre-slot,
  body .ajcm-centre-page .ajcm-centre-schedule--paired > .ajcm-centre-slot {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  .ajcm-centre-page .ajcm-centre-endnav,
  .ajcm-centre-page .ajcm-centre-endnav a {
    width: 100%;
    box-sizing: border-box;
  }
}


/* AJCM 6.13.5 — page hub des dojos : pictogrammes ronds et fiche Castellane. */
body.page-id-99 .ajcm-dojo-title-line {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  max-width: 100% !important;
}

body.page-id-99 a.ajcm-dojo-inclusion-icon {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #009fe3 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #007eaf !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  box-shadow: 0 3px 9px rgba(0, 126, 175, .14) !important;
}

body.page-id-99 a.ajcm-dojo-inclusion-icon:hover,
body.page-id-99 a.ajcm-dojo-inclusion-icon:focus-visible {
  background: #e9f8fd !important;
  color: #005f86 !important;
  border-color: #007eaf !important;
}

body.page-id-99 .ajcm-dojo-detail-wrap {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 10px 0 4px !important;
}

body.page-id-99 a.ajcm-dojo-detail-button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 20px !important;
  border: 2px solid #009fe3 !important;
  border-radius: 999px !important;
  background: #009fe3 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(0, 126, 175, .18) !important;
}

body.page-id-99 a.ajcm-dojo-detail-button:hover,
body.page-id-99 a.ajcm-dojo-detail-button:focus-visible {
  background: #007cad !important;
  border-color: #007cad !important;
  color: #ffffff !important;
}

@media (max-width: 520px) {
  body.page-id-99 .ajcm-dojo-title-line {
    gap: 8px !important;
  }

  body.page-id-99 a.ajcm-dojo-inclusion-icon {
    flex-basis: 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 18px !important;
  }

  body.page-id-99 a.ajcm-dojo-detail-button {
    width: 100% !important;
    max-width: 310px !important;
  }
}


/* AJCM 6.13.7 — autres centres : même verrouillage visuel que Castellane, avec retour à la ligne pour 1/2/4/6 créneaux. */
body .entry-content .ajcm-centre-page .ajcm-centre-schedule.ajcm-centre-schedule--locked,
body .ajcm-centre-page .ajcm-centre-schedule.ajcm-centre-schedule--locked {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 20px 0 !important;
  padding: 0 !important;
}

body .entry-content .ajcm-centre-page .ajcm-centre-schedule--locked > .ajcm-centre-slot,
body .ajcm-centre-page .ajcm-centre-schedule--locked > .ajcm-centre-slot {
  box-sizing: border-box !important;
  flex: 0 0 calc(50% - 9px) !important;
  width: calc(50% - 9px) !important;
  max-width: calc(50% - 9px) !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  position: relative !important;
  inset: auto !important;
  top: 0 !important;
  vertical-align: top !important;
  align-self: stretch !important;
  transform: none !important;
}

body .entry-content .ajcm-centre-page .ajcm-centre-schedule--locked > .ajcm-centre-slot:only-child,
body .ajcm-centre-page .ajcm-centre-schedule--locked > .ajcm-centre-slot:only-child {
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 720px) {
  body .entry-content .ajcm-centre-page .ajcm-centre-schedule.ajcm-centre-schedule--locked,
  body .ajcm-centre-page .ajcm-centre-schedule.ajcm-centre-schedule--locked {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  body .entry-content .ajcm-centre-page .ajcm-centre-schedule--locked > .ajcm-centre-slot,
  body .ajcm-centre-page .ajcm-centre-schedule--locked > .ajcm-centre-slot {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
  }
}


/* AJCM 6.13.9 — une rangée Castellane par paire, y compris lorsqu'il reste une seule carte. */
body .entry-content .ajcm-centre-page .ajcm-centre-schedule--paired > .ajcm-centre-slot:only-child,
body .ajcm-centre-page .ajcm-centre-schedule--paired > .ajcm-centre-slot:only-child {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* AJCM 6.13.19 - alignement typographique des fiches centres contre les offsets Mesmerize. */
body .entry-content .ajcm-centre-page,
body .ajcm-centre-page {
  box-sizing:border-box!important;
  text-align:left!important;
}
body .entry-content .ajcm-centre-page .ajcm-centre-lead,
body .entry-content .ajcm-centre-page .ajcm-centre-card,
body .ajcm-centre-page .ajcm-centre-lead,
body .ajcm-centre-page .ajcm-centre-card {
  text-align:left!important;
}
body .entry-content .ajcm-centre-page .ajcm-centre-lead,
body .entry-content .ajcm-centre-page .ajcm-centre-card > p,
body .entry-content .ajcm-centre-page .ajcm-centre-card > h2,
body .entry-content .ajcm-centre-page .ajcm-centre-card > h3,
body .entry-content .ajcm-centre-page .ajcm-centre-card > ul,
body .entry-content .ajcm-centre-page .ajcm-centre-card > ol,
body .ajcm-centre-page .ajcm-centre-lead,
body .ajcm-centre-page .ajcm-centre-card > p,
body .ajcm-centre-page .ajcm-centre-card > h2,
body .ajcm-centre-page .ajcm-centre-card > h3,
body .ajcm-centre-page .ajcm-centre-card > ul,
body .ajcm-centre-page .ajcm-centre-card > ol {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
}
body .entry-content .ajcm-centre-page .ajcm-centre-card > ul,
body .entry-content .ajcm-centre-page .ajcm-centre-card > ol,
body .ajcm-centre-page .ajcm-centre-card > ul,
body .ajcm-centre-page .ajcm-centre-card > ol {
  padding-left:1.35em!important;
}
@media(max-width:720px){
  body .entry-content .ajcm-centre-page,
  body .ajcm-centre-page{
    width:calc(100% - 20px)!important;
    max-width:980px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    transform:none!important;
  }
  body .entry-content .ajcm-centre-page .ajcm-centre-card,
  body .ajcm-centre-page .ajcm-centre-card{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
}

/* AJCM 6.17.12 — contraste du CTA inscription sur les fiches centres. */
.ajcm-centre-page .ajcm-centre-actions > a.ajcm-centre-action--registration,
.ajcm-centre-page .ajcm-centre-actions > a.ajcm-centre-action--registration:visited,
.ajcm-centre-page .ajcm-centre-actions > a.ajcm-centre-action--registration:hover,
.ajcm-centre-page .ajcm-centre-actions > a.ajcm-centre-action--registration:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
