/* ==========================================================================
   Pages créées pour la plateforme (absentes de la template), dans le même style.
   style.css reste la feuille de la template ; ce fichier ne fait que la compléter.
   Propriétés logiques (inline/block) pour rester compatible RTL.
   ========================================================================== */

/* Le décalage des éléments avant leur animation d'apparition ne doit pas élargir la page */
main { overflow-x: clip; }

/* En-tête : 9 liens au lieu de 6 */
.nav { gap: clamp(14px, 1.6vw, 26px); }
.nav__link { font-size: 14.500px; white-space: nowrap; }
.logo__img { width: 50px; height: 42px; object-fit: contain; }
.header__login { padding: 10px 4px; font-size: 14.500px; font-weight: 600; color: #fff; white-space: nowrap; }
.nav__cta--second { display: none; }
.partner__name { font-weight: 800; color: var(--muted); }
.partner img { max-height: 44px; width: auto; }
.course__link { color: inherit; }
.course__link::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.course .btn { position: relative; z-index: 2; }
.search-results a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 46px; padding: 8px 10px;
  border-radius: 8px; font-size: 14.500px; font-weight: 600;
}
.search-results a:hover, .search-results a:focus-visible { background: var(--lavender); }

/* Bandeau de titre */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 34px) 0 42px;
  color: #fff;
  background:
    radial-gradient(52% 90% at 80% 20%, rgba(49, 56, 214, .55), transparent 72%),
    radial-gradient(40% 80% at 0% 100%, rgba(38, 56, 214, .38), transparent 72%),
    linear-gradient(160deg, #0c0e58 0%, #000348 60%, #02055a 100%);
}
.page-hero h1 { font-size: clamp(1.700rem, 4vw, 2.600rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.page-hero__lead { max-width: 720px; margin-top: 10px; color: rgba(255, 255, 255, .86); }

.breadcrumb { margin-bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: '/'; margin-inline-end: 8px; opacity: .5; }
.breadcrumb a:hover { color: var(--gold); }
.dash .breadcrumb { color: var(--muted); margin-bottom: 6px; }
.dash .breadcrumb a:hover { color: var(--navy-500); }

/* Messages */
.flash-stack {
  position: fixed; inset-block-start: calc(var(--header-h) + 8px); inset-inline: 0; z-index: 45;
  display: grid; gap: 8px; justify-items: center; padding-inline: 16px; pointer-events: none;
}
.alert {
  width: min(720px, 100%); padding: 12px 16px; border-radius: var(--r-md);
  font-size: 14.500px; font-weight: 600; pointer-events: auto;
  box-shadow: var(--shadow-sm);
}
.alert--success { background: #e7f7ed; color: #0b6b35; border: 1px solid #b7e6c8; }
.alert--error { background: #fdecea; color: #a4221a; border: 1px solid #f6c6c1; }
.alert--warning { background: #fff6dc; color: #805b00; border: 1px solid #f6e0a0; }
.alert--info { background: var(--lavender); color: var(--ink); border: 1px solid #d9dcf5; }
.card-box > .alert, .auth-card > .alert { margin-bottom: 14px; box-shadow: none; width: 100%; }

/* Boutons complémentaires */
.btn--outline { border: 1.5px solid var(--navy-700); color: var(--navy-700); background: transparent; }
.btn--danger { border: 1.5px solid #d9534f; color: #b42318; background: #fff; }
.btn--whatsapp { background: #128c4a; color: #fff; }
.btn--ghost-ink { border: 1.5px solid #d9dbea; color: var(--ink); background: #fff; }
@media (hover: hover) {
  .btn--outline:hover { background: var(--navy-700); color: #fff; }
  .btn--danger:hover { background: #b42318; border-color: #b42318; color: #fff; }
  .btn--ghost-ink:hover { border-color: var(--navy-500); color: var(--navy-500); }
}
.btn { white-space: normal; text-align: center; }
.link { color: var(--navy-500); font-weight: 600; text-decoration: underline; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center-block { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-block: 34px; }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.debug { width: 100%; padding: 14px; overflow: auto; background: #101236; color: #e8e9ff; border-radius: 10px; font-size: 12px; }

/* Blocs */
.card-box {
  min-width: 0; padding: 22px; background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.card-box--navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; }
.card-box--navy .box-title { color: #fff; }
.card-box--navy p { margin-bottom: 12px; color: rgba(255, 255, 255, .85); }
.box-spaced { margin-top: 22px; }
.box-title { margin: 0 0 12px; font-size: 1.150rem; font-weight: 800; color: inherit; }
.box-subtitle { margin: 16px 0 8px; font-size: 14.500px; font-weight: 700; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; padding-block: 28px; }
.detail-main, .detail-side { display: grid; gap: 18px; min-width: 0; }
.detail-cover { overflow: hidden; aspect-ratio: 2 / 1; border-radius: var(--r-lg); background: var(--navy-800); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.sticky-box { position: sticky; top: 88px; }

.prose { overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin-block: 0 12px; }
.prose ul { padding-inline-start: 20px; list-style: disc; }
.prose ol { padding-inline-start: 20px; }
.prose h2, .prose h3, .prose h4 { margin-block: 18px 8px; font-weight: 700; }
.prose a { color: var(--navy-500); text-decoration: underline; }
.prose img { border-radius: var(--r-md); }
.prose--small { margin-top: 14px; font-size: 14px; color: var(--muted); }

.check-list { display: grid; gap: 7px; }
.check-list li { position: relative; padding-inline-start: 24px; font-size: 14.500px; }
.check-list li::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: .3em;
  width: 11px; height: 6px; border-inline-start: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.info-list { display: grid; gap: 10px; margin-bottom: 16px; font-size: 14.500px; }
.info-list li { display: flex; align-items: flex-start; gap: 10px; overflow-wrap: anywhere; }
.info-list .icon { margin-top: 3px; font-size: 18px; color: var(--gold-deep); }
.price-big { margin-bottom: 12px; font-size: 1.900rem; font-weight: 800; }
.price-big s { font-size: 1rem; font-weight: 500; color: var(--soft); }

.data-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 12px 0 0; font-size: 14px; }
.data-list dt { color: var(--muted); }
.data-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge--success { background: #e3f6ea; color: #0b6b35; }
.badge--warning { background: #fff2cc; color: #7a5600; }
.badge--danger { background: #fde5e3; color: #a4221a; }
.badge--info { background: #e4e6fb; color: #2a2d9c; }
.badge--neutral { background: #eef0f6; color: #4a4e6d; }

/* Grilles */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.cards-grid--courses { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cards-grid--spaced { margin-top: 16px; }
.cards-grid--courses .course { flex: none; max-width: none; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; margin-top: 18px; }
.list-card { display: grid; gap: 7px; align-content: start; justify-items: start; padding: 18px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.list-card h3 { font-size: 1.050rem; font-weight: 700; line-height: 1.3; }
.list-card h3 a:hover { color: var(--navy-500); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; margin-top: 18px; }
.gallery-card { padding: 10px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.gallery-card .muted { margin-top: 5px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.person-card { display: grid; justify-items: center; gap: 6px; padding: 22px 16px; text-align: center; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.person-card__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.person-card h3 { font-size: 1.050rem; font-weight: 700; }
.person-card h3 a:hover { color: var(--navy-500); }
.person-card__role { font-size: 13.500px; font-weight: 600; color: var(--navy-500); }
.person-card__text { font-size: 13.500px; color: var(--muted); }
.person-side { display: grid; justify-items: center; }
.person-side .data-list, .person-side .btn { width: 100%; margin-top: 14px; }

/* Packs */
.pack-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px 20px 20px; background: var(--surface);
  border: 1.5px solid transparent; border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out);
}
.pack-card--featured { border-color: var(--gold); }
.pack-card .tag { inset-block-start: -10px; inset-inline-start: 16px; top: -10px; left: auto; }
.pack-card h3 { font-size: 1.200rem; font-weight: 800; line-height: 1.25; }
.pack-card h3 a:hover { color: var(--navy-500); }
.pack-card__summary { font-size: 14px; color: var(--muted); }
.pack-card__price { margin-top: auto; padding-top: 8px; }
.pack-card__price strong { display: block; font-size: 1.700rem; font-weight: 800; }
.pack-card__price span { font-size: 13px; color: var(--muted); }
.pack-card__price b { color: var(--green); }
.pack-card__seats { font-size: 13px; font-weight: 600; color: var(--navy-500); }
@media (hover: hover) { .pack-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }

.component-list { display: grid; gap: 10px; }
.component { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; background: var(--bg); border-radius: var(--r-md); }
.component__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: var(--gold); font-size: 20px; }
.component__text { display: grid; min-width: 0; font-size: 14.500px; }
.component__text small { font-size: 11.500px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.component__text a:hover { color: var(--navy-500); }
.component__price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.price-summary { display: grid; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #d9dbea; font-size: 14.500px; }
.price-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.price-summary__saving b { color: var(--green); }
.price-summary__total { font-size: 1.150rem; }
.price-summary__total strong { font-weight: 800; }
.schedule-mini { display: grid; gap: 6px; font-size: 13.500px; }
.schedule-mini li { display: flex; justify-content: space-between; gap: 10px; }

.session-list { display: grid; gap: 10px; }
.session-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px; background: var(--bg); border-radius: var(--r-md); }
.session-row > div { display: grid; flex: 1 1 220px; min-width: 0; font-size: 14.500px; }
.session-row .muted { font-size: 13px; }

/* Filtres */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 18px 18px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.filter-bar .field { flex: 1 1 170px; margin-top: 0; min-width: 0; }
.filter-bar .btn { flex: none; }
.result-count { margin-block: 16px 12px; font-size: 14px; color: var(--muted); }
.chips, .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list--spaced { margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 10px; background: #eff0f8; font-size: 13.500px; font-weight: 600; color: #373b73;
}
.chip.is-active { background: var(--navy-800); color: #fff; }
.chip--static { min-height: 30px; padding: 0 11px; font-size: 12.500px; }
@media (hover: hover) { a.chip:not(.is-active):hover { background: #e2e4f6; } }
.empty-state { display: grid; justify-items: center; gap: 12px; margin-top: 18px; padding: 34px 16px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r-md); }
.link-list { display: grid; gap: 4px; font-size: 14.500px; }
.link-list a { display: block; padding: 8px 0; font-weight: 600; }
.link-list a:hover { color: var(--navy-500); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination__link { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 600; font-size: 14px; }
.pagination__link.is-current { background: var(--navy-800); color: #fff; }
@media (hover: hover) { a.pagination__link:hover { background: var(--lavender); } }

/* Formulaires */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .field { min-width: 0; }
.field--full, .form-group-title { grid-column: 1 / -1; }
.form-group-title { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 800; }
.form-grid > .form-group-title:first-child { margin-top: 0; padding-top: 0; border: 0; }
textarea, .field textarea {
  width: 100%; min-height: 110px; padding: 10px 12px;
  border: 1.5px solid #d9dbea; border-radius: 10px;
  background: #fff; color: inherit; font: inherit; font-size: 16px; line-height: 1.5; resize: vertical;
}
.field textarea:focus { outline: 0; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(42, 45, 156, .16); }
.field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c53030; }
.field input[type="file"] { height: auto; min-height: 46px; padding: 9px 12px; }
.field__help { margin-top: 4px; font-size: 12.500px; color: var(--muted); }
.field--check { margin-top: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 14.500px; font-weight: 500 !important; cursor: pointer; }
.field .check input[type="checkbox"], .check input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy-700); }
.field label .check-required { color: #c53030; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.current-file { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.current-file img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }

.auth-page { display: grid; place-items: center; min-height: 100vh; padding-block: calc(var(--header-h) + 32px) 48px; }
.page-inner:has(.auth-page) { background: linear-gradient(180deg, var(--navy-800) 0, var(--navy-950) 300px, var(--bg) 300px); }
.auth-card { width: min(440px, 100%); padding: 28px 24px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.auth-card--wide { width: min(620px, 100%); }
.auth-card h1 { font-size: 1.600rem; font-weight: 800; }
.auth-card .form-grid { margin-top: 6px; }
.auth-card .form-actions .btn { width: 100%; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; font-size: 14px; }
.auth-links a { display: inline-block; padding-block: 10px; font-weight: 600; color: var(--navy-500); }

/* Tableaux */
/* position: relative retient les .sr-only (absolus) dans la zone défilante, sinon ils élargissent la page */
.table-wrap { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th { font-size: 12.500px; font-weight: 700; color: var(--muted); white-space: nowrap; background: #f8f8fd; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table a:not(.btn) { font-weight: 600; color: var(--navy-500); }

/* Avancement, frise */
.progress-line { height: 10px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: var(--lavender); }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: var(--gold-grad); }
.timeline { display: grid; gap: 4px; padding-inline-start: 6px; }
.timeline__item { position: relative; display: grid; padding: 6px 0 12px 22px; font-size: 14.500px; border-inline-start: 2px solid var(--line); }
.timeline__item::before { content: ''; position: absolute; inset-inline-start: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: #cfd2e6; }
.timeline__item.is-done::before { background: var(--green); }
.timeline__item.is-in_progress::before { background: var(--gold-deep); }
.verify-box { display: grid; justify-items: start; gap: 12px; }
.verify-box .data-list { width: 100%; }

/* Barre d'action mobile : trois boutons possibles */
@media (max-width: 720px) {
  .mobile-bar { display: flex !important; flex-wrap: nowrap; gap: 8px; }
  .mobile-bar .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 6px; font-size: 13px; gap: 5px; line-height: 1.15; }
}

@media (max-width: 1240px) {
  .nav__link { font-size: 13.500px; }
  .header__login { display: none; }
}
@media (max-width: 1024px) {
  .header__login { display: none; }
  /* 9 liens + 2 boutons doivent tenir sur un petit écran */
  .nav { justify-content: flex-start; overflow-y: auto; padding-top: 78px; gap: 0; }
  .nav__link { flex: none; padding: 9px 4px; min-height: 44px; font-size: 19px; }
  .nav__cta { flex: none; margin-top: 12px; min-height: 48px; }
  .nav__cta--second { display: inline-flex; margin-top: 8px; }
  .pill { min-height: 44px; }
  /* Tablette et téléphone : cibles tactiles d'au moins 44 px */
  .footer__col a, .footer__legal a { display: flex; align-items: center; min-height: 44px; }
  .course .btn { min-height: 44px; }
  .socials a { width: 44px; height: 44px; }
  .slider-arrows button { min-width: 44px; min-height: 44px; }
  .slider-dots button { width: 44px; height: 44px; }
  .link-list a { min-height: 44px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .sticky-box { position: static; }
  .detail-side { order: -1; }
  .detail-layout--form .detail-side { order: 0; }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card-box { padding: 16px; }
  .page-hero { padding: calc(var(--header-h) + 18px) 0 28px; }
  .detail-layout { padding-block: 16px; }
  .filter-bar .btn { width: 100%; }
  .filter-bar .field { flex-basis: 100%; }
  .component { grid-template-columns: 44px minmax(0, 1fr); }
  .component__price { grid-column: 2; }
  .form-actions .btn { width: 100%; }
  .flash-stack { inset-block-start: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* Tableau affiché en cartes : chaque cellule porte son libellé dans data-label */
  .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr { padding: 10px 12px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
  .table--cards td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 6px 0; border: 0; text-align: end; overflow-wrap: anywhere; }
  .table--cards td::before { content: attr(data-label); flex: none; max-width: 45%; font-size: 12.500px; font-weight: 700; color: var(--muted); text-align: start; }
  .table--cards td[data-label=""]::before { display: none; }
  .table--cards td.actions { justify-content: flex-start; flex-wrap: wrap; padding-top: 10px; }
  .table--cards .num { white-space: normal; }
}
/* Cartes entièrement cliquables : le lien du titre couvre la carte, sans doubler les liens pour les lecteurs d'écran */
.link-card { position: relative; transition: transform var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out); }
.link-card__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.link-card:focus-within { box-shadow: 0 0 0 3px var(--gold-deep), var(--shadow-md); }
.link-card__link:focus-visible { outline: 0; }
@media (hover: hover) {
  .link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .link-card:hover .list-card__cta .icon { transform: translateX(4px); }
}
.list-card { align-content: stretch; grid-template-rows: auto auto auto 1fr auto; }
.list-card > * { min-width: 0; max-width: 100%; }
.list-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.list-card__highlight { font-size: 14px; font-weight: 700; color: var(--green); }
.list-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; width: 100%; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.list-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.500px; font-weight: 700; color: var(--navy-500); }
.list-card__cta .icon { font-size: 16px; transition: transform var(--fast) var(--ease-out); }
.list-search { margin-bottom: 0; }
.field--grow { flex-grow: 3 !important; }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 44px; margin-block: 8px; }
.result-bar .result-count { margin: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.gallery-card { display: flex; flex-direction: column; }
.gallery-card__tags { margin-top: 8px; }
.gallery-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.gallery-card__foot .progress-line { flex: 1; margin: 0; }
.pack-card__plan { display: block; margin-top: 3px; color: var(--navy-500) !important; font-weight: 600; }
.pack-card__seats.is-low { color: #b42318; font-weight: 700; }
.pack-card > .btn { position: static; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { padding: 20px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.step__number { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 50%; background: var(--gold-grad); font-weight: 800; }
.step h3 { font-size: 1rem; font-weight: 700; }
.step p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.compare .table td:first-child a { font-weight: 700; }
.career-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.career-cta p { margin: 0; }
.person-card { align-content: start; }
.week-dots { display: flex; gap: 4px; margin-block: 4px; }
.week-dots li { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eff0f8; color: #9a9db8; font-size: 11px; font-weight: 700; }
.week-dots li.is-on { background: var(--navy-800); color: var(--gold); }
.week-list { display: grid; gap: 2px; font-size: 14px; }
.week-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 7px 8px; border-radius: 8px; }
.week-list li.is-today { background: var(--lavender); }
.week-absence { margin-top: 10px; font-size: 13px; }
@media (min-width: 1025px) { .footer__col a[href^="mailto:"] { overflow-wrap: normal; white-space: nowrap; font-size: 13.500px; } }

/* Tablette : le logo occupe sa propre ligne, un nom long ne chevauche plus la colonne suivante */
@media (min-width: 721px) and (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* Sélecteur de langue */
.lang-switch { position: relative; }
.lang-switch__toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 22px; color: inherit; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.lang-switch__toggle::-webkit-details-marker { display: none; }
.lang-switch__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 80; min-width: 140px; padding: 6px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-lg); color: var(--ink); list-style: none; }
.lang-switch__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.lang-switch__menu a:hover { background: var(--lavender); }
.lang-switch__menu a.is-active { background: var(--lavender); }
/* Arabe : style.css reste identique à la template, ses règles dépendantes du sens de lecture sont inversées ici. */
html[lang="ar"] body, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea { font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, 'Segoe UI', sans-serif; }
html[lang="ar"] * { letter-spacing: 0 !important; }
[dir="rtl"] .skip-link { left: auto; right: 10px; }
[dir="rtl"] .progress__bar, [dir="rtl"] .nav__link::after, [dir="rtl"] .why-card::after { transform-origin: right; }
[dir="rtl"] .icon:has(use[href="#i-arrow"]) { transform: scaleX(-1); }
[dir="rtl"] .cta .btn--block .btn__arrow { right: auto; left: 14px; }
[dir="rtl"] .avatars img { margin-left: 0; margin-right: -11px; }
[dir="rtl"] .avatars img:first-child { margin-right: 0; }
[dir="rtl"] .partner, [dir="rtl"] .stat { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .stat { border-right-color: rgba(255, 255, 255, .16); }
[dir="rtl"] .partner:first-child, [dir="rtl"] .stat:first-child { border-right: 0; }
[dir="rtl"] .slider-arrows button + button { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .resource__media .tag { left: auto; right: 6px; }
[dir="rtl"] .course__media .tag { left: auto; right: 8px; }
[dir="rtl"] .footer__legal { padding-right: 0; padding-left: 62px; }
[dir="rtl"] .to-top { right: auto; left: 22px; }
[dir="rtl"] .modal__close { right: auto; left: 12px; }
[dir="rtl"] .modal h2 { padding-right: 0; padding-left: 40px; }
[dir="rtl"] .js .reveal--left { transform: translateX(46px); }
[dir="rtl"] .js .reveal--right { transform: translateX(-46px); }
[dir="rtl"] .js .reveal.is-visible, [dir="rtl"] .js .reveal.in-view { transform: none; }
[dir="rtl"] .sbx-edit { right: auto; left: 8px; }
/* Éléments dont le sens ne change pas : composition du bandeau, défilement des logos, coordonnées. */
[dir="rtl"] .hero__visual, [dir="rtl"] .partners__track, [dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="url"] { direction: ltr; unicode-bidi: plaintext; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="url"] { text-align: right; }
@media (hover: hover) {
  [dir="rtl"] .btn:hover .btn__arrow, [dir="rtl"] .link-arrow:hover .icon { transform: translateX(-5px) scaleX(-1); }
  [dir="rtl"] .newsletter__field button:hover .icon { transform: translateX(-3px) scaleX(-1); }
  [dir="rtl"] .footer__col a:hover { transform: translateX(-5px); }
}
[dir="rtl"] .glass { direction: rtl; }
[dir="rtl"] .slider-arrows .icon { transform: scaleX(-1); }
@media (min-width: 1025px) {
  [dir="rtl"] .hero__visual { left: auto; right: calc(50% - 120px); }
}
@media (max-width: 1024px) {
  [dir="rtl"] .nav__link::after { left: auto; right: 0; }
  [dir="rtl"] .courses__head .link-arrow { margin-left: 0; margin-right: auto; }
  [dir="rtl"] .footer__legal { padding-left: 70px; }
}
@media (max-width: 720px) {
  [dir="rtl"] .to-top { left: 14px; }
  [dir="rtl"] .stat:nth-child(odd) { border-right: 0; }
  [dir="rtl"] .program { text-align: right; }
  [dir="rtl"] .stat { padding-left: 0; padding-right: 4px; }
}
/* Site builder sur le site public */
.sbx-bar { position: fixed; inset-inline: 8px; bottom: 18px; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; width: fit-content; max-width: calc(100vw - 16px); margin-inline: auto; padding: 6px 10px; border-radius: 28px; background: rgba(4, 6, 40, .95); box-shadow: var(--shadow-lg); color: #fff; font-size: 13px; }
.sbx-bar form { margin: 0; }
.sbx-bar a, .sbx-bar button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 20px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; }
.sbx-bar .sbx-primary { background: var(--gold); color: var(--ink); font-weight: 700; }
.sbx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.sbx-count { opacity: .75; }
[data-sb-page] { position: relative; outline: 1px dashed var(--gold-deep); outline-offset: -3px; }
[data-sb-page]:hover { outline: 2px solid var(--gold-deep); }
.sbx-edit { position: absolute; top: 8px; right: 8px; z-index: 40; min-height: 36px; max-width: calc(100% - 16px); padding: 0 12px; border-radius: 18px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-md); }
.sbx-panel { position: fixed; inset-block: 0; right: 0; z-index: 95; display: flex; flex-direction: column; width: min(680px, 100vw); background: #f4f5fb; box-shadow: -18px 0 50px rgba(0, 3, 72, .4); transform: translateX(105%); visibility: hidden; transition: transform .3s var(--ease-out), visibility .3s; }
.sbx-panel.is-open { transform: none; visibility: visible; }
.sbx-panel header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: var(--navy-800); color: #fff; font-weight: 700; }
.sbx-panel header button { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; font-size: 18px; }
.sbx-panel iframe { flex: 1; width: 100%; border: 0; }
.cookie-bar { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 85; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; max-width: 760px; margin-inline: auto; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-lg); font-size: 14px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar > div { display: flex; gap: 8px; }
.hero > .sbx-edit, .page-hero > .sbx-edit { top: 96px; }
@media (max-width: 720px) {
  .cookie-bar { bottom: 76px; }
  .sbx-bar { bottom: 76px; padding: 4px 6px; border-radius: 24px; }
  .sbx-bar > strong, .sbx-bar > .sbx-dot, .sbx-count { display: none; }
  .sbx-bar a, .sbx-bar button { min-height: 44px; padding: 0 10px; }
}
/* Pied de page : une adresse e-mail longue ne doit pas élargir la page */
.footer__col, .footer__brand { min-width: 0; }
.footer__col a, .footer__address { max-width: 100%; overflow-wrap: anywhere; }
.footer__address { font-size: 14px; color: inherit; opacity: .85; }
.logo { min-height: 44px; }
.info-list a { display: inline-flex; align-items: center; min-height: 44px; }
.info-list li { align-items: center; }
.info-list .icon { margin-top: 0; }
.component__text a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 768px) {
  .tox .tox-tbtn { min-height: 44px; height: 44px !important; min-width: 44px; }
  .tox .tox-toolbar__group { padding-block: 0 !important; }
}
@media print {
  .header, .footer, .mobile-bar, .to-top, .progress, .dash__sidebar, .dash__bar { display: none !important; }
}
