/* --- STYLE GLOBAL --- */

/* AJOUT : force html & body en mode colonne → footer en bas */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* --- HEADER --- */

/* La barre principale contenant menu + logo */
.np-main-nav {
    background-color: #3f1f1f;   /* brun foncé du site nplusp.ch */
    border-bottom: 1px solid rgba(0,0,0,0.25);

    display: flex;
    justify-content: space-between;     /* menu à gauche, logo à droite */
    align-items: center;                /* centré verticalement */
    padding: 10px 30px;
}

/* MENU À GAUCHE */
.np-menu {
    list-style: none;
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.np-menu a {
    color: #ffffff;          /* texte blanc */
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.np-menu a:hover {
    text-decoration: underline;
}

/* LOGO À DROITE */
.np-logo img {
    height: 45px;       /* taille du logo → ajustable */
    display: block;
}


/* --- CONTENU CENTRAL --- */

/* AJOUT : permet au contenu de pousser le footer vers le bas */
.content {
    flex: 1;                 
    max-width: 1100px;
    padding: 40px 20px;
    margin: 0 auto;
    width: 100%;
}


/* --- FOOTER --- */
.np-footer {
    background-color: #f3f3f3;
    padding: 30px 20px;
    text-align: left;
    font-size: 0.95rem;
    color: #333;
    border-top: 1px solid #ddd;
}

.np-footer p {
    margin: 5px 0;
}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .np-main-nav {
        flex-direction: column;
        gap: 15px;
    }

    .np-menu {
        flex-direction: column;
        gap: 12px;
    }

    .np-logo img {
        height: 40px;
    }
}

.radar-list {
    margin-left: 1.2rem;
    line-height: 1.6;
}
.radar-list li {
    margin-bottom: 0.5rem;
}

/* Fait “sortir” l’iframe du conteneur centré */
.streamlit-fullbleed{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Iframe responsive */
.streamlit-iframe{
  width: 100%;
  height: 900px;
  border: 0;
  display: block;
}

/* ===============================
   Cache le badge Streamlit (embed)
   =============================== */

/* Cas le plus courant : liens sous l’iframe */
.streamlit-fullbleed a[href*="streamlit.io"],
.streamlit-fullbleed a[href*="streamlit.app"],
.streamlit-fullbleed a[title*="Streamlit"],
.streamlit-fullbleed a[aria-label*="Streamlit"],
.streamlit-fullbleed a[href*="fullscreen"] {
  display: none !important;
}

/* Cas où Streamlit injecte un conteneur dédié */
.streamlit-fullbleed [class*="viewerBadge"],
.streamlit-fullbleed [data-testid*="Viewer"],
.streamlit-fullbleed [data-testid*="viewer"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
