html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
	font-size: 14px; /* Réduire la taille pour les petits écrans */
    }
}

body {
    background-color: #f8f8f8;
    box-sizing: border-box; /* Faire en sorte que le padding ne s'ajoute pas à la largeur totale */
    color: #333;
    font-family: 'Open Sans','Helvetica Neue', Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 20px auto;
    max-width: 960px;
    padding: 0 25px;
    width: 100%;
}

/* Style du menu de navigation */
.dropdown {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    left: 25%;
    padding: 15px 20px;
    position: fixed;
    right: 25%;
    text-align: center;
    top:0;
}

/* Cliquer sur "Sommaire" permet de retourner en haut de page */

.dropdown a {
    color: black;
    text-decoration: none;
}

.dropdown-content {
    display: none;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
}

.dropdown-content a {
    color: black;
    display: inline-block;
    padding-right: 1em;
    text-decoration: none;
}

.dropdown-content a:hover {
    color: #007bff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-section {
}

/* Tableaux */
table {
    background-color: #fff;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    width: 80%;
}

td {
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:hover {
    background-color: #ddd;
    cursor: pointer;
}



/* Style du texte général */
h1 {
    color: #1a2c3d;
    font-size: 2.8rem;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    margin-top: 50px;
    text-align: center;
}

h2 {
    border-bottom: 2px solid #3498db; /* Séparateur clair pour les sections principales */
    color: #34495e;
    font-size: 2.2rem;
    margin-top: 50px;
    padding-bottom: 10px;
    text-align: center;
}

h3 {
    border-left: 5px solid #aed6f1;
    color: #2980b9;
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: 40px;
    padding-left: 15px;
}

p {
    margin-bottom: 1em;
}

p a {
    color: #007bff;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

em {
    color: #c0392b;
    font-weight: bold;
}

/* Style des consignes */
.consigne {
    background-color: #f0f8ff;
    border-left: 4px solid #5dade2;
    border-radius: 5px;
    color: #333;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 15px 20px;
}

.consigne::before {
    color: #5dade2; /* Colore la flèche */
    content: "\27A1"; /* Code d’entité numérique pour la flèche droite */
    font-size: 1rem;
    margin-right: 8px; /* Espace entre l’emoji et le texte */
}

/* Style des blocs de poème */
.poeme {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Ombre plus prononcée */
    font-family: 'Lora', serif;
    line-height: 1.6;
    margin: 30px auto;
    max-width: 650px;
    padding: 25px;
    width: 85%;
}

.titre {
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.auteur {
    color: #777;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 25px;
    text-align: center;
}

.vers {
    margin-bottom: 0.2em;
    font-size: 1rem;
    text-indent: 1.5em;
}

/* Style des blocs de citation */
blockquote {
    background-color: #f0f0f0;
    border-left: 5px solid #ccc;
    border-radius: 5px;
    color: #555;
    font-style: italic;
    line-height: 1.7;
    margin: 2em 0;
    padding: 1.5em 2em;
}

blockquote q {
    display: block;
    margin-bottom: 10px;
}

blockquote p {
    margin-bottom: 0;
}

/* Boîtes de style pour les sections et les exercices */
.section, .exercice {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    padding: 30px;
}

.section {
    background-color: #e0f7fa;
    border-left: 8px solid #007bff;
}

.exercice {
    background-color: #fff3e0;
    border-left: 8px solid #e67e22;
}

.section h3, .exercice h3 {
    border-left: none;
    color: inherit;
    margin-top: 0;
    padding-left: 0;
}

.section h3 {
    color: #007bff;
}
.exercice h3 {
    color: #e67e22;
}


/* Autres éléments */
.no-display {
    display: none;
}

.explication {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    line-height: 1.6;
    margin-top: 20px;
    padding: 20px;
}

[id] {
    scroll-margin-top: 100px; /* Pour que les éléments ne soient pas cachés par le menu fixe (à défixer à terme) */
}

/* Styles pour les champs de saisie et les boutons */
input[type="button"], button {
    background-color: #007bff;
    border-radius: 3px;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 5px;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
}

input[type="button"]:hover, button:hover {
    background-color: #0056b3;
}


/* Style de correction */
.bon-vers {
    color: green;
}

.mauvais-vers {
    color: red;
}


/* Details */

details {
    margin-bottom: 0.2em;
    text-indent: 1.5em;
}

details p {
    color: #555;
}



/* Notes de bas de page */
.container-note {
    cursor: help;
}

.note {
    background-color: #333;
    border-radius: 4px;
    color: white;
    opacity: 0;
    padding: 8px 12px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    z-index: 10;	  
}

.container-note:hover .note {
    opacity: 1;
    visibility: visible;
}

hr {
    width: 20%;
}

/* Format des exercices */

#exercice-23 details, #exercice-24 details, #exercice-25 details, #exercice-26  details, #exercice-27 details, #exercice-28 details, #exercice-29 details, #exercice-30 details {
    border-bottom: thin dotted;
}
