/* === Importer la police SeoulNamsan CBL et Sevillana === */
@font-face {
    font-family: 'SeoulNamsan';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/SeoulNamsanM.woff') format('woff');

}



/* === Styles Globaux === */
body {
    font-family: 'SeoulNamsan', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(100, 31, 156);
    line-height: 1.6;
}

header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 25px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #ddd;
}

main {
    padding: 50px;
    text-align: center;
}

h1 {
    color: white;
    font-size: 32px;
    padding: 50px 450px 75px;
}

.mention {
    margin-left: 50%;
    color: white;
}

.btn {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background: #653A89;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #3F2356;
}

.texte-dataviz {
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    color: white;
    text-align: justify;
    line-height: 1.8;
}

.texte-dataviz h1 {
    font-size: 24px;
    margin-bottom: 20px;
    padding: 10px 0;
    
}

#filters {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--color-light-gray, #f5f5f5);
    border: 2px solid var(--color-dark, #333333);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

#filters button {
    padding: 10px 20px;
    background-color: var(--color-dark, #333333);
    color: var(--color-white, #ffffff);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#filters button:hover {
    background-color: var(--color-accent, #555555);
    transform: scale(1.05);
}

#filters button:focus {
    outline: 2px solid var(--color-accent, #555555);
    outline-offset: 2px;
}

#filters label {
    font-size: 16px;
    font-weight: bold;
}

#filters select {
    padding: 5px 10px;
    font-size: 16px;
    border: 1px solid var(--color-dark, #333333);
    border-radius: 5px;
    background-color: var(--color-white, #ffffff);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#filters select:focus {
    border-color: var(--color-accent, #555555);
}


/* === Styles Spécifiques à la Page Graphique === */
.page-graphique #filters {
    margin-bottom: 20px;
    text-align: center;
}

.page-graphique #filters button,
.page-graphique #filters select {
    margin: 5px;
    padding: 10px;
    cursor: pointer;
    background: #653A89;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'SeoulNamsan', Arial, sans-serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.page-graphique #filters button:hover,
.page-graphique #filters select:hover {
    background-color: #3F2356;
}

/* === Section du Graphique === */
.page-graphique #chart {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.page-graphique .bar {
    stroke: #333;
    stroke-width: 1px;
    transition: fill 0.3s ease-in-out;
}

.page-graphique .bar:hover {
    fill: orange;
    cursor: pointer;
}

.page-graphique .axis text {
    font-size: 14px;
    fill: #444;
}

.page-graphique .axis path,
.page-graphique .axis line {
    stroke: #888;
    stroke-width: 1;
}

.page-graphique #tooltip {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-family: 'SeoulNamsan', Arial, sans-serif;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    pointer-events: none;
    z-index: 100;
}

/* Modale */
.page-graphique #modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.page-graphique #modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: left;
    width: 400px;
    max-width: 90%;
    position: relative;
}

.page-graphique #close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.page-graphique #close-btn:hover {
    color: red;
}

/* === Sections alignées === */

.section-box {
    background-color: #4A2870;
    /*  pour le fond */
    color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 800px;
}

.section-box h2 {
    color: #00BFFF;
    /* pour le titre */
    font-size: 22px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
    text-align: center;
}

.section-box h3 {
    color: #FFD700;
    /*pour les sous-titres */
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.section-box p,
.section-box ul {
    font-size: 16px;
    line-height: 1.8;
    margin: 10px 0;
}

.section-box ul {
    list-style: disc;
    padding-left: 20px;
}

.section-box a {
    color: #FFD700;
    /* pour les liens */
    text-decoration: none;
}

.section-box a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .section-box {
        padding: 15px;
    }

    .section-box h2 {
        font-size: 20px;
    }

    .section-box h3 {
        font-size: 16px;
    }
}

/* Partie Citation */
.citation-sevillana {
    font-family: "Sevillana", cursive;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    text-align: center;
    display: block;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    font-size: 40px;
    /* Taille de police */
    line-height: 1.8;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .citation-sevillana {
        font-size: 18px;
        padding: 15px;
    }
}