/*
 * Hôtellerie d'Ourscamp — Bootstrap 5 + charte du frontend Angular historique.
 * Bleu historique : #5782bd
 * Typographies : Roboto pour le contenu, Oswald pour navigation et titres.
 */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap");

:root {
  --hot-blue: #5782bd;
  --hot-blue-rgb: 87, 130, 189;
  --hot-blue-deep: #39557a;
  --hot-blue-dark: #2c4260;
  --hot-blue-soft: #eef3fa;
  --hot-gold: #d1971b;
  --hot-gold-dark: #aa7610;
  --hot-ink: #31465f;
  --hot-muted: #6d7b8d;
  --hot-line: #dbe3ee;
  --hot-paper: #ffffff;
  --hot-bg: #f4f6f9;
  --hot-shadow: 0 28px 70px rgba(49, 70, 95, .14);
  --hot-shadow-soft: 0 12px 32px rgba(49, 70, 95, .09);

  --bs-primary: var(--hot-blue);
  --bs-primary-rgb: var(--hot-blue-rgb);
  --bs-body-font-family: "Roboto", Arial, sans-serif;
  --bs-body-color: var(--hot-ink);
  --bs-body-bg: var(--hot-bg);
  --bs-link-color: var(--hot-blue-deep);
  --bs-link-hover-color: var(--hot-gold-dark);
  --bs-border-color: var(--hot-line);
  --bs-border-radius: .65rem;
  --bs-border-radius-lg: .9rem;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 90% 0, rgba(var(--hot-blue-rgb), .10), transparent 30rem),
    linear-gradient(180deg, #fafbfd 0, var(--hot-bg) 34rem);
  color: var(--hot-ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1.04rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: .16em;
}

h1, h2, h3, h4, h5, h6,
.section-kicker,
.footer-title {
  font-family: "Oswald", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   EN-TÊTE / MENU
   -------------------------------------------------------------------------- */

.site-header {
  z-index: 1030;
}

.site-navbar {
  min-height: 112px;
  padding: .7rem 0;
  background-color: var(--hot-blue) !important;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.035), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(0,0,0,.04));
  border-bottom: 3px solid var(--hot-gold);
  box-shadow: 0 9px 26px rgba(44, 66, 96, .22);
}

.navbar-inner {
  min-height: 92px;
}

.navbar-brand {
  min-width: 0;
  margin-right: 2.2rem;
  padding: .35rem 0;
  color: #fff;
  text-decoration: none;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #fff;
}

.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: 190px;
  object-fit: contain;
  margin-right: 1.25rem;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  color: #fff;
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
  font-weight: 400;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: .45rem;
  color: rgba(255,255,255,.78);
  font-family: "Roboto", Arial, sans-serif;
  font-size: .69rem;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-navbar .nav-link,
.btn-nav-outline,
.btn-nav-light {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 300;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.site-navbar .nav-link {
  position: relative;
  margin: .15rem .45rem;
  padding: .85rem .7rem !important;
  color: #fff !important;
  opacity: .95;
}

.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  right: .7rem;
  bottom: .47rem;
  left: .7rem;
  height: 2px;
  background: var(--hot-gold);
  opacity: 0;
  transform: scaleX(.3);
  transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  opacity: 1;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-user {
  display: inline-flex;
  align-items: center;
  margin: 0 .6rem;
  padding: .55rem .8rem;
  color: rgba(255,255,255,.74);
  font-size: .82rem;
  font-weight: 500;
  border-left: 1px solid rgba(255,255,255,.28);
}

.nav-action-item {
  margin-left: .6rem;
}

.btn-nav-outline,
.btn-nav-light {
  padding: .72rem 1.15rem;
  border-radius: .45rem;
  transition: all .18s ease;
}

.btn-nav-light {
  color: var(--hot-blue-deep);
  background: #fff;
  border: 1px solid #fff;
}

.btn-nav-light:hover,
.btn-nav-light:focus {
  color: #fff;
  background: var(--hot-gold);
  border-color: var(--hot-gold);
}

.btn-nav-outline {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.76);
}

.btn-nav-outline:hover,
.btn-nav-outline:focus {
  color: var(--hot-blue-deep);
  background: #fff;
  border-color: #fff;
}

.navbar-toggler {
  padding: .7rem;
}

.site-main {
  min-height: 68vh;
}

/* --------------------------------------------------------------------------
   CONNEXION
   -------------------------------------------------------------------------- */

.auth-section {
  position: relative;
}

.auth-shell {
  position: relative;
  overflow: hidden;
  background: var(--hot-paper);
  border: 1px solid rgba(87, 130, 189, .20);
  border-radius: 1.15rem;
  box-shadow: var(--hot-shadow);
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  height: 4px;
  background: linear-gradient(90deg, var(--hot-gold), #edb62e 30%, var(--hot-blue) 72%);
}

.auth-form-panel {
  position: relative;
  z-index: 2;
  background: #fff;
}

.auth-form-content {
  max-width: 690px;
  margin-inline: auto;
}

.p-xl-6 {
  padding: 4rem !important;
}

.section-kicker {
  color: var(--hot-blue);
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-kicker-light {
  color: rgba(255,255,255,.78);
}

.auth-title {
  color: var(--hot-blue-deep);
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.auth-lead {
  max-width: 52ch;
  color: var(--hot-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.form-label {
  margin-bottom: .52rem;
  color: var(--hot-blue-deep);
  font-size: .9rem;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 3.55rem;
  border: 1px solid #cbd6e4;
  border-radius: .55rem;
  background: #fff;
  color: var(--hot-ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1rem;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-control::placeholder {
  color: #9aa6b4;
  opacity: 1;
}

/*
 * Checkbox et boutons radio : contour visible sur tous les fonds.
 * Cette règle globale évite de corriger les écrans un par un.
 * Les règles plus spécifiques des modules restent prioritaires.
 */
.form-check-input {
  border: 1.5px solid #657b92;
  background-color: #fff;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--hot-blue);
  box-shadow: 0 0 0 .22rem rgba(var(--hot-blue-rgb), .13);
}

.form-check-input:checked {
  background-color: var(--hot-blue);
  border-color: var(--hot-blue);
}

.form-check-label {
  color: #5b6878;
  font-size: .92rem;
  font-weight: 500;
}

.auth-forgot-link {
  color: var(--hot-blue);
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-forgot-link:hover {
  color: var(--hot-gold-dark);
  text-decoration: underline;
}

.password-field-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: .85rem;
  bottom: .75rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hot-blue-deep);
}

.password-toggle:hover,
.password-toggle:focus {
  background: var(--hot-blue-soft);
}

.password-eye {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50% / 60%;
}

.password-eye::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.btn-abbey {
  min-width: 170px;
  padding: .9rem 1.65rem;
  color: #fff;
  background: var(--hot-blue);
  border: 1px solid var(--hot-blue);
  border-radius: .48rem;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 300;
  letter-spacing: .055em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(var(--hot-blue-rgb), .18);
}

.btn-abbey:hover,
.btn-abbey:focus {
  color: #fff;
  background: var(--hot-blue-deep);
  border-color: var(--hot-blue-deep);
  transform: translateY(-1px);
}

.auth-privacy {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hot-line);
  color: #7b8795;
  font-size: .82rem;
  line-height: 1.55;
}

.auth-privacy-icon {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  place-items: center;
  margin-top: .05rem;
  border-radius: 50%;
  background: var(--hot-blue-soft);
  color: var(--hot-blue);
  font-size: .75rem;
  font-weight: 700;
}

.auth-aside {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 5%, rgba(255,255,255,.12), transparent 23rem),
    linear-gradient(145deg, var(--hot-blue-deep), var(--hot-blue) 62%, #6b94ca);
}

.auth-aside::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 78px rgba(255,255,255,.025);
}

.auth-aside-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.auth-logo-wrap {
  min-height: 155px;
  display: flex;
  align-items: center;
}

.auth-logo {
  display: block;
  width: min(190px, 62%);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(24, 39, 57, .18));
}

.auth-aside-title {
  max-width: 12ch;
  color: #fff;
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(2.2rem, 3.3vw, 3.15rem);
  font-weight: 300;
  letter-spacing: .015em;
  line-height: 1.1;
  text-transform: uppercase;
}

.auth-aside-text {
  max-width: 41ch;
  color: rgba(255,255,255,.86);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  color: rgba(255,255,255,.92);
  font-size: .94rem;
}

.auth-benefits li span {
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 1.4rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
  color: #fff;
  font-size: .7rem;
}

.btn-aside {
  padding: .85rem 1.35rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: .48rem;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.btn-aside:hover,
.btn-aside:focus {
  color: var(--hot-blue-deep);
  background: #fff;
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   COMPOSANTS GÉNÉRAUX
   -------------------------------------------------------------------------- */

.page-card,
.card {
  border-color: var(--hot-line);
  box-shadow: var(--hot-shadow-soft);
}

.page-title,
.card-title {
  color: var(--hot-blue-deep);
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: .015em;
}

.btn-primary {
  --bs-btn-bg: var(--hot-blue);
  --bs-btn-border-color: var(--hot-blue);
  --bs-btn-hover-bg: var(--hot-blue-deep);
  --bs-btn-hover-border-color: var(--hot-blue-deep);
  --bs-btn-active-bg: var(--hot-blue-dark);
  --bs-btn-active-border-color: var(--hot-blue-dark);
}

.alert {
  border: 0;
  border-left: 4px solid currentColor;
  border-radius: .55rem;
  box-shadow: 0 6px 18px rgba(49,70,95,.06);
}

/* --------------------------------------------------------------------------
   PIED DE PAGE
   -------------------------------------------------------------------------- */

.site-footer {
  color: #758194;
  background: #fff;
  border-top: 1px solid var(--hot-line);
}

.footer-logo {
  width: auto;
  height: 36px;
  opacity: .88;
}

.footer-title {
  color: var(--hot-blue-deep);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.footer-address,
.footer-copy {
  margin-top: .2rem;
  font-size: .8rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .brand-copy small {
    display: none;
  }

  .site-navbar .nav-link,
  .btn-nav-outline,
  .btn-nav-light {
    font-size: 1rem;
  }
}

@media (max-width: 991.98px) {
  .site-navbar {
    min-height: 88px;
  }

  .navbar-inner {
    min-height: 68px;
  }

  .brand-logo {
    height: 48px;
  }

  .brand-copy strong {
    font-size: 1.18rem;
  }

  .site-navbar .navbar-collapse {
    margin-top: .75rem;
    padding: .75rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,.19);
  }

  .site-navbar .nav-link {
    margin: .05rem 0;
    padding: .75rem .25rem !important;
  }

  .site-navbar .nav-link::after {
    right: auto;
    left: .25rem;
    width: 2.2rem;
  }

  .nav-action-item {
    margin: .65rem 0 0;
  }

  .btn-nav-light,
  .btn-nav-outline {
    width: 100%;
  }

  .auth-aside {
    min-height: auto;
  }

  .auth-logo-wrap {
    min-height: 0;
  }

  .auth-logo {
    width: 150px;
  }

  .p-xl-6 {
    padding: 3rem !important;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 1rem;
  }

  .site-navbar {
    min-height: 78px;
    border-bottom-width: 2px;
  }

  .brand-logo {
    height: 42px;
    margin-right: .8rem;
  }

  .brand-copy strong {
    font-size: .98rem;
  }

  .auth-shell {
    border-radius: .75rem;
  }

  .auth-form-content,
  .auth-aside-content {
    padding: 2rem 1.45rem !important;
  }

  .auth-title {
    font-size: 2.5rem;
  }

  .auth-submit {
    width: 100%;
  }

  .footer-logo {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  body,
  .site-main {
    background: #fff !important;
  }
}

/* === PATCH FORM REQUIRED OPTIONAL START === */
/* ==========================================================================
   FORMULAIRES — distinction globale champs obligatoires / facultatifs
   ========================================================================== */

/*
 * Convention visuelle :
 * - obligatoire : fond bleu très clair + bordure bleue soutenue ;
 * - facultatif   : fond gris très clair + bordure gris-bleu ;
 * - erreur / valide / focus gardent la priorité visuelle.
 *
 * S'applique aux formulaires CakePHP / Bootstrap sans modifier chaque template.
 */

:root {
  --hot-field-required-bg: #edf4fc;
  --hot-field-required-border: #527aa8;
  --hot-field-required-label: #244466;

  --hot-field-optional-bg: #f7f8fa;
  --hot-field-optional-border: #aab5c1;
  --hot-field-optional-label: #566574;
}

/* Labels : CakePHP ajoute habituellement .required au conteneur. */
form .input.required > label,
form .select.required > label,
form .textarea.required > label,
form .required > label {
  color: var(--hot-field-required-label) !important;
  font-weight: 700 !important;
}

form .input:not(.required) > label,
form .select:not(.required) > label,
form .textarea:not(.required) > label {
  color: var(--hot-field-optional-label);
  font-weight: 500;
}

/* Champs obligatoires. */
form input.form-control[required],
form textarea.form-control[required],
form select.form-select[required],
form select.form-control[required],
form .input.required > input:not([type="checkbox"]):not([type="radio"]),
form .input.required > textarea,
form .select.required > select,
form .textarea.required > textarea {
  background-color: var(--hot-field-required-bg) !important;
  border-color: var(--hot-field-required-border) !important;
  border-width: 1.5px;
}

/* Champs facultatifs. */
form input.form-control:not([required]):not([type="checkbox"]):not([type="radio"]),
form textarea.form-control:not([required]),
form select.form-select:not([required]),
form select.form-control:not([required]) {
  background-color: var(--hot-field-optional-bg);
  border-color: var(--hot-field-optional-border);
}

/* Checkbox/radio obligatoires : contour plus visible. */
form input[type="checkbox"][required],
form input[type="radio"][required],
form .required input[type="checkbox"],
form .required input[type="radio"] {
  border-color: var(--hot-field-required-border) !important;
  border-width: 2px;
}

/* Focus : même comportement pour tous, très lisible. */
form .form-control:focus,
form .form-select:focus,
form input:not([type="checkbox"]):not([type="radio"]):focus,
form textarea:focus,
form select:focus {
  background-color: #ffffff !important;
  border-color: var(--hot-blue-deep, #39557a) !important;
  box-shadow: 0 0 0 .22rem rgba(57, 85, 122, .22) !important;
}

/* Checkbox/radio : ne jamais masquer l'état coché au focus. */
form input[type="checkbox"]:checked,
form input[type="radio"]:checked,
form .form-check-input:checked {
  background-color: var(--hot-blue-deep, #39557a) !important;
  border-color: var(--hot-blue-deep, #39557a) !important;
}

form input[type="checkbox"]:focus,
form input[type="radio"]:focus,
form .form-check-input:focus {
  background-color: initial;
  border-color: var(--hot-blue-deep, #39557a) !important;
  box-shadow: 0 0 0 .20rem rgba(57, 85, 122, .22) !important;
}

form input[type="checkbox"]:checked:focus,
form input[type="radio"]:checked:focus,
form .form-check-input:checked:focus {
  background-color: var(--hot-blue-deep, #39557a) !important;
}

/* Les états de validation doivent toujours passer devant le code couleur. */
form .form-control.is-invalid,
form .form-select.is-invalid,
form input.is-invalid,
form textarea.is-invalid,
form select.is-invalid {
  background-color: #fff5f6 !important;
  border-color: #a62d38 !important;
}

form .form-control.is-valid,
form .form-select.is-valid,
form input.is-valid,
form textarea.is-valid,
form select.is-valid {
  background-color: #f3fbf5 !important;
  border-color: #2f7044 !important;
}

/* Indication textuelle discrète pour les champs facultatifs.
 * On ne rajoute PAS automatiquement d'astérisque afin d'éviter
 * les doublons avec les templates qui en affichent déjà un.
 */
form .input:not(.required) > label::after,
form .select:not(.required) > label::after,
form .textarea:not(.required) > label::after {
  content: " — facultatif";
  color: #687785;
  font-size: .78em;
  font-weight: 400;
}

/* Ne jamais annoter les labels de checkbox/radio de cette manière. */
form .checkbox > label::after,
form .radio > label::after,
form .form-check > label::after {
  content: none !important;
}

/* Mobile : contraste conservé sans alourdir le formulaire. */
@media (max-width: 575.98px) {
  form input.form-control[required],
  form textarea.form-control[required],
  form select.form-select[required],
  form select.form-control[required] {
    border-width: 2px;
  }

  form .input:not(.required) > label::after,
  form .select:not(.required) > label::after,
  form .textarea:not(.required) > label::after {
    font-size: .74em;
  }
}

/* === PATCH FORM REQUIRED OPTIONAL END === */

/* === EVENT STATUS COMPONENT V123K START === */

/*
 * Composant commun des états Event.
 *
 * Deux rendus utilisent la même palette sémantique :
 * - .event-status        : pastille publique ;
 * - .event-status-square : carré compact d'administration.
 *
 * Les variables permettent de conserver les nuances historiques d'un
 * contexte sans recopier les classes --success/--warning/etc.
 */
.event-status,
.event-status-square {
    --event-status-secondary: #b8bdc4;
    --event-status-primary: #0d6efd;
    --event-status-success: #198754;
    --event-status-warning: #ffc107;
    --event-status-danger: #dc3545;
    --event-status-neutral: #adb5bd;
}

.event-status-square {
    display: inline-block;
    flex: 0 0 13px;
    width: 13px;
    height: 15px;
    border-radius: 2px;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}

.event-status--secondary {
    background: var(--event-status-secondary);
}

.event-status--primary {
    background: var(--event-status-primary);
}

.event-status--success {
    background: var(--event-status-success);
}

.event-status--warning {
    background: var(--event-status-warning);
}

.event-status--danger {
    background: var(--event-status-danger);
}

.event-status--neutral {
    background: var(--event-status-neutral);
}

/* === EVENT STATUS COMPONENT V123K END === */


/* === GLOBAL PAGINATION V22 START === */

/*
 * Pagination globale CakePHP.
 *
 * Aspect inspiré du modèle fourni :
 *
 *   ««   «   1   2   3   4   5   »   »»
 *
 * - éléments accolés ;
 * - contour continu gris clair ;
 * - page courante bleue ;
 * - navigation inactive grisée ;
 * - arrondi uniquement aux extrémités.
 *
 * Ce CSS s'applique aux <ul class="pagination"> de CakePHP,
 * quelle que soit la page du site.
 */

nav:has(> ul.pagination),
.pagination-container,
.paginator {
    width: 100%;
}

ul.pagination,
.pagination {
    --pagination-min-width: 2.65rem;
    --pagination-height: 3rem;
    --pagination-padding: 0 .45rem;
    --pagination-font-size: 1.05rem;
    --pagination-link-color: #4169e1;
    --pagination-active-bg: #4b70e8;
    --pagination-active-color: #fff;
    --pagination-border-color: #d8dee7;
    --pagination-disabled-color: #555f69;
    --pagination-disabled-bg: #e9edf1;

    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin: 1.4rem auto .75rem;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0 !important;
    border: 1px solid var(--pagination-border-color);
    border-radius: .75rem;
    background: #fff;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

ul.pagination > li,
.pagination > li {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none;
}

/*
 * CakePHP peut produire soit un <a>, soit un <span>
 * selon l'état courant / désactivé.
 */
ul.pagination > li > a,
ul.pagination > li > span,
.pagination > li > a,
.pagination > li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: var(--pagination-min-width);
    height: var(--pagination-height);
    margin: 0 !important;
    padding: var(--pagination-padding);
    color: var(--pagination-link-color);
    background: #fff;
    border: 0 !important;
    border-left: 1px solid var(--pagination-border-color) !important;
    border-radius: 0 !important;
    font-family: inherit;
    font-size: var(--pagination-font-size);
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    transition:
        color .14s ease,
        background-color .14s ease;
}

/*
 * Pas de double bordure au début :
 * le contour extérieur est porté par le <ul>.
 */
ul.pagination > li:first-child > a,
ul.pagination > li:first-child > span,
.pagination > li:first-child > a,
.pagination > li:first-child > span {
    border-left: 0 !important;
}

/*
 * Page courante.
 *
 * CakePHP 5 peut utiliser li.active ou li.current selon le template.
 */
ul.pagination > li.active > a,
ul.pagination > li.active > span,
ul.pagination > li.current > a,
ul.pagination > li.current > span,
.pagination > li.active > a,
.pagination > li.active > span,
.pagination > li.current > a,
.pagination > li.current > span {
    color: var(--pagination-active-color) !important;
    background: var(--pagination-active-bg) !important;
    font-weight: 500;
    cursor: default;
}

/*
 * Survol d'une page cliquable.
 */
ul.pagination > li:not(.active):not(.current):not(.disabled) > a:hover,
ul.pagination > li:not(.active):not(.current):not(.disabled) > a:focus-visible,
.pagination > li:not(.active):not(.current):not(.disabled) > a:hover,
.pagination > li:not(.active):not(.current):not(.disabled) > a:focus-visible {
    color: #264fcf;
    background: #f4f7ff;
    outline: none;
}

/*
 * Premier / précédent / suivant / dernier désactivés.
 */
ul.pagination > li.disabled > a,
ul.pagination > li.disabled > span,
.pagination > li.disabled > a,
.pagination > li.disabled > span {
    color: var(--pagination-disabled-color) !important;
    background: var(--pagination-disabled-bg) !important;
    cursor: default;
    pointer-events: none;
}

/*
 * Certains templates CakePHP utilisent un texte non cliquable sans
 * classe disabled mais avec aria-disabled.
 */
ul.pagination > li > [aria-disabled="true"],
.pagination > li > [aria-disabled="true"] {
    color: var(--pagination-disabled-color) !important;
    background: var(--pagination-disabled-bg) !important;
    cursor: default;
    pointer-events: none;
}

/*
 * Les boutons de navigation peuvent être un peu plus sobres.
 */
ul.pagination > li:first-child > a,
ul.pagination > li:first-child > span,
ul.pagination > li:nth-child(2) > a,
ul.pagination > li:nth-child(2) > span,
ul.pagination > li:nth-last-child(2) > a,
ul.pagination > li:nth-last-child(2) > span,
ul.pagination > li:last-child > a,
ul.pagination > li:last-child > span,
.pagination > li:first-child > a,
.pagination > li:first-child > span,
.pagination > li:nth-child(2) > a,
.pagination > li:nth-child(2) > span,
.pagination > li:nth-last-child(2) > a,
.pagination > li:nth-last-child(2) > span,
.pagination > li:last-child > a,
.pagination > li:last-child > span {
    font-weight: 500;
}

/*
 * Compteur CakePHP éventuel sous la pagination.
 */
.paginator p,
.pagination-counter,
.events-pagination__counter {
    margin: .55rem auto 0;
    color: #6f7781;
    font-size: .86rem;
    text-align: center;
}

/*
 * Petit écran :
 * mêmes proportions visuelles, avec défilement horizontal si beaucoup
 * de pages. La pagination reste sur une seule ligne.
 */
@media (max-width: 640px) {
    ul.pagination,
    .pagination {
        justify-content: flex-start;
        max-width: 100%;
        margin-inline: auto;
        border-radius: .65rem;
    }

    ul.pagination,
    .pagination {
        --pagination-min-width: 2.4rem;
        --pagination-height: 2.75rem;
        --pagination-padding: 0 .35rem;
        --pagination-font-size: 1rem;
    }
}

/* === GLOBAL PAGINATION V22 END === */

/* v134 — Grille Admin/Formulaires. Les en-têtes inclinés libèrent de la place
   pour l'intitulé tout en conservant toutes les options visibles. */
.admin-formulaires-grid-wrap {
    overflow-x: auto;
    padding-top: 2.75rem;
}
.admin-formulaires-grid { min-width: 1450px; }
.admin-formulaires-grid .admin-formulaires-public-col { min-width: 150px; }
.admin-formulaires-grid .admin-formulaires-title-col { min-width: 260px; }
.admin-formulaires-grid .admin-formulaires-couples-head { min-width: 100px; }
.admin-formulaires-grid .admin-formulaires-option-head {
    width: 54px;
    min-width: 54px;
    height: 90px;
    padding: 0;
    vertical-align: bottom;
    white-space: nowrap;
    position: relative;
}
.admin-formulaires-grid .admin-formulaires-option-head > span {
    display: inline-block;
    transform: translate(9px, -4px) rotate(-45deg);
    transform-origin: left bottom;
    font-size: .78rem;
}
.admin-formulaires-grid .admin-formulaires-option-cell {
    min-width: 54px;
    padding-left: .2rem;
    padding-right: .2rem;
}
.admin-formulaires-grid .admin-formulaires-option-cell .btn,
.admin-formulaires-grid .admin-formulaires-option-cell .badge {
    min-width: 42px;
    font-size: .72rem;
}
.admin-formulaires-title-cell { max-width: 420px; }

/* v134d — rétablit les en-têtes Formulaires inclinés à 45° avec tri serveur. */
.admin-formulaires-grid .admin-formulaires-option-head > a {
    display: inline-block !important;
    transform: translate(9px, -4px) rotate(-45deg);
    transform-origin: left bottom;
    font-size: .78rem;
    white-space: nowrap;
}


/* v190 — signalement centralisé des adresses courriel invalides. */
.email-value {
    display: inline-flex;
    align-items: baseline;
    gap: .28rem;
    flex-wrap: wrap;
    max-width: 100%;
}
.email-value--invalid {
    color: #a65000;
    font-weight: 600;
}
.email-value--invalid .email-value__address {
    text-decoration: underline dotted;
    text-underline-offset: .16em;
}
.email-value__warning {
    font-size: 1em;
    line-height: 1;
}
.email-value__message {
    color: #8a4b08;
    font-weight: 600;
    white-space: nowrap;
}
.email-value a {
    overflow-wrap: anywhere;
}
.email-value__address {
    overflow-wrap: anywhere;
}

/* === BRAND RESPONSIVE SJM START ===
 * Public :
 * - XS (<576px) : logo seul, sans texte Hôtellerie.
 * - SM et +      : libellé unique « Hôtellerie SJM ».
 *
 * Admin :
 * - XS (<576px) : « Administration » reste visible, le libellé Hôtellerie est masqué.
 * - SM et +      : « Hôtellerie SJM » est affiché sous « Administration ».
 *
 * L'override Admin est volontaire : la règle historique
 * `.brand-copy small { display:none; }` à <=1199px masquait tous les sous-titres.
 */
@media (min-width: 576px) {
  .admin-site-navbar .brand-copy small.brand-site-label {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .brand-site-label {
    display: none !important;
  }
}
/* === BRAND RESPONSIVE SJM END === */

