/* ====================
   Reset et Base
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--dark-color);
}

h1 a {
    color:#e1c04b;
    font-style: italic;
}
h1 a:hover {
    color:#333;
}
h3 {
    font-size: 1.3em;
    color:#333;
}
.jaune {
    background-color:#ffffb9;
}
.text-center {
    text-align: center;
}
.bouton-standard {
    text-align: center;
    padding: 3px 15px;
    background: #b2c6da;
    border-radius: 8px;
    margin: 2rem auto;
}
.bouton-standard:hover {
    background: #c2d6ea;
}
.mdp {
   font-size:0.8em;
   font-style: italic;
}
/* ====================
   Layout Principal
   ==================== */
/* Bouton de soumission */
.on_centre {
    padding: 5px;
    min-height: 800px;
}
.on_fiche {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.debug{
        z-index: 1000;
    position:absolute;
    top:5px;
    left:5px;
    white-space: normal;
     text-overflow: ellipsis;
     overflow-wrap: break-word;
    min-width:200px;
    max-width: 330px;
    background-color:#eee;
    border:solid 1px #000;
    font-size:0.8em;
}
.quiz-header, .valider {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.quiz-title {
    font-size: 30px;
    color: #2a7b9b;
    margin: 0;
}
.quiz-sous-titre {
    font-size: 15px;
    color: #2a7b9b;
    margin: 0;
    text-align: center;
}

.quiz-end {
    text-align: center;
    border-radius: 8px;
    margin: 10px auto;
    max-width: 600px;
}

.answer-fraud {
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #ff9800;
}

.answer-fraud .answer-icon {
    color: #ff9800;
}

.fraud-indicator {
    color: #ff9800;
    font-weight: bold;
    margin-left: 10px;
}

/* Animation de warning pour la fraude */
@keyframes warning-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.fraud-indicator {
    animation: warning-pulse 2s infinite;
}

.score-final {
    font-size: 2.5rem;
    color: #2a7b9b;
}

.duration {
    font-size: 1.1em;
    color: #666;
}

.message {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.btn-reset {
    background-color: #2a7b9b;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-reset:hover {
    background-color: #1d5c75;
}


.answers-history {
    margin: 5px auto;
    max-width: 800px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.answers-history h3 {
    color: #2a7b9b;
    margin-bottom: 1rem;
    text-align: center;
}

.answer-item {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.answer-item:last-child {
    border-bottom: none;
}

.answer-number {
    font-weight: bold;
    color: #777777;
    font-size: 1.3em;
    width: 30px;
}

.answer-icon {
    font-size: 2em;
    width: 30px;
}

.answer-correct .answer-icon {
    color: #28a745;
}
.answer-incorrect .answer-icon {
    color: #dc3545;
}

.answer-correct {
    background-color: rgba(40, 243, 91, 0.3);
    border: 2px solid #28a745;
    animation: correct-feedback 0.5s ease-in-out;
}
.answer-incorrect {
    background-color: rgba(255, 156, 165, 0.3);
    border: 2px solid #dc3545;
    animation: incorrect-feedback 0.5s ease-in-out;
}

@keyframes correct-feedback {
    0% { background-color: #28a745; color: white; }
    50% { background-color: rgba(40, 167, 69, 0.1); color: black; }
    100% { background-color: rgba(40, 167, 69, 0.1); color: black; }
}

@keyframes incorrect-feedback {
    0% { background-color: #dc3545; color: white; }
    50% { background-color: rgba(220, 53, 69, 0.1); color: black; }
    100% { background-color: rgba(220, 53, 69, 0.1); color: black; }
}

.answer-species, .answer-result, .species-info {
    font-weight: 500;
    width:300px;
}
.answer-species img, .answer-result img, .answer-correct-species img  {
    float:left;
    margin: 0 5px 0 0;
}
.answer-species .species-info a {
    text-decoration: line-through;
}

.species-info, .answer-correct-species {
    display: flex;
    flex-direction: column;
}
.answer-correct-species {
    flex-direction: row;
}

/* ====================
   Page d'accueil
   ==================== */
.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.welcome-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.title-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.main-title {
    color: #2a7b9b;
    font-size: 2.5em;
    margin: 0;
    padding: 0;
    text-align: center;
}

.sous-titre {
    font-size: 1.2em;
    color: #2a7b9b;
    text-align: center;
    margin:0;   
}

.quiz-logo {
    width: 80px;
    height: auto;
    opacity: 0.8;
    position: absolute;
    top: 0;
    right: -180px;
    transition: opacity 0.3s ease;
}

.quiz-logo:hover {
    opacity: 1;
}

.welcome-text {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}
.welcome-text p{
    text-align: center;
}
.welcome-start {
    display:flex;
    flex-direction: row;
    justify-content: center;
}
.welcome-start button {
    padding: 5px 15px;
    margin: 0 15px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    color: white;
    background-color: #8d85b0;
}

.welcome-message, .error_message {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.6;
    color: #333;
    text-align: left;
}
.error-message {
    background-color: #fafa8b;
    text-align:left;
    padding:40px;
}
.error-message ul{
    padding-left:40px;
}

option {
    font-weight: normal;
    display: block;
    padding-block-start: 30px;
    padding-block-end: 1px;
    min-block-size: 0.8em;
    padding-inline: 2px;
    white-space: nowrap;
}

.welcome-level {
    display: flex;
    font-size: 1.5em;
    color: #2a7b9b;
    margin-bottom: 10px;
    text-align: left;
    font-weight:bold;
}

.welcome-level img{
    height:70px;
    opacity:0.4;
    transform: scaleX(-1);
    display: inline-block;
    margin-right:10px;
}

.welcome-details, .welcome-customize {
    margin: 1em 0;
    padding: 0 1em;
}

.welcome-message ul {
    list-style: none;
    padding-left: 20px;
}

.welcome-message li {
    margin:0;
    position: relative;
}

.welcome-message li:before {
    content: "•";
    color: #2a7b9b;
    position: absolute;
    left: -15px;
}

.welcome-message strong {
    color: #2a7b9b;
}

/* Message de niveau maximum */
.niveau-stats-summary{
    display: contents;
}

.niveau-max-message {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    font-weight: 500;
    color: #ff6f00;
    text-align: center;
    font-size: 1.1rem;
}

.start-notice {
    text-align: center;
    font-weight: bold;
    color: #28a745;
    margin-top: 1.5em;
    font-style: italic;
}

.start-message {
    text-align: center;
    font-size: 1.2em;
    color: #28a745;
    margin-top: 20px;
    font-weight: bold;
}
.main-title {
    color: #2a7b9b;
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 0.9; /* Réduit l'interligne au minimum */
    margin: 0;      /* Supprime les marges */
    padding: 0;     /* Supprime les espacements internes */
}
.version {
    font-size: 1.2em;
    margin: 0;       /* Supprime les marges */
    padding: 0;      /* Supprime les espacements internes */
    font-style: italic;
    text-align:center;
}
.version a {
    color:#e1c04b;
}
.version a:hover {
    color:#333;
}

.options-accueil {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

/* Style des cartes */
.option-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 400px;
    text-align: center;
}

.option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.option-card h2 {
    color: #2a7b9b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.option-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Styles des boutons */
.button-wrapper {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    margin: 0.5rem 0;
    cursor: pointer;
    color: white;
}

/* Couleurs spécifiques pour chaque bouton */
.button-wrapper.login {
    background-color: #2a7b9b;  /* Bleu */
}

.button-wrapper.signup {
    background-color: #2ecc71;  /* Vert */
}

.button-wrapper.anonymous {
    background-color: #95a5a6;  /* Gris */
}

.button-wrapper.practice {
    background-color: #e74c3c;  /* Rouge */
}

.button-wrapper.stats {
    background-color: #f39c12;  /* Orange */
}

.button-wrapper.settings {
    background-color: #9b59b6;  /* Violet */
}

.button-wrapper:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* ====================
   En-tête et Navigation
   ==================== */
.quiz-header {
    position: relative;
    text-align: center;
    width: 100%;
}

.quiz-title {
    font-size: 30px;
    color: #2a7b9b;
    margin: 0;
}

/* Menu utilisateur */
.menu-container {
    position: absolute;
    right: 0px;
    top: -35px;
}

.sousmenu-button{
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    padding: 3px;
    background-color: white;
    color: #333;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 0;
    border-bottom: 1px dashed #ddd;
    margin: 0;
}
.sousmenu-button:hover {
    background-color: #ccc;
}

.menu-button {
    display: flex;
    align-items: center;
    background: #ccd5f1;
    border: none;
    color: black;
    padding: 1px 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    justify-content: center;
    gap: 8px;
}

.menu-button .user-icon {
    font-size: 20px;
}

.menu-button .user-name {
    font-weight: 500;
}

.menu-button:hover {
    background-color: #bbc4e0;
}

.menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 5px;
    min-width: 200px;
    z-index: 1000;
}

.menu-dropdown.active {
    display: block;
}

.menu-dropdown a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 3px;
}

.menu-dropdown a:hover {
    background-color: #f5f5f5;
}
a.menu-link-barre, li.barre, a.barre {
    text-decoration: line-through;
}
.niveau-badge {
    display: inline-block;
    background-color: #2a7b9b;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 5px;
}

/* ====================
   Filtres
   ==================== */
.filters-container {
    width: 90%;
    border-bottom: 2px solid #c5c5c5;
    margin-bottom: 10px;
    border-radius: 10px;
}

.filters-toggle {
    width: 100%;
    background: #e4e4e4;
    text-align:center;
    border-radius: 10px;
}

.toggle-button {
    width: 100%;
    padding: 1px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}
.toggle-button:hover {
    background: #efefef;
    border-radius: 10px;
}

.toggle-button span:first-of-type {
    width: 100%;
    text-align: center;
}

.toggle-icon {
    font-size: 1.3em;
}

.filters-panel {
    padding: 1rem;
    background: white;
}

.filters-content {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.filter-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    max-width: 300px;
}
#continent, #region, #ordre, #famille, #niveau, #lg {
    width: 290px;
    height: 30px;
    padding: 0 0 0 10px;
}
#ordre, #famille {
    display: none;
}
#continent {
   width: 120px ;
}
#region {
   width: 160px ;
}
#lg {
    width: 150px;
}
option.continent, option.pays{
    font-size: 1em;
    margin-left: 3px;
    padding-left: 3px;
}

option.pays{
    margin-left: 15px;
    padding-left: 15px;
    color: #666;
}
#oiseaux form button.filtre {
    width: 150px ;
    color: white ;
    background-color: #2c92bb ;
    border: solid 1px #333 ;
    border-radius: 10px ;
    padding: 2px 12px ;
    text-align: center ;
    cursor: pointer ;
    margin: 20px 0 ;
}


/* ====================
   Zone de Question
   ==================== */
.question {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 90%;
    margin: 30px 0;
    gap: 30px;
}

.image-container, .content-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.image-container img {
    border-radius: 10px;
    box-shadow: 2px 2px 4px #181818;
}

/* Conteneur droite */
.options-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Affiche sur 2 colonnes */
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

/* Boutons de réponse */
#oiseaux form button.reponse {
    width: 100% ;
    color: #383838;
    background-color: #eeeeee;
    border: solid 1px #c4c4c4 ;
    border-radius: 10px ;
    padding: 2px 12px ;
    text-align: center ;
    cursor: pointer ;
    margin: 0 ;
    line-height: 1.2;
    min-height: 40px; /* Hauteur minimale pour uniformité */
    font-size: 1.2em;
    font-weight: 500;
    box-shadow: 1px 1px 3px #959595;
}

#oiseaux form button.reponse i{
    font-size: 0.9em;
    font-weight: 100;
}

#oiseaux form button.reponse:hover {
    background-color: #d0e1e9;
}


/* ====================
   Feedback et Score
   ==================== */
.feedback {
    text-align: center;
    min-height: 95px;
    min-width: 90%;
    max-width: 90px;
    border: 1px solid #ddd;
    margin: 15px 0 15px 0;
    border-radius: 4px;
    color: #2a7b9b;
    font-weight: bold;
}
.feedback h3, .feedback h4{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    text-align: center;
    gap: 20px;
    min-width:100%;
    min-height:95px;
    font-size:0.9em;
    font-weight: 500;   
}
.feedback h3 div img{
    vertical-align: bottom;
}
.feedback h4{
    flex-direction: column;
    font-size:1em;
    justify-content: center;
}
.feedback p{
    text-align: center;
    font-size: 1.2em;
}
.feedback h3 a, .answer-correct-species a{
    color: #907dd6;
    font-style: italic;
}
.feedback h3 i{
    font-size:0.8em;
}
.feedback h3 div:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


.score-display {
    margin: 0 0 10px 0;
    text-align: center;
    font-size: 1.5em;
}

.score-value {
    color: #2a7b9b;
    font-weight: bold;
}

/* ====================
   Historique des Réponses
   ==================== */
.reponses {
    margin: 20px;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.resultats {
    display: flex;
    align-items: start;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    background: #f8f9fa;
}

.resultats img {
    border-width: 10px;
    border-style: solid;
}

.resultats img[data-result="correct"] {
    border-color: #73f873;
}

.resultats img[data-result="incorrect"] {
    border-color: #ff6666;
}

/* ====================
   Animations
   ==================== */
.correct-answer {
    animation: pulse-success 0.3s ease-in-out;
}

.wrong-answer {
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}


/* ====================
   Formulaires
   ==================== */
form {
    max-width: 95%;
    margin: 0 auto;
    padding: 0;
}

.form-container {
    width: 90%;
    padding: 2rem;
}

.form-container h1 {
    font-size: 24px;
    color: #2a7b9b;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: normal;
}


.form-group {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    margin-top: 15px;
}

.form-label-group {

}

.form-label {
    font-size: 14px;
    color: #222;
}
.form-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 2rem;
}

small.form-text {
    font-size: 12px;
    color: #666;
    font-style: italic;
    padding-top: 0.25rem;
}


.form-input-container {
    position: relative;
    max-width: 400px;
}

.form-control {
    width: 100%;
    padding: 3px;
    font-size: 14px;
    border: 1px dotted #666;
    border-radius: 3px;
    background: #fff;
}

.form-control:focus {
    border-style: solid;
    border-color: #2a7b9b;
    outline: none;
}

/* Pour le champ mot de passe */
.form-control[type="password"] {
    padding-right: 35px;
}

/* Icône œil */
.toggle-password {
    position: absolute;
    right: 8px;
    top: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #666;
}

.toggle-password:hover {
    color: #2a7b9b;
}

/* Force du mot de passe */
.password-strength {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 0.25rem;
}

.strength-meter {
    height: 8px;
    width: 100%;
    background-color: #eee;
    border-radius: 2px;
    margin-top: 0.25rem;
}

.strength-meter div {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Style du select */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M3 5h6L6 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

/* Messages d'alerte */
.alert {
    padding: 12px;
    margin-bottom: 1rem;
    border-radius: 3px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Dans quiz.css */
.answer-fraud {
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #ff9800;
}

.answer-fraud .answer-icon {
    color: #ff9800;
}

.fraud-indicator {
    color: #ff9800;
    font-weight: bold;
    margin-left: 10px;
}

/* Animation de warning pour la fraude */
@keyframes warning-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.fraud-indicator {
    animation: warning-pulse 2s infinite;
}

/* ====================
   Scores personnels
   ==================== */
.scores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.retour-btn {
    background: #2a7b9b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.retour-btn:hover {
    background: #1d5c75;
}

.scores-container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
}

/* Barre de progression des niveaux */
.niveaux-progress {
    background: white;
    padding: 0 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.niveaux-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}

.niveau-barre {
    display: flex;
    height: 10px;
    background: transparent;
    gap: 4px;
    margin: 0;
}
.niveau-segment {
    flex: 1;
    border-radius: 2px;
}
.segment-success {
    background: #22c55e;
}

.segment-empty {
    background: #e5e7eb;
}

.niveau-box {
    text-align: center;
    padding: 8px;
}

.niveau-numero {
    font-size: 14px;
    font-weight: bold;
    margin: 4px 0;
}
.niveau-numero span {
    font-size: 12px;
    font-weight: normal;
    margin: 4px 0;
}

.niveau-series {
    font-size: 12px;
    color: #666;
}

.bg-gray-200 { background: #849ccc; }
.bg-orange-500 { background: #f97316; }
.bg-green-500 { background: #22c55e; }

.niveau-numero {
    font-size: 14px;
    margin-bottom: 5px;
}

.niveau-series {
    font-size: 12px;
    color: #666;
}

.niveaux-legende {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legende-color {
    width: 10px;
    height: 10px;
    border-radius: 5px;
}

/* Détails par niveau */
.niveau-detail-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 15px 0;
    padding: 5px 15px;
}

.niveau-header {
    display: flex;
    justify-content: space-between;
}

.niveau-header h3 {
    margin: 0;
    color: #2a7b9b;
}

.percentage-badge {
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 14px;
}

/* Tableau des séries */
.series-table {
    width: 100%;
    border-collapse: collapse;
}

.series-table th, .series-table td {
    text-align: left;
    border-bottom: 1px solid #eee;
}

.series-table th {
    color: #666;
    font-weight: normal;
}

.score-badge {
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* Bouton voir plus */
.voir-plus {
    text-align: center;
    padding: 10px 0;
}

.voir-plus-btn {
    background: none;
    border: none;
    color: #2a7b9b;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 14px;
}

.voir-plus-btn:hover {
    text-decoration: underline;
}

.arrow {
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.3s;
}

/* Styles pour le filtre de région */
.filters-region {
    margin-bottom: 2rem;
    text-align: center;
}

.filters-region select {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    color: #374151;
    min-width: 250px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filters-region select:hover {
    border-color: #2a7b9b;
}

.filters-region select:focus {
    outline: none;
    border-color: #2a7b9b;
    box-shadow: 0 0 0 2px rgba(42, 123, 155, 0.2);
}

/* Styles pour les niveaux par région */
.niveau-detail-box[data-region] {
    position: relative;
}

.niveau-detail-box[data-region]::before {
    content: attr(data-region);
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.niveaux-frise {
    width: 100%;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.frise-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 4px;
    padding: 0 10px;
}

.frise-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s;
}

.frise-item input {
    width: 100%;
    height: auto;
    max-width: 50px;
    object-fit: contain;
    transform: scaleX(-1);
}

.frise-item:hover {
    opacity: 1 !important;
}

.niveau-num {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
}

/* Ajouter dans quiz.css */

.niveau-progression {
    margin: 20px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.niveau-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.niveau-numero {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2a7b9b;
}

.niveau-series {
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.niveau-segment {
    flex: 1;
    height: 8px;
    border-radius: 4px;
}

.segment-success {
    background-color: #22c55e;
}

.segment-empty {
    background-color: #e5e7eb;
}

.niveau-message {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Ajouter dans quiz.css */


.signup-incitation {
    margin: 10px 0 20px 0;
    padding:10px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.signup-incitation h3 {
    text-align: center;
    color: #2a7b9b;
    font-size: 1.3rem;
}

.demo-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 1.8rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 0.3rem 0;
}

.feature-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.demo-progress-bar {
    display: flex;
    gap: 3px;
    margin-top: 0.5rem;
}

.demo-segment {
    height: 6px;
    flex: 1;
    border-radius: 3px;
}

.demo-segment.success {
    background-color: #22c55e;
}

.demo-segment.empty {
    background-color: #e5e7eb;
}

.signup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-signup {
    padding: 5px 8px;
    background-color: #56a1be;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-signin {
    padding: 5px 8px;
    background-color: #f8f9fa;
    color: #2a7b9b;
    border: 1px solid #2a7b9b;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-signup:hover {
    background-color: #236b87;
}

.btn-signin:hover {
    background-color: #e9ecef;
}


/* Styles pour la barre de progression du niveau dans welcome-level */
.level-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  gap: 20px;
}

.level-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.level-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 250px;
}

.progress-bar {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 12px;
}

.progress-segment {
  flex: 1;
  height: 100%;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.progress-segment.filled {
  background-color: #22c55e;
}

.progress-segment.empty {
  background-color: #e5e7eb;
}

.progress-text {
  color: #2a7b9b;
  font-size: 1.2em;
  text-align: right;
  font-weight: normal;
}

/* Modification de la classe welcome-level existante */
.welcome-level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.niveau-complete {
  position: relative;
}

.niveau-complete::after {
    content: "✓";
    position: absolute;
    top: 15px;
    right: -13px;
    background: #22c55e;
    color: white;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.frise-item .image-container {
    position: relative;
    display: inline-block;
}

.progress-circle {
    position: absolute;
    top: 67px;
    right: -5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: conic-gradient(#22c55e var(--progress), #e5e7eb var(--progress));
}

.beta-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.beta-warning p {
    color: #856404;
    margin: 0;
    font-size: 0.95rem;
}

.beta-warning strong {
    display: inline-block;
    margin-right: 8px;
}
.btn-next-level {
    background-color: #2ecc71;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 1rem;
}

.btn-next-level:hover {
    background-color: #27ae60;
}
.niveau-max-message {
    color: #2a7b9b;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}
.quiz-end form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.niveau-complete {
    animation: celebrate 0.5s ease-in-out;
}

/* Styles spécifiques pour la page de maintenance */
.maintenance-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.maintenance-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
}

.title-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.maintenance-container .main-title {
    color: #e74c3c;
    font-size: 2.5em;
    margin: 0;
    padding: 0;
    text-align: center;
}

.maintenance-container .sous-titre {
    font-size: 1.2em;
    color: #7f8c8d;
    text-align: center;
    margin: 0;
}

.maintenance-container .quiz-logo {
    width: 80px;
    height: auto;
    opacity: 0.8;
    position: absolute;
    top: 0;
    right: -100px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.maintenance-message {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.maintenance-icon {
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.maintenance-message h3 {
    font-size: 1.5em;
    color: #e74c3c;
    margin-bottom: 20px;
}

.maintenance-message p {
    color: #34495e;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.maintenance-info {
    margin-top: 30px;
    font-weight: bold;
    color: #16a085;
}

.maintenance-date {
    font-size: 1.2em;
    color: #e74c3c;
}

.maintenance-actions {
    margin: 30px 0;
}

.maintenance-button {
    display: inline-block;
    background-color: #2a7b9b;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.maintenance-button:hover {
    background-color: #1d5c75;
    transform: translateY(-2px);
}

.version {
    font-size: 0.9em;
    color: #95a5a6;
    margin-top: 20px;
}

.version a {
    color: #7f8c8d;
}

.radio-group {
    font-size: 0.9em;
    color: #95a5a6;
    width: 100%;
}
.radio-group span{
    font-size: 0.9em;
}

.radio-group span a{
    color: #494f7f;
    font-style: italic;
}


/* ====================
   Responsive Design
   ==================== */
@media (max-width: 768px) {
    .maintenance-container {
        padding: 15px;
        border-radius: 0;
    }
    
    .maintenance-container .main-title {
        font-size: 1.8em;
    }
    
    .maintenance-container .sous-titre {
        font-size: 1em;
    }
    
    .maintenance-container .quiz-logo {
        width: 60px;
        right: -70px;
    }
    
    .maintenance-message {
        padding: 20px;
    }
    
    .maintenance-message h3 {
        font-size: 1.3em;
    }
    
    .maintenance-message p {
        font-size: 1em;
    }
    
    .maintenance-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .beta-warning {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
    .beta-warning p {
        font-size: 0.85rem;
    }
    .welcome-start button {
        padding: 5px 15px;
        margin: 0 15px 15px 15px;
        border-radius: 6px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        text-align: center;
        cursor: pointer;
        color: white;
        background-color: #8d85b0;
    }
    .welcome-level {
        font-size:0.9em;
    }
    .welcome-level img{
        height: 50px;
    }
    .level-indicator {
        min-width: 200px;
    }
    .progress-bar {
        height: 8px;
    }
    .progress-text {
        font-size: 1em;
    }
    .signup-incitation {
        border-radius: 0;
    }
    .demo-feature {
        padding: 0.6rem;
    }
    .feature-icon {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    .signup-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    .btn-signup, .btn-signin {
        width: 100%;
    }
    .progress-circle {
        top: 40px;
    }
    .niveau-progression {
        margin: 1rem -1rem;
        padding: 1rem;
        border-radius: 0;
    }
    .niveau-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .welcome-message, .error_message {
        padding: 5px 0;
        margin: 0;
        max-width: none;
        line-height: 1.1;
    }
    .welcome-customize h4{
        font-size: 1em;
        font-weight: 100;
        margin: 0;
        padding: 0;
        overflow-wrap: break-word; /* Recommandé */
        hyphens: auto; /* Active les césures automatiques */
        text-align: justify;
    }
    .welcome-details {
        padding:0;
        margin: 0;
        max-width: none;
        line-height: 1.1;
        font-size: 0.9em;
    }    

    .welcome-level {
        padding:0;
        margin: 0 0 10px 0;
        max-width: none;
        line-height: 1.1;
    }
    .niveau-max-message {
        padding: 0.75rem;
        font-size: 0.9rem;
        text-align: left;
    }
    .frise-item {
        min-width: 40px;
    }
    .frise-item input {
        max-width: 40px;
    }
    .frise-container {
        padding: 0;
        gap: 3px;
        justify-content: space-evenly;
        flex-wrap: wrap;
    } 
    .niveau-complete::after {
        top: -8px;
        right: -15px;
        width: 15px;
        height: 15px;
    }
    .series-count{
        font-size: 0.7em;
    }
    .niveau-num {
        font-size: 0.7em;
    }
    #quiz{
        max-width: 100%;
    }
    .form-container {
        width: 100%;
        padding: 0;
    }
    .on_recherche.search-open, .quiz-title, .prenom {
        display: none;
    }
    .filters-content {
        flex-direction: column;
    }
    .options-accueil {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap:6px;
    }
    .option-card {
        padding: 5px;
    }
    .option-card h2 {
        margin: 1px;
    }
    .option-card p {
        margin: 1px;
    }
    .form-group {
        grid-template-columns: 100px 1fr;
    }
    .welcome-text {
        font-size: 1em;
        margin: 5px;
        line-height: 1;
    }
    .button-wrapper {
        padding: 4px 15px;
    }
    .welcome-container {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .question {
        flex-direction: column;
        gap:0;
        margin: 5px  0;
    }

    .image-container {
        flex: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .options-container {
        flex: none;
        width: 100%;
        gap: 15px;
    }
    .menu-container {
        top: 5px;
        margin: 0;
    }
    .menu-dropdown {
        width: 100%;
        position: static;
        margin-top: 1rem;
    }
    .niveau-badge {
        display: none;  /* Le badge est masqué sur mobile car le prénom est déjà caché */
    }
    .filters-container{
        width: 100%;
        margin: 0;
        font-size:0.9em
    }
    .filters-container span span{
        display: none;
    }
    .toggle-button{
        flex-direction: row-reverse;
        padding: 0;
        font-size:0.9em;
        min-height:30px;

    }
    .toggle-button span:first-of-type {
        text-align: left;
        letter-spacing: -0.5px;
    }
    .feedback {
        font-size:0.8em;
        min-height: 20px;
        border: 1px solid #ddd;
        width:100%;
        margin: 2px;
        padding: 1px;
    }
    .feedback h3{
        gap:0;
        min-height:70px;
    }
    .feedback p{
        font-size: 0.8em;
        overflow-wrap: break-word; /* Recommandé */
        hyphens: auto; /* Active les césures automatiques */
    }
    .feedback p:first-of-type, .jaune b:first-of-type, .jaune br:first-of-type{
        display: none;
    }
    .feedback h3 div img{
        width:70px;
    }

    .score-display{
        font-size: 1em;
        margin: 10px 0 10px 0;
    }
    .filters-region select {
        width: 100%;
        max-width: none;
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }
    
    .niveau-detail-box[data-region]::before {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    .answers-history {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    .answer-item {
        gap: 3px;
        padding: 2px;
        font-size: 0.9em;
        margin-bottom: 3px;
    }
    .answer-number {
        font-size: 1em;
        width: 15px;
    }
    .answer-icon{
        font-size: 1em;
        width: 15px;
    }
    .answer-correct-species {
        width: 150px;
    }
    .answer-correct-species img, .answer-species img{
        width: 50px;
        height: 50px;
    }
    .species-info, .answer-species{
        font-size: 0.7em;
        align-items: center;
    }
    .reponse, button.reponse{
        background-color:#c3c5ce;
        font-size:0.9em;
    }
    #oiseaux form button.reponse {
        margin: 0 ;
        line-height: 1;
        font-size: 0.9em;
        font-weight: 500;
        padding:2px;
        box-shadow: 1px 1px 3px #959595;
    }
    #oiseaux form button.reponse i{
        font-size: 0.7em;
    }
    .stats-summary {
        flex-direction: column;
        gap: 1rem;
    }

    .niveaux-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .niveaux-legende {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .niveau-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .series-table th,
    .series-table td {
        font-size: 12px;
        padding: 5px;
    }
    .niveaux-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .niveaux-legende {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .niveau-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .series-table th,
    .series-table td {
        font-size: 12px;
        padding: 5px;
    }
    .sous-titre {
        font-size: 1.1em;
        margin:-10px;   
    }

}