@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');

/* Style général */
body, body *:not(script):not(style) {
    font-family: 'Chewy', system-ui, cursive !important;
    color: rgb(102, 102, 204);
}

body {
    font-size: 16pt; /* Augmenté de 14pt à 16pt */
    background-color: rgb(255, 230, 245);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Liens */
a {
    color: #000099;
    text-decoration: none;
    font-size: 16pt; /* Ajouté */
}
a:visited {
    color: #990099;
}
a:hover {
    text-decoration: underline;
}

/* Titres */
h1 {
    text-align: center;
    color: #800080;
    font-weight: normal;
    font-size: 40pt; /* Augmenté de 36pt à 40pt */
    margin: 20px 0;
}

h2 {
    font-size: 24pt; /* Augmenté de 20pt à 24pt */
    color: rgb(128, 0, 128);
    font-weight: normal;
    margin: 15px 0;
}

h2.v {
    color: #008000;
}

h3 {
    font-size: 20pt; /* Augmenté de 16pt à 20pt */
    color: #6666cc;
    margin: 12px 0;
}

h4 {
    font-size: 18pt; /* Augmenté de 14pt à 18pt */
    color: #800080;
    margin: 10px 0;
}

/* Paragraphes */
p, p.menu {
    font-size: 14pt; /* Augmenté de 14pt à 16pt */
    color: rgb(102, 102, 204);
    font-weight: normal;
    margin: 10px 0;
}

/* Tableaux */
.table-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    margin: 0 auto;
    padding: 0 5px;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0 auto;
    font-size: 16pt; /* Ajouté */
}

/* Cellules */
table td, table th {
    padding: 12px 15px; /* Légèrement augmenté */
    text-align: left;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Images dans les cellules */
table td img {
    display: inline !important;
    max-width: 100%;
    height: auto;
}

/* Navbar spécifique */
.navbar {
    background-color: #fff; /* Fond blanc pour la navbar */
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    margin: 30px auto;
    padding: 20px;
    text-align: center;
}

.navbar td {
    padding: 10px;
    text-align: center;
}

.navbar .img-hover {
    display: inline-block;
    transition: transform 0.4s ease, background-color 0.4s ease;
    border-radius: 12px;
    padding: 5px;
}

.navbar .img-hover:hover {
    transform: scale(1.1);
    background-color: white;
    border-radius: 12px;
}

.navbar td img {
    border-radius: 10px;
}

/* Texte sous les images */
.navbar td.text {
    font-family: Comic Sans MS;
    font-size: 14px;
    padding: 5px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    body {
        font-size: 14pt; /* Légèrement réduit pour mobile */
    }
    
    h1 {
        font-size: 32pt;
    }
    
    h2 {
        font-size: 20pt;
    }
    
    table, table.menu, table.navbar {
        width: 100% !important;
        display: block;
    }
}

/* Ajoutez à la fin de style.css */
.interactive-images-container {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.interactive-image {
    transition: transform 0.3s;
    margin: 10px;
}

.interactive-image:hover {
    transform: scale(1.05);
}

.interactive-image img {
    border: none;
    max-width: 150px;
    height: auto;
}
