* {
  box-sizing: border-box;
}
:root {
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bg:#f1efe9;                
  --card:#fbfaf7;               
  --text:#202225;               
  --titleText:#121417;          
  --muted:#66707f;            
  --line: rgba(18,20,23,.08);   
  --accent:#2f8a73;            
  --accentBg:#e6f3ee;           
  --danger: #c33;
  --dangerStrong: #d11;
  --base: 14px;
  --title: 1.1rem;
  --subtitle: 1rem;
  --body: 0.95rem;
  --headerH: 56px;
  --edgePad: 10px;
  --focusRing: color-mix(in srgb, var(--accent) 28%, transparent 72%);
  --pagePad:14px;
  --radius:16px;
  --shadow1:0 1px 0 rgba(0,0,0,0.04);
  --shadow2:0 10px 22px rgba(0,0,0,0.08);
  --shadow3:0 18px 40px rgba(0,0,0,0.10);
  --smooth:160ms ease;
}
body.dark {
  --bg: #0f141b;
  --card: #141b24;
  --text: #e6e6e6;
  --titleText: #fff;
  --muted: #a7b1c2;
  --line: rgba(230, 230, 230, 0.14);
  --accent: #5fa595;
  --accentBg: #0f1f1b;
  --focusRing: color-mix(in srgb, var(--accent) 30%, transparent 70%);
}
html, body {
  width: 100%;
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0px;
  padding-top: calc(var(--headerH) + 16px);
  font-family: var(--font);
  font-size: var(--base);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;  
}
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--headerH);
  background: var(--card);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}
.headerInner {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0 var(--edgePad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.headerLeft {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.headerRight {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.logoLink {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: none;
  padding: 0;
  background: transparent;
}
.logoLink:hover {
  border: none;
  background: transparent;
}
.logoLink:focus-visible {
  outline: 2px solid var(--focusRing);
  outline-offset: 2px;
}
.logo {
  height: 32px;
  width: auto;
  display: block;
}
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.dropdownTrigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: var(--body);
  color: var(--text);
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 10%, var(--card) 90%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line) 70%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  height: 36px;
}
.dropdownTrigger:hover {
  background: color-mix(in srgb, var(--accent) 14%, var(--card) 86%);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line) 60%);
}
.dropdownTrigger:focus-visible {
  outline: 2px solid var(--focusRing);
  outline-offset: 2px;
}
.dropdown.open .dropdownTrigger {
  background: color-mix(in srgb, var(--accent) 18%, var(--card) 82%);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line) 45%);
}
.dropdownTrigger svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dropdownMenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 2000;
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent 45%)
  color-mix(in srgb, var(--card) 90%, transparent 10%);
}
.dropdown.open .dropdownMenu {
  display: block;
}
.dropdownMenu::-webkit-scrollbar {
  width: 10px;
}
.dropdownMenu::-webkit-scrollbar-button {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
.dropdownMenu::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--card) 90%, transparent 10%);
  border-radius: 999px;
}
.dropdownMenu::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted) 55%, transparent 45%);
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--card) 90%, transparent 10%);
}
.dropdownMenu::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--muted) 70%, transparent 30%);
}
.dropdownMenu li {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: var(--body);
  color: var(--text);
  margin: 0 6px;
}
.dropdownMenu li[role="option"] {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdownMenu li[role="option"]:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent 88%);
}
.dropdownMenu li.active {
  background: color-mix(in srgb, var(--accent) 18%, transparent 82%);
}
.dropdownMenu li.matched {
  background: color-mix(in srgb, var(--accent) 22%, transparent 78%);
}
.dropdownMenu li.active .disciplineText, .dropdownMenu li.matched .disciplineText {
  font-weight: 600;
}
.disciplineDisplay {
  display: flex;
  align-items: center;
  gap: 6px;
}
.disciplineText {
  font-weight: 400;
}
.disciplineIcon {
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--text);
  flex: 0 0 auto;
}
.dropdownTrigger .disciplineIcon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}
#disciplineIcon, #disciplineIcon svg, .disciplineIcon svg {
  font-weight: 400 !important;
  stroke-width: 1 !important;
}
.searchRow {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0;
  margin: 0;
  cursor: default;
  background: var(--card);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.dropdownMenu li.searchRow {
  margin: 0 !important;
  border-radius: 12px 12px 0 0;
}
#disciplineSearch {
  width: 100%;
  display: block;
  margin: 0;
  padding: 10px 10px;
  border-radius: 0 !important;
  border: none !important;
  background: var(--card) !important;
  color: var(--text);
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: text;
}
#disciplineSearch:hover, #disciplineSearch:focus, #disciplineSearch:focus-visible, #disciplineSearch:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}
#disciplineSearch::-webkit-search-decoration, #disciplineSearch::-webkit-search-cancel-button, #disciplineSearch::-webkit-search-results-button, #disciplineSearch::-webkit-search-results-decoration {
  -webkit-appearance: none;
}
.headerNav {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  min-width: 0;
}
.headerLink {
  color: var(--text);
  text-decoration: none;
  font-size: var(--body);
  padding: 6px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.headerLink:hover {
  background: color-mix(in srgb, var(--card) 75%, transparent 25%);
  text-decoration: underline;
}
.headerLink:focus-visible {
  outline: 2px solid var(--focusRing);
  outline-offset: 2px;
}
.headerNav .headerLink.active {
  text-decoration: underline;
}
.navIcon {
  width: 16px;
  height: 16px;
  display: block;
}
.navDivider {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 8px;
}
.toggleWrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.switch {
  position: relative;
  width: 52px;
  height: 28px;
}
.switch input {
  display: none;
}
.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.14);
  border: 1px solid var(--line);
  transition: 0.2s;
}
body.dark .slider {
  background: rgba(230, 230, 230, 0.14);
}
.slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: 0.2s;
}
.switch input:checked + .slider {
  background: color-mix(in srgb, var(--accent) 85%, transparent 15%);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line) 30%);
}
.switch input:checked + .slider:before {
  transform: translate(24px, -50%);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line) 30%);
}
.pageHeader {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.pageTitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--titleText);
}
.pageMeta {
  font-size: 1.1rem;
  color: var(--text);
}
.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,360px);
  gap:14px;
  align-items:stretch;
}
.leftCol,
.sidePanels{
  min-width:0;
}

.leftCol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.sidePanels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-width: 0;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
  overflow: hidden;
  border:1px solid color-mix(in srgb, var(--line) 85%, transparent 15%);
  border-radius:var(--radius);
  box-shadow:var(--shadow1);
  transition:transform var(--smooth), box-shadow var(--smooth), border-color var(--smooth);
}
.panel h2 {
  margin: 0 0 8px 0;
  font-size: var(--title);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--titleText);
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel h3 {
  margin: 0 0 6px 0;
  font-size: var(--subtitle);
  font-weight: 600;
  color: var(--accent);
}
.sectionTitle {
  margin-top: 12px !important;
}
.panel p, .panel li {
  margin: 4px 0;
  line-height: 1.3;
  font-size: var(--body);
  color: var(--text);
}
.panel ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
  min-width: 0;
}
.cadre {
  border: 1px solid var(--accent);
  background: linear-gradient(0deg, var(--accentBg), var(--card));
}
.panel.cadre.redAlert {
  border-color: var(--danger);
  background: linear-gradient(
  0deg,
  color-mix(in srgb, var(--danger) 12%, var(--card)),
  var(--card)
  );
}
.panel.cadre.redAlert h2 {
  color: var(--danger);
}
.panelIcon {
  width: 18px;
  height: 18px;
}
.noteDanger, .noteDanger * {
  color: var(--dangerStrong) !important;
  font-weight: 700 !important;
}
.checkList li {
  margin: 6px 0;
}
.panelTopRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.hintPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line) 45%);
  background: color-mix(in srgb, var(--accent) 8%, transparent 92%);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}
.hintIcon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.docList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.docCard {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 92%, transparent 8%);
  overflow: hidden;
}
.docSummary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  user-select: none;
}
.docSummary::-webkit-details-marker {
  display: none;
}
.docCard:hover .docSummary {
  background: color-mix(in srgb, var(--accent) 10%, transparent 90%);
}
.docCard[open] .docSummary {
  background: color-mix(in srgb, var(--accent) 14%, transparent 86%);
}
.docRow {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 92%, transparent 8%);
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.docName {
  font-weight: 600;
}
.docChevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 80%, transparent 20%);
  margin-left: 6px;
}
.docChevron .iconify {
  width: 18px;
  height: 18px;
}
.docCard[open] .docChevron .iconify {
  transform: rotate(180deg);
}
.docBody {
  padding: 0 10px 10px 10px;
}
.docNote {
  margin-top: 6px;
  color: var(--text);
}
.medGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.medGrid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.medGrid > div {
  min-width: 0;
}
.medGrid > div:not(:first-child){
  border-left:none;
  position:relative;
  padding-left:22px;
}

.medGrid > div:not(:first-child)::before{
  content:"";
  position:absolute;
  left:0px;      /* position de la ligne */
  top:0;
  bottom:0;
  width:1px;
  background:var(--line);
  pointer-events:none;
}
.medGrid > div:first-child{
  padding-right:12px;
}

.infoBlock {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.infoBlock:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.infoTitle {
  font-weight: 700;
  color: var(--titleText);
  margin-bottom: 6px;
}
.infoContent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 10%, transparent 90%);
  font-weight: 600;
}
.burgerBtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 14%, var(--card) 86%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.burgerBtn:hover {
  background: color-mix(in srgb, var(--accent) 20%, var(--card) 80%);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line) 55%);
}
.burgerBtn:focus-visible {
  outline: 2px solid var(--focusRing);
  outline-offset: 2px;
}
.burgerIcon {
  width: 24px;
  height: 24px;
  display: block;
  color: var(--titleText);
}
body.dark .burgerBtn {
  background: color-mix(in srgb, var(--accent) 18%, var(--card) 82%);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line) 55%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
body.dark .burgerBtn:hover {
  background: color-mix(in srgb, var(--accent) 26%, var(--card) 74%);
}
body.dark .burgerIcon {
  color: var(--titleText);
}
.burgerBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2500;
}
.burgerPanel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(360px, 92vw);
  background: var(--card);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 2600;
  display: flex;
  flex-direction: column;
}
.burgerPanel.open {
  transform: translateX(0);
}
.burgerPanelTop {
  height: var(--headerH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.burgerTitle {
  font-weight: 700;
  color: var(--titleText);
}
.burgerClose {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 12%, var(--card) 88%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.burgerClose .iconify {
  width: 22px;
  height: 22px;
  color: var(--titleText);
}
.burgerClose:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--card) 82%);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line) 55%);
}
body.dark .burgerClose {
  background: color-mix(in srgb, var(--accent) 18%, var(--card) 82%);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line) 55%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
body.dark .burgerClose:hover {
  background: color-mix(in srgb, var(--accent) 26%, var(--card) 74%);
}
body.dark .burgerClose .iconify {
  color: var(--titleText);
}
.burgerNav {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}
.burgerLink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: color-mix(in srgb, var(--card) 92%, transparent 8%);
}
.burgerLink:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent 90%);
}
.burgerLink.active {
  text-decoration: none !important;
  background: color-mix(in srgb, var(--accent) 18%, transparent 82%) !important;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line) 60%) !important;
}
.burgerPanelBottom {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.burgerToggleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.burgerToggleLabel {
  color: var(--text);
  font-size: var(--body);
}
@media (max-width: 1100px) {
.headerNav, .headerRight {
  display: none;
}
.burgerBtn {
  display: inline-flex;
}
}
@media (max-width: 1000px) {
.layout {
  grid-template-columns: 1fr;
}
.headerInner {
  height: auto;
  padding: 10px var(--edgePad);
  flex-wrap: wrap;
}
.header {
  height: auto;
}
body {
  padding-top: 100px;
}
.headerLeft {
  gap: 14px;
}
.headerRight {
  width: 100%;
  justify-content: flex-end;
}
.medGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.medGrid > div {
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
}
.medGrid > div:not(:first-child) {
  border-left: none;
}
.hintPill {
  white-space: normal;
}
}
@media (max-width: 600px) {
:root {
  --headerH: 72px;
}
.medGrid {
  grid-template-columns: 1fr;
}
.panelTopRow {
  flex-direction: column;
  align-items: stretch;
}
}
.docFlag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 10%, transparent 90%);
  margin-left: auto;
}
.docFlag .iconify {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
body.dark .docFlag {
  background: color-mix(in srgb, var(--accent) 14%, transparent 86%);
}
body.dark .docFlag .iconify {
  color: var(--muted);
}
.docFlag.danger, body.dark .docFlag.danger {
  background: color-mix(in srgb, var(--accent) 10%, transparent 90%);
  border-color: var(--line);
}
.docFlag.danger .iconify, body.dark .docFlag.danger .iconify {
  color: var(--danger);
}
.docCard.static .docSummary.static {
  cursor: default;
}
.docCard.static:hover .docSummary.static {
  background: transparent;
}
.badgeNP {
  font-size: 0.75rem;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  line-height: 1;
  vertical-align: middle;
}
.badgeNP.ok {
  background: rgba(0, 160, 90, 0.15);
  border: 1px solid rgba(0, 160, 90, 0.5);
  color: #0a7a4a;
}
.badgeNP.cond {
  background: rgba(255, 150, 0, 0.18);
  border: 1px solid rgba(255, 150, 0, 0.6);
  color: #b36b00;
}
.badgeNP.no {
  background: rgba(200, 0, 0, 0.15);
  border: 1px solid rgba(200, 0, 0, 0.5);
  color: #b00000;
}
.ophtPage .docSummary {
  justify-content: flex-start;
}
.ophtPage .docRight, .docRight {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.srOnly {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
main.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 12px;
  padding-bottom: 90px;
}
.stickyWrap {
  position: sticky;
  top: calc(var(--headerH) - 0.5px);
  z-index: 950;
  isolation: isolate;
  margin-top: -16px;
}
.stickyWrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--bg);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}
body.dark .stickyWrap::before {
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}
.stickyInner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px var(--edgePad) 14px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pageHead .pageTitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  padding-top: 0;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--titleText);
  width: 100%;
}
.pageHead .pageTitle .iconify {
  width: 28px;
  height: 28px;
}
.pageSearch {
  width: min(820px, 100%);
  margin: 0;
}
.pageSearch input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: var(--body);
  outline: none;
}
#globalSearch:focus, #globalSearch:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--line) !important;
}
.pageSearch input::placeholder {
  color: var(--muted);
}
main.page .section {
  margin: 18px 0 26px;
}
main.page .sectionTitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--titleText);
}
main.page .sectionTitle .iconify {
  width: 20px;
  height: 20px;
}
.cardsGrid, .tablesGrid {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.cardsGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tablesGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#services-internes .tablesGrid, .tablesGrid--single {
  grid-template-columns: 1fr !important;
}
.numCard {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}
.numCardHead {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 14%, var(--card) 86%);
}
.numCardHead h3 {
  margin: 0;
  color: var(--titleText);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}
.numList {
  list-style: none;
  margin: 0;
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
}
.numList li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  line-height: 1.25rem;
}
.numList li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.numList strong {
  color: var(--titleText);
}
.muted {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95em;
}
.tableCard {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}
.tableHead {
  display: grid;
  grid-template-columns: 1fr 180px;
  border-bottom: 1px solid var(--line);
}
.tableHead.wide {
  grid-template-columns: 1fr 180px;
}
.tableHead > div {
  padding: 10px 12px;
  font-weight: 900;
  color: var(--titleText);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 14%, var(--card) 86%);
}
.thNum {
  text-align: center;
}
.tableBody {
  display: grid;
}
.tr {
  display: grid;
  grid-template-columns: 1fr 180px;
  border-bottom: 1px solid var(--line);
}
.tr:last-child {
  border-bottom: none;
}
.td {
  padding: 10px 12px;
  color: var(--text);
  font-weight: 700;
}
.td.num {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  color: var(--titleText);
  border-left: 1px solid var(--line);
}
.pageFooter {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}
.backTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease,
  transform 0.18s ease,
  background 0.18s ease,
  border-color 0.18s ease;
}
.backTop:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent 90%);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line) 65%);
}
.backTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (max-width: 920px) {
.cardsGrid, .tablesGrid {
  grid-template-columns: 1fr;
}
}
@media (max-width: 520px) {
.pageHead .pageTitle {
  font-size: 1.5rem;
}
.tableHead, .tr {
  grid-template-columns: 1fr 140px;
}
}
body.homeGate {
  padding-top: calc(var(--headerH) + 16px);
  overflow: hidden;
}
body.homeGate main, body.homeGate .header {
  user-select: none;
  -webkit-user-select: none;
}
body.homeGate .logoLink {
  pointer-events: none;
  opacity: 0.95;
  cursor: default;
}
.gatePage {
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--headerH) - 32px);
}
.gateCard {
  width: min(520px, 100%);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: gateIn 0.35s ease both;
}
@keyframes gateIn {
from {
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  filter: blur(2px);
}
to {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
}
.gateTop {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 12px 10px;
}
.gateLogo {
  width: 150px;
  height: auto;
  display: block;
}
.gateTitle {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--titleText);
  letter-spacing: 0.2px;
}
.gateText {
  font-size: var(--body);
  color: var(--text);
  text-align: center;
  line-height: 1.35;
  max-width: 38ch;
}
.gateForm {
  padding: 12px 12px 16px;
  display: grid;
  gap: 10px;
}
.gateForm input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 1rem;
  outline: none;
}
.gateForm input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line) 45%);
  outline: 2px solid var(--focusRing);
  outline-offset: 2px;
}
.gateBtn {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line) 65%);
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 18%, var(--card) 82%);
  color: var(--titleText);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease,
  background 0.18s ease,
  border-color 0.18s ease;
}
.gateBtn:hover {
  background: color-mix(in srgb, var(--accent) 26%, var(--card) 74%);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line) 52%);
}
.gateBtn:active {
  transform: translateY(1px);
}
.gateError {
  display: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line) 65%);
  background: color-mix(in srgb, var(--danger) 12%, var(--card));
  color: var(--dangerStrong);
}
@keyframes shakeX {
0%, 100% {
  transform: translateX(0);
}
20% {
  transform: translateX(-6px);
}
40% {
  transform: translateX(6px);
}
60% {
  transform: translateX(-4px);
}
80% {
  transform: translateX(4px);
}
}
.gateCard.isError {
  animation: shakeX 0.28s ease;
}
.loadingCard {
  animation: loadingIn 0.28s ease both;
}
@keyframes loadingIn {
from {
  opacity: 0;
  transform: translateY(8px);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}
.loadingTop {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 12px 10px;
}
.loadingTitle {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--titleText);
  text-align: center;
}
.loadingSub {
  font-size: var(--body);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}
.loadingBody {
  padding: 12px 12px 16px;
  display: grid;
  gap: 14px;
}
.loadingBarWrap {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 85%, transparent 15%);
  overflow: hidden;
}
.loadingBar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 75%, transparent 25%);
  transition: width 0.18s ease;
}
.loadingMeta {
  display: grid;
  gap: 10px;
}
.loadingLine {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  font-size: 0.95rem;
}
.loadingLine .iconify {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: 0 0 auto;
}
.loadingDone {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 10%, transparent 90%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.18s ease,
  transform 0.18s ease;
}
.loadingDone.show {
  opacity: 1;
  transform: scale(1);
}
.loadingDone .iconify {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.loadingHint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line) 45%);
  background: color-mix(in srgb, var(--accent) 8%, transparent 92%);
  color: var(--text);
  font-weight: 800;
}
.loadingHint .iconify {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
@media (max-width: 520px) {
.gateLogo {
  width: 135px;
}
.gateTitle {
  font-size: 1.15rem;
}
.loadingTitle {
  font-size: 1.05rem;
}
}
@keyframes sarahPulse {
0%, 100% {
  transform: scale(1);
}
50% {
  transform: scale(1.06);
}
}
body.homeGate #pwd:focus, body.homeGate #pwd:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--line) !important;
}
.loadingCard.fadeOut {
  animation: loadingFadeOut 1.4s ease forwards;
}
@keyframes loadingFadeOut {
to {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(3px);
}
}
.cinemaOverlay.on {
  opacity: 1;
}
.cinemaIn.off {
  opacity: 0;
}
@keyframes pageFadeInCinema {
from {
  opacity: 0;
  transform: translateY(7px);
  filter: blur(1.5px);
}
to {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
}
body.pageFadeIn {
  animation: pageFadeInCinema 0.9s ease both;
}
.tableHead.consult4, .tr.consult4 {
  grid-template-columns: 1.6fr 0.9fr 180px 1fr !important;
}
.tr.consult4 .td:not(:first-child) {
  border-left: 1px solid var(--line);
}
.tr.consult4 .td.info {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
}
.tableDivider {
  height: 4px;
  background: color-mix(in srgb, var(--titleText) 65%, transparent 35%);
  opacity: 0.35;
}
.consultGroup {
  display: grid !important;
  grid-template-columns: 1.6fr 0.9fr 180px 1fr !important;
  grid-auto-rows: auto;
  border-bottom: 1px solid var(--line);
}
.consultGroup .cgCell {
  padding: 12px;
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  border-bottom: 1px solid var(--line);
}
.consultGroup .cgCell.service {
  grid-column: 1;
}
.consultGroup .cgCell.route {
  grid-column: 2;
  flex-direction: column !important;
  line-height: 1.25;
  font-weight: 900;
  color: var(--titleText);
  border-left: 1px solid var(--line);
}
.consultGroup .cgCell.num {
  grid-column: 3;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  color: var(--titleText);
  border-left: 1px solid var(--line);
}
.consultGroup .r1 {
  grid-row: 1;
}
.consultGroup .r2 {
  grid-row: 2;
}
.consultGroup .r3 {
  grid-row: 3;
}
.consultGroup .r4 {
  grid-row: 4;
}
.consultGroup .cgCell.last {
  border-bottom: none;
}
.consultGroup .cgCell br, .consultGroup .cgInfo br {
  display: none;
}
.consultGroup .cgInfo {
  grid-column: 4;
  grid-row: 1 / span var(--rows);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  color: var(--text);
  border-left: 1px solid var(--line);
}
body.consultPage .tableHead > div, body.consultPage .tr > .td, body.consultPage .cgCell, body.consultPage .cgInfo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
body.consultPage .cgCell.route {
  flex-direction: column !important;
}
body.consultPage .tableHead {
  text-align: center !important;
}
.tr.consult4 {
  grid-template-columns: 1.6fr 0.9fr 180px 1fr !important;
}
.tr.consult4 .td {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  font-weight: 700;
}
.tr.consult4 .td.route {
  flex-direction: column;
  line-height: 1.25;
  font-weight: 900;
  color: var(--titleText);
}
.tr.consult4 .td.num {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  color: var(--titleText);
}
.tr.consult4 .td.info {
  font-weight: 800;
}
.td.info {
  position: relative;
}
.summaryGrid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}
.summaryGrid.small {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
@media (max-width:900px) {
.summaryGrid {
  grid-template-columns: repeat(2,1fr);
}
.summaryGrid.small {
  grid-template-columns: repeat(2,1fr);
}
}
@media (max-width:500px) {
.summaryGrid, .summaryGrid.small {
  grid-template-columns: 1fr;
}
}
.summaryTile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.summaryTile:hover {
  border-color: var(--accent);
}
.summaryTile .iconify {
  font-size: 18px;
  opacity: .9;
}
body.summaryPage main.page {
  display: flex;
  justify-content: center;
  padding: 18px var(--edgePad);
}
body.summaryPage .panel.cadre {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 18px;
}
body.summaryPage .h2Icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 10px;
}
body.summaryPage .h2Icon .iconify {
  font-size: 20px;
  opacity: 0.9;
}
body.summaryPage .panel.cadre hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 16px 0;
  opacity: 0.9;
}
body.summaryPage .summaryGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
body.summaryPage .summaryGrid.small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
body.summaryPage .summaryGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 760px) {
body.summaryPage .summaryGrid, body.summaryPage .summaryGrid.small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 460px) {
body.summaryPage .summaryGrid, body.summaryPage .summaryGrid.small {
  grid-template-columns: 1fr;
}
}
body.summaryPage .summaryTile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.1px;
  min-height: 56px;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
body.summaryPage .summaryTile .iconify {
  font-size: 20px;
  opacity: 0.92;
  flex: 0 0 auto;
}
body.summaryPage .summaryTile:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
body.summaryPage .summaryTile:active {
  transform: translateY(0px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}
body.summaryPage .summaryTile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focusRing), 0 6px 18px rgba(0,0,0,0.08);
}
body.summaryPage .summaryTile {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.summaryPage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.summaryPage main.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px var(--edgePad);
}
body.summaryPage .panel.cadre {
  width: 100%;
  max-width: 1120px;
}
body.summaryPage main.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px var(--edgePad);
}
body.summaryPage .panel.cadre {
  width: 100%;
  max-width: 1180px;
  padding: 18px 18px 20px;
}
body.summaryPage .h2Icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}
body.summaryPage .h2Icon .iconify {
  font-size: 22px;
  opacity: 0.9;
}
body.summaryPage .summaryHint {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}
body.summaryPage .summarySection {
  margin-top: 14px;
}
body.summaryPage .summarySectionTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-weight: 850;
  color: var(--titleText);
  font-size: 1.02rem;
}
body.summaryPage .summarySectionTitle .iconify {
  font-size: 20px;
  opacity: 0.85;
}
body.summaryPage .summaryGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 760px) {
body.summaryPage main.page {
  align-items: flex-start;
  padding-top: 14px;
}
body.summaryPage .summaryGrid, body.summaryPage .summaryGrid.small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
body.summaryPage .summaryTile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  min-height: 60px;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}
body.summaryPage .summaryTile .iconify {
  font-size: 21px;
  opacity: 0.92;
  flex: 0 0 auto;
}
body.summaryPage .summaryTile::after {
  content: "›";
  margin-left: auto;
  font-size: 22px;
  opacity: 0.55;
  transform: translateY(-1px);
}
body.summaryPage .summaryTile:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}
body.summaryPage .summaryTile:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
body.summaryPage .summaryTile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focusRing), 0 10px 22px rgba(0, 0, 0, 0.10);
}
body.summaryPage .summaryTile {
  overflow: hidden;
}
body.summaryPage .summaryTile span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.summaryPage .summaryDivider {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 16px 0;
  opacity: 0.9;
}
body.summaryPage .panel.cadre {
  max-width: 720px;
}
body.summaryPage .summaryGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
body.summaryPage .summaryGrid.small {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
body.summaryPage main.page {
  padding: 10px var(--edgePad);
}
body.summaryPage .panel.cadre {
  max-width: 720px;
  padding: 10px 12px 12px;
  max-height: calc(100vh - 110px);
  overflow: hidden;
}
body.summaryPage .h2Icon {
  margin-bottom: 2px;
}
body.summaryPage .summaryHint {
  margin-bottom: 6px;
  font-size: 0.85rem;
}
body.summaryPage .summaryGrid {
  gap: 8px;
  margin-top: 6px;
}
body.summaryPage .summaryGrid, body.summaryPage .summaryGrid.small {
  grid-template-columns: repeat(2, 1fr) !important;
}
body.summaryPage .summaryTile {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
}
body.summaryPage .summaryTile .iconify {
  font-size: 17px;
}
body.summaryPage .summarySection {
  margin-top: 8px;
}
body.summaryPage .summaryDivider {
  margin: 8px 0;
}
body.summaryPage .summaryTile:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
body.summaryPage {
  overflow: hidden;
}
.summaryMainTitle {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: .5px;
  color: var(--titleText);
}
body.summaryPage main.page {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.summaryMainTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.summaryMainTitle .iconify {
  font-size: 28px;
  opacity: .9;
}
.summaryTile {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
  transform 0.15s ease;
}
.summaryTile:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--card) 88%) !important;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.summaryTile:hover .iconify {
  color: var(--accent);
}
body.homeGate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1000px 600px at 20% 10%, rgba(59, 127, 107, 0.14), transparent 55%),
  radial-gradient(900px 500px at 80% 20%, rgba(220, 170, 83, 0.12), transparent 60%),
  linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0));
}
body.homeGate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.55) 1px, transparent 0);
  background-size: 18px 18px;
  mix-blend-mode: multiply;
}
body.homeGate .header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 70%, transparent 30%);
  border-bottom: 1px solid var(--line);
}
body.homeGate .gatePage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 26px;
}
body.homeGate .gateCard {
  width: min(520px, 100%);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.10);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent 25%);
  background: color-mix(in srgb, var(--card) 94%, #fff 6%);
}
body.homeGate .gateTop {
  text-align: center;
  padding: 6px 6px 12px;
}
body.homeGate .gateLogo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.10));
}
body.homeGate .gateTitle {
  margin-top: 10px;
  letter-spacing: 0.2px;
  font-size: 1.25rem;
  color: var(--titleText);
}
body.homeGate .gateText {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.98rem;
}
body.homeGate .gateForm {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  padding: 6px;
}
body.homeGate .gateForm input[type="text"], body.homeGate .gateForm input[type="password"] {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 30%, #fff 70%);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}
body.homeGate .gateForm input::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent 30%);
}
body.homeGate .gateForm input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, #fff 45%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accentBg) 75%, transparent 25%);
  transform: translateY(-1px);
}
body.homeGate .gateBtn {
  padding: 12px 12px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.2px;
  color: #fff;
  background: linear-gradient(
  180deg,
  color-mix(in srgb, var(--accent) 92%, #fff 8%),
  color-mix(in srgb, var(--accent) 80%, #000 20%)
  );
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
body.homeGate .gateBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.16);
  filter: brightness(1.02);
}
body.homeGate .gateBtn:active {
  transform: translateY(0px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}
body.homeGate .gateError {
  display: block;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(204, 51, 51, 0.25);
  background: rgba(204, 51, 51, 0.10);
  color: #8a1f1f;
  font-weight: 650;
}
body.homeGate #gateCard.isError {
  animation: gateShake 260ms ease-in-out;
}
@keyframes gateShake {
0% {
  transform: translateX(0);
}
25% {
  transform: translateX(-6px);
}
50% {
  transform: translateX(6px);
}
75% {
  transform: translateX(-4px);
}
100% {
  transform: translateX(0);
}
}
body.homeGate #loadingCard .loadingTitle {
  font-size: 1.15rem;
  color: var(--titleText);
  text-align: center;
}
body.homeGate #loadingCard .loadingSub {
  text-align: center;
  color: var(--muted);
  margin-top: 6px;
}
body.homeGate .loadingBarWrap {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 65%, transparent 35%);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent 25%);
}
body.homeGate .loadingBar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(
  90deg,
  color-mix(in srgb, var(--accent) 90%, #fff 10%),
  color-mix(in srgb, var(--accent) 65%, var(--danger) 35%)
  );
  transition: width 80ms linear;
}
body.homeGate .loadingLine {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
  background: color-mix(in srgb, var(--bg) 25%, #fff 75%);
}
body.homeGate .loadingLine .iconify {
  font-size: 1.15rem;
  opacity: 0.9;
}
body.homeGate .loadingDone.show {
  margin-left: auto;
  color: color-mix(in srgb, var(--accent) 70%, #000 30%);
}
body.homeGate::before {
  content: none !important;
}
body.homeGate {
  background: radial-gradient(900px 520px at 30% 10%, rgba(59, 127, 107, 0.10), transparent 60%),
  radial-gradient(900px 520px at 80% 20%, rgba(220, 170, 83, 0.08), transparent 62%),
  var(--bg) !important;
}
body.homeGate .gateError[hidden] {
  display: none !important;
}
body.homeGate .gateError {
  display: block;
}
body.homeGate .header {
  background: var(--bg) !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid var(--line);
}
body.homeGate .gateForm input[type="text"], body.homeGate .gateForm input[type="password"] {
  background: color-mix(in srgb, var(--card) 90%, #fff 10%) !important;
  border-color: color-mix(in srgb, var(--line) 85%, transparent 15%) !important;
}
body.homeGate {
  font-family: var(--font) !important;
}
body.homeGate .header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: var(--bg) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: none !important;
  z-index: 999 !important;
}
body.homeGate .gatePage {
  padding-top: calc(var(--headerH) + 18px) !important;
}
body.homeGate .gateForm input[type="text"], body.homeGate .gateForm input[type="password"] {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
body.homeGate .gateForm input[type="text"]:focus, body.homeGate .gateForm input[type="password"]:focus {
  border-color: color-mix(in srgb, var(--accent) 65%, #fff 35%) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accentBg) 70%, transparent 30%) !important;
  transform: translateY(-1px);
}
body.homeGate.dark {
  background: #0f141b !important;
}
body.homeGate.dark .header {
  background: #0f141b !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35) !important;
}
body.homeGate.dark .gateCard {
  background: #141b24 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45) !important;
}
body.homeGate.dark .gateTitle, body.homeGate.dark .loadingTitle {
  color: #ffffff !important;
}
body.homeGate.dark .gateText, body.homeGate.dark .loadingSub {
  color: rgba(255, 255, 255, 0.68) !important;
}
body.homeGate.dark .gateForm input[type="text"], body.homeGate.dark .gateForm input[type="password"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}
body.homeGate.dark .gateForm input::placeholder {
  color: rgba(255, 255, 255, 0.40) !important;
}
body.homeGate.dark .loadingLine {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.82) !important;
}
body.homeGate.dark .gateError {
  border: 1px solid rgba(255, 80, 80, 0.28) !important;
  background: rgba(255, 80, 80, 0.10) !important;
  color: rgba(255, 160, 160, 0.95) !important;
}
body.homeGate #gateCard, body.homeGate #loadingCard {
  animation: loginFadeIn 420ms ease-out both;
}
@keyframes loginFadeIn {
}
body.homeGate .gateForm input[type="text"], body.homeGate .gateForm input[type="password"] {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}
body.homeGate .gateForm input[type="text"]:hover, body.homeGate .gateForm input[type="password"]:hover {
  transform: translateY(-1px);
}
body.homeGate .gateBtn {
  position: relative;
  overflow: hidden;
}
body.homeGate .gateBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-120%);
  transition: transform 520ms ease;
  pointer-events: none;
}
body.homeGate .gateBtn:hover::after {
  transform: translateX(120%);
}
body.homeGate.dark #gateCard::before {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
body.dark .chr2Footer.globalFooter, body.homeGate.dark .chr2Footer.globalFooter {
  background: rgba(15, 20, 27, 0.86);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.62);
}
body.dark .chr2FooterBrand, body.homeGate.dark .chr2FooterBrand {
  color: rgba(255,255,255,0.88);
}
body.dark .chr2FooterMeta, body.homeGate.dark .chr2FooterMeta {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.70);
}
body.dark .chr2FooterPill, body.homeGate.dark .chr2FooterPill {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.78);
}
body.dark .chr2FooterLink, body.homeGate.dark .chr2FooterLink {
  color: rgba(255,255,255,0.78);
}
body.dark .chr2FooterLink:hover, body.homeGate.dark .chr2FooterLink:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
@media (max-width: 820px) {
}
.headerHelp .iconify {
  font-size: 18px;
}
.helpBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: color-mix(in srgb, var(--card) 85%, transparent 15%);
  margin-right: 10px;
  line-height: 1;
}
.helpBtn .iconify {
  font-size: 18px;
}
.helpBtn:hover {
  background: color-mix(in srgb, var(--card) 70%, transparent 30%);
}
.helpBtn:focus-visible {
  outline: 2px solid var(--focusRing);
  outline-offset: 2px;
}
.helpBtn.active,
.helpBtn[aria-current="page"] {
  background: var(--accentBg);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line) 45%);
  color: var(--accent);
}
.helpForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.helpFormRow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.helpLabel {
  font-weight: 600;
}
.helpInput,
.helpTextarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--card) 90%, transparent 10%);
  color: var(--text);
  font: inherit;
}
.helpTextarea {
  resize: vertical;
  min-height: 120px;
}
.helpInput:focus,
.helpTextarea:focus {
  outline: 2px solid var(--focusRing);
  outline-offset: 2px;
}
.helpSubmit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accentBg);
  color: var(--accent);
}
.helpSubmit:hover {
  filter: brightness(0.98);
}
#aide .cardsGrid {
  gap: 16px;
}
#aide .numCard {
  padding: 16px;
}
#aide .numCardHead {
  margin: -16px -16px 12px -16px;
  padding: 12px 16px;
}
#aide .numCard p {
  margin-top: 8px;
  margin-bottom: 12px;
}
#aide .numList {
  margin-top: 0;
}
#aide .helpForm {
  gap: 14px;
  margin-top: 14px;
}
#aide .helpFormRow {
  gap: 8px;
}
#aide .helpSubmit {
  margin-top: 4px;
}
body.dark #aide .helpSubmit {
  background: color-mix(in srgb, var(--accent) 25%, var(--card) 75%);
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line) 40%);
}
body.dark #aide .helpSubmit:hover {
  background: color-mix(in srgb, var(--accent) 35%, var(--card) 65%);
}
#aide .aideIntro {
  margin: 6px 0 16px 0;
  color: var(--muted);
}
.hpField {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.helpFlash {
  margin: 10px 0 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 90%, transparent 10%);
}
.helpFlash.ok {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line) 45%);
  background: var(--accentBg);
  color: var(--accent);
}
.helpFlash.err {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--line) 45%);
  background: color-mix(in srgb, var(--danger) 10%, var(--card) 90%);
  color: var(--text);
}
body.dark .helpFlash.err {
  background: color-mix(in srgb, var(--danger) 18%, var(--card) 82%);
}
/* ===== GLOBAL FOOTER ===== */

html,body{height:100%;}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* Le contenu principal (main.page) doit pouvoir prendre la hauteur */
main.page{
  flex:1 0 auto;
}

/* Footer : collé en bas (page courte), et séparé du contenu */
.globalFooter{
  margin-top:auto;                 /* pousse en bas */
  padding-top:14px;                /* espace visuel au-dessus (séparation) */
  background:transparent;          /* l'espace au-dessus reste “vide” */
}

/* Bande du footer pleine largeur */
.globalFooter .footerInner{
  width:100vw;                     /* force full viewport */
  margin-left:calc(50% - 50vw);    /* ignore le padding du body */
  margin-right:calc(50% - 50vw);
  padding:10px 16px;
  border-top:1px solid var(--line);
  background:var(--card);
  box-shadow:0 -10px 22px rgba(0,0,0,.08);
  display:grid;
  grid-template-columns:1fr 1.2fr 1fr;
  align-items:center;
  gap:10px;
}

/* Colonnes */
.footerCol{display:flex;flex-wrap:wrap;gap:8px 12px;line-height:1.2;}
.footerLeft{justify-content:flex-start;}
.footerCenter{justify-content:center;}
.footerRight{justify-content:flex-end;text-align:right;}
.footerStrong{color:var(--text);font-weight:600;}

@media (max-width:720px){
  .globalFooter .footerInner{
    grid-template-columns:1fr;
    text-align:center;
  }
  .footerLeft,.footerCenter,.footerRight{
    justify-content:center;
    text-align:center;
  }
}

/* Safe zone bouton retour haut */
:root{--footerSafe:50px;}
.backTop{bottom:calc(16px + var(--footerSafe));}

main.page{
  padding-bottom: 14px;
}

main.page,
.gatePage{
  padding-left:14px !important;
  padding-right:14px !important;
}

body{
  padding-left:var(--pagePad) !important;
  padding-right:var(--pagePad) !important;
}

.dropdownTrigger,
.helpInput,
.helpTextarea,
.pageSearch input{
  transition:box-shadow var(--smooth), border-color var(--smooth), transform var(--smooth);
}

.dropdownTrigger:focus-visible,
.helpInput:focus,
.helpTextarea:focus,
.pageSearch input:focus{
  box-shadow:0 0 0 4px color-mix(in srgb, var(--accentBg) 70%, transparent 30%);
}

.panel{padding:14px;}
.panel h2{margin:0 0 10px 0;}
.panel p,.panel li{line-height:1.45;}

/* Aide – icônes contact premium */

#aide .numList li{
  display:flex;
  align-items:center;
  gap:10px;
}

/* pastille icône */
.contactIcon{
  width:28px;
  height:28px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:color-mix(in srgb, var(--accent) 18%, transparent);
  border:1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  flex:0 0 auto;
}

.contactIcon .iconify{
  font-size:16px;
  color:var(--accent);
}

/* heures à droite */
.contactHours{
  margin-left:auto;
  white-space:nowrap;
  font-weight:700;
  color:var(--muted);
}

/* Aide – cartes plus larges visuellement */

#aide .cardsGrid{
  gap:18px;                 /* plus d’air entre les cadres */
}

#aide .numCard{
  padding:4px;             /* donne un effet "cadre plus large" */
  border-radius:20px;
}

#aide .numCardHead{
  border-radius:16px 16px 0 0;
}

#aide .numList,
#aide .helpForm{
  padding:4px 2px;
}

/* ===== AIDE – version premium ===== */

/* plus d'air entre les deux cartes */
#aide .cardsGrid{
  gap:26px;
}

/* cartes visuellement plus larges */
#aide .numCard{
  padding:10px;
  border-radius:22px;
  box-shadow:0 18px 40px rgba(0,0,0,.08);
}

/* empêcher les titres d’être mordus */
#aide .numCardHead{
  margin:-10px -10px 12px -10px;
  padding:14px 16px;
  border-radius:18px 18px 0 0;
}

/* contenu intérieur */
#aide .numList,
#aide .helpForm{
  padding:6px 6px 2px;
}

/* séparation chic entre Contact / Formulaire */
#aide .cardsGrid::after{
  content:"";
  grid-column:1 / -1;
  height:1px;
  margin:6px 0 4px;
  background:linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 45%, var(--line)),
    transparent
  );
  opacity:.6;
}

/* Aide – supprimer le focus vert sur le formulaire */

#aide .helpInput:focus,
#aide .helpTextarea:focus{
  outline:none !important;
  box-shadow:none !important;
  border-color:var(--line) !important;
}

/* Aide – cartes vraiment plus larges */

body.consultPage main.page{
  max-width:1400px;   /* au lieu de 1120 */
}

/* option : encore plus large */
@media(min-width:1200px){
  body.consultPage main.page{
    max-width:1600px;
  }
}
