* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #4a6fa5;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
}

h1 {
    color: #4a6fa5;
    font-size: 2.5em;
}

h2 {
    color: #5a7fa5;
    margin-top: 1px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

h3 {
    color: #5a7fa5;
    margin-bottom: 10px;
}

h4::before {
content: "•";
margin-right: 8px;
}

h4 {
    color: #5a7fa5;
    font-size: 1.05em;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 600;
    padding-left: 10px;
}

.intro {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.mindmap-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 30px 0;
    overflow: auto;
}

.category .repo-list li {
background-color: white;
}

.repo-list {
    list-style-type: none;
    padding-left: 0;
}

.repo-list li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
}

.repo-list a {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 500;
}

.repo-list a:hover {
    text-decoration: underline;
}

.progress-bar {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #6baed6;
    border-radius: 10px;
}

.category {
    margin-bottom: 25px;
    padding: 15px 20px;
    background-color: #e6f0ff;
    border: 1px solid #5176ad;
    border-left: 4px solid #4a6fa5;
    border-bottom: 2px solid #5176ad;
    border-radius: 6px;
}

.category h3 { /* .category h3 permet de styliser les <h3> uniquement dans les encarts sans affecter d'autres <h3> ailleurs */
margin-top: 0;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 2 px dashed #d0dce5;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill {
    background-color: #4188ec;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    color: white;
}

.captcha-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.captcha-box {
    position: relative;
    margin: 20px 0;
}

#captchaCanvas {
    border: 3px solid #ddd;
    border-radius: 10px;
    cursor: not-allowed;
}

.captcha-input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    letter-spacing: 5px;
    text-transform: uppercase;
    transition: border-color 0.3s;
}

.captcha-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s;
}

.btn-refresh {
    background: #f0f0f0;
    color: #333;
}

.btn-refresh:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-verify {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: bold;
    display: none;
}

.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.attempts {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.glucose {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}
