<style>
/* Layout global */

html {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eaeaea;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column; /* optional, if you want vertical stacking */
  justify-content: center; /* vertical centering */
  align-items: center;     /* horizontal centering */
  overflow-y: auto;
}


.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: white;
}


/* Zone blanche en haut */
.top-bar {
    background-color: white;
    padding: 15px 50px;
    border-bottom: 1px solid #ccc;
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    flex: 1;
}

/* Menu principal */
.main-menu {
    background-color: #45a049;
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-menu li {
    position: relative;
    font-size: 13px;
}

.main-menu > ul > li > a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2
}

.main-menu > ul > li > a:hover {
    background-color: orange;
}

/* Sous-menus (hidden by default) */
.main-menu .submenu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    border-radius: 1px;
    min-width: 200px;
    z-index: 999;

}

.main-menu .submenu li a {
    padding: 5px 20px;
    display: block;
    color: #007bff !important; /* forcé #0078D7 */ 
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-menu .submenu li a:hover {
    background-color: #f0f0f0;
    color: orange !important; /* forcé */
}

.main-menu .submenu li span.disabled-link {
    padding: 6px 20px;
    display: block;
    color: gray;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1;
    cursor: not-allowed;
}


/* Afficher le sous-menu au survol */
.main-menu .has-submenu:hover .submenu {
    display: block !important;
}

.menu-item {
    padding: 5px 10px;
    background-color: #f2f2f2; /* light grey */
    display: block;           /* ensures padding fills the area */
}

footer {
  width: 100%;
  background: #45a049;
  color: white;
  padding:5px 20px;
  font-size: 12px;
  line-height: 1.4;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  max-height: 160px;        /* NEW: limit height */
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* FORCE same line */
  gap: 20px;
}

.footer-column {
  flex: 1;
  min-width: 0; /* avoid overflow */
  max-width: 25%; /* 4 columns max */
  padding: 5px;
}

.footer-column h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: white;
}

.footer-column p, .footer-column a {
  font-size: 13px;
  color: white;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}


.fullscreen-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-right: 10px;
}

.fullscreen-btn {
    background-color: transparent;
    border: none;
    color: #ffffffcc; /* semi-transparent white */
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.3s ease;
    border-radius: 1px;
}

.fullscreen-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.accordion-box {
    width: 100%;
    padding: 5px 20px;
    border: 0.5px solid #eaeaea;
    padding: 0;
    background-color: white;
    font-family: 'Roboto', sans-serif;
    margin: 0 auto;
}

.accordion {
  width: 100%;
  background-color: white;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #45a049;
  border: 0.5px solid #eaeaea;
  margin: 0 auto;
  justify-content: space-between;
  font-weight: 700;
}

.accordion:hover {
  background-color: #eaeaea;
}

.toggle-icon {
  font-size: 24px;
  font-style: 400;
  color: #45a049;
}

.accordion-panel {
  width: 100%;
  display: none;
  padding: 20px;
  background-color: white;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  border: 0.5px solid #eaeaea;
  margin: 0 auto;
  text-align: justify;
}

.accordion-panel p {
  text-align: justify;
}

.accordion, .accordion-panel {
  box-sizing: border-box;
}

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto/Roboto-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url('/fonts/fa-solid-900.woff2') format('woff2'),
       url('/fonts/fa-solid-900.ttf') format('truetype');
}

/* Styles for RenderTabs */
.tab-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    gap: 2px;
    padding-top: 48px;
}

.tab {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 4px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #eaeaea;
    border-bottom: none;
    background-color: #ffffff; /* white by default */
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    color: #000;
    min-width: 90px;
    cursor: pointer;
    line-height: 2;

}

.tab.active {
    background-color: #eaeaea; /* light grey for selected tab */
    color: #0078D7;
}

/* Inactive (disabled) tab style */
.tab.inactive {
    background-color: #f2f2f2;
    color: #999999;
    border: 1px solid #ddd;
    cursor: not-allowed;
    pointer-events: none;
}

.menu-divider {
    height: 0.5px;
    background-color: #e0e0e0;
    margin: 4px 0;
    width: 100%;
}
.proxy-exit-icon {
    font-size: 20px;
    color: red;
    animation: flashProxy 1s infinite ease-in-out;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.proxy-exit-icon a {
    color: red;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.proxy-exit-icon a:hover {
    transform: scale(1.2);
    color: darkred;
}

@keyframes flashProxy {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.8; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

.proxy-login-icon {
    color: #007bff;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.proxy-login-icon:hover {
    color: #0056b3;
    transform: scale(1.2);
}

</style>