/* Reset / global */
* { box-sizing: border-box; margin:0; padding:0; }
body {
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* --- Carte Radon --- */
#svg-container {
  max-width: 1000px;
  width: 90%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background: none;      /* supprimer le fond blanc */
  border-radius: 6px;
  padding: 0;            /* supprimer padding qui décale le SVG */
}

svg {
  display: block;
  width: 100%;
  height: auto;          /* conserve ratio */
}

/* Menu parent */
.menu-parent {
    position: relative;
}

/* Sous-menu initialement caché */
.submenu {
    list-style: none;
    position: absolute;   /* positionné par rapport au parent */
    top: 100%;            /* juste sous le menu parent */
    left: 0;
    background-color: #2196f3; /* bleu légèrement plus foncé */
    border-radius: 0.35rem;
    padding: 0.4rem 0;
    margin: 0;
    display: none;        /* caché par défaut */
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 100;
}

/* Liens du sous-menu */
.submenu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    font-weight: normal;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

/* Couleur au survol */
.submenu li a:hover {
    background-color: #1976d2;
}

/* Affichage du sous-menu au survol du parent */
.menu-parent:hover .submenu {
    display: block;
}

/* Pour que le sous-menu ne modifie pas la hauteur du menu principal */
nav ul {
    position: relative;
}

/* Mobile : sous-menu statique */
@media (max-width:600px) {
    .submenu {
        position: static;
        display: block;   /* toujours visible pour mobile */
        box-shadow: none;
        border-radius: 0.25rem;
        margin-top: 0.3rem;
    }
    .menu-parent:hover .submenu {
        display: block;   /* garde le sous-menu visible */
    }
}

/* --- Header / Menu --- */
header {
    background: #1e88e5;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
header h1 {
    font-size: 1.8rem;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.4rem 0.6rem;
    transition: background 0.2s;
    border-radius: 4px;
}
nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* --- tableau infos --- */
.table-info {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.table-info th, .table-info td {
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    text-align: left;
}

.table-info th {
    background-color: #1e88e5;
    color: white;
    font-weight: bold;
}

.table-info tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-info tbody tr:hover {
    background-color: #e3f2fd;
}


/* --- Main content --- */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}
section {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
h2 {
    color: #1e88e5;
    margin-top: 0;
}
ul {
    list-style: disc inside;
}
a.btn {
    display: inline-block;
    background: #1e88e5;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.2s;
}
a.btn:hover {
    background: #1565c0;
}

/* --- Footer --- */
footer {
    background: #1e88e5;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* --- Responsive --- */
@media (max-width:600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    nav ul {
        flex-direction: column;
        gap: 0.3rem;
    }
}
