/* Reset et base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #00bcd4 0%, #00acc1 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-size: 2.8em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    margin: 10px 0 0 0;
    font-size: 1.2em;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover, nav a[aria-current="page"] {
    background: #00bcd4;
    color: white;
    transform: translateY(-2px);
}

/* Main content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h2 {
    color: #00bcd4;
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00bcd4, #00acc1);
    border-radius: 2px;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.hero-section h2 {
    color: white;
}

.hero-section h2::after {
    background: white;
}

.principle-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.principle-icon {
    font-size: 3em;
    flex-shrink: 0;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.bento-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00bcd4, #00acc1);
}

.bento-item:hover, .bento-item:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #00bcd4;
}

.bento-item h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Couleurs spécifiques par catégorie */
.landmark-item::before { background: linear-gradient(90deg, #4caf50, #45a049); }
.structure-item::before { background: linear-gradient(90deg, #2196f3, #1976d2); }
.widget-item::before { background: linear-gradient(90deg, #ff9800, #f57c00); }
.live-item::before { background: linear-gradient(90deg, #e91e63, #c2185b); }
.window-item::before { background: linear-gradient(90deg, #9c27b0, #7b1fa2); }
.abstract-item::before { background: linear-gradient(90deg, #f44336, #d32f2f); }

/* Exemples bon/mauvais */
.examples {
    margin: 15px 0;
}

.good-example, .bad-example {
    margin: 8px 0;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.good-example {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4caf50;
}

.bad-example {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
}

.label {
    font-weight: bold;
    margin-right: 10px;
}

.label.good { color: #4caf50; }
.label.bad { color: #f44336; }

/* Boutons et détails */
.learn-more {
    background: #00bcd4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.learn-more:hover {
    background: #00acc1;
    transform: scale(1.05);
}

.details {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 8px;
    border-left: 3px solid #00bcd4;
    transition: all 0.3s ease;
}

.details.hidden {
    display: none;
}

.details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.details li {
    margin: 5px 0;
}

.spec-quote {
    font-style: italic;
    background: rgba(244, 67, 54, 0.1);
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #f44336;
}

.warning-text {
    color: #f44336;
    font-weight: bold;
}

/* Section des bonnes pratiques */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.practice-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #00bcd4;
}

.practice-card h3 {
    color: #00bcd4;
    margin-top: 0;
}

.comparison {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.good, .bad {
    padding: 15px;
    border-radius: 8px;
}

.good {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
}

.bad {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
}

.good h4 { color: #4caf50; margin: 0 0 10px 0; }
.bad h4 { color: #f44336; margin: 0 0 10px 0; }

pre {
    margin: 0;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Tooltip */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Démonstration interactive */
.demo-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.demo-btn {
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.demo-btn.good {
    background: #4caf50;
    color: white;
    border: none;
}

.demo-btn.good:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.demo-btn.bad {
    background: #f44336;
    color: white;
    border: 2px solid #d32f2f;
}

.demo-btn.bad:hover {
    background: #d32f2f;
}

.demo-explanation {
    background: rgba(0, 188, 212, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #00bcd4;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    section {
        padding: 25px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .principle-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Focus styles pour l'accessibilité */
*:focus {
    outline: 2px solid #00bcd4;
    outline-offset: 2px;
}

button:focus, .bento-item:focus {
    outline: 3px solid #00bcd4;
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-item {
    animation: fadeInUp 0.6s ease forwards;
}

.bento-item:nth-child(1) { animation-delay: 0.1s; }
.bento-item:nth-child(2) { animation-delay: 0.2s; }
.bento-item:nth-child(3) { animation-delay: 0.3s; }
.bento-item:nth-child(4) { animation-delay: 0.4s; }
.bento-item:nth-child(5) { animation-delay: 0.5s; }
.bento-item:nth-child(6) { animation-delay: 0.6s; }


/* Styles spécifiques aux formulaires */
.form-demo-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #00bcd4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-group input[aria-invalid="true"] {
    border-color: #f44336;
}

.required {
    color: #f44336;
    font-weight: bold;
}

.help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.error-message {
    color: #f44336;
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: 600;
    display: none;
}

.error-summary {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.error-summary h3 {
    color: #f44336;
    margin-top: 0;
    margin-bottom: 15px;
}

.error-summary ul {
    margin: 0;
    padding-left: 20px;
}

.error-summary li {
    color: #f44336;
    margin: 5px 0;
}

fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

legend {
    font-weight: 700;
    color: #00bcd4;
    padding: 0 15px;
    font-size: 1.1em;
}

.group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.radio-label:hover {
    background-color: rgba(0, 188, 212, 0.05);
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover {
    background-color: rgba(0, 188, 212, 0.05);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.reset-btn {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    border-color: #00bcd4;
    color: #00bcd4;
}

.form-explanation {
    background: rgba(0, 188, 212, 0.05);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #00bcd4;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.form-explanation h3 {
    color: #00bcd4;
    margin-top: 0;
}

.form-explanation ul {
    margin: 15px 0;
    padding-left: 20px;
}

.form-explanation li {
    margin: 8px 0;
    line-height: 1.5;
}

/* Critères RGAA */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.criteria-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #ff9800;
}

.criteria-card h3 {
    color: #ff9800;
    margin-top: 0;
    margin-bottom: 15px;
}

.criteria-examples {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

/* Responsive pour formulaires */
@media (max-width: 768px) {
    .form-demo-container {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .radio-group {
        gap: 5px;
    }
    
    .criteria-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles pour la page Mises en Situation */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.persona-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #00bcd4;
    transition: transform 0.3s ease;
}

.persona-card:hover {
    transform: translateY(-5px);
}

.thomas-card {
    border-left-color: #4caf50;
}

.jeanne-card {
    border-left-color: #ff9800;
}

.persona-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.persona-avatar {
    font-size: 3em;
    background: rgba(0, 188, 212, 0.1);
    padding: 15px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.persona-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.4em;
}

.persona-title {
    color: #666;
    margin: 0 0 10px 0;
    font-style: italic;
}

.persona-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.persona-tag.expert {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.persona-tag.beginner {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.persona-details h4 {
    color: #00bcd4;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
}

.persona-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.persona-details li {
    margin: 8px 0;
    line-height: 1.5;
}

.frustration-examples, .solution-examples {
    margin: 15px 0;
}

.frustration-examples .bad-example,
.solution-examples .good-example {
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
}

.frustration-examples .bad-example {
    background: rgba(244, 67, 54, 0.05);
    border-left: 4px solid #f44336;
}

.solution-examples .good-example {
    background: rgba(76, 175, 80, 0.05);
    border-left: 4px solid #4caf50;
}

/* Scénarios */
.scenarios-container {
    display: grid;
    gap: 40px;
    margin-top: 30px;
}

.scenario-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.scenario-card h3 {
    color: #00bcd4;
    margin-top: 0;
    font-size: 1.5em;
}

.scenario-context {
    background: rgba(0, 188, 212, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #00bcd4;
}

.scenario-steps {
    margin-top: 25px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    background: #00bcd4;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.step-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bad-version, .good-version {
    padding: 15px;
    border-radius: 10px;
}

.bad-version {
    background: rgba(244, 67, 54, 0.05);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.good-version {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.bad-version h6 {
    color: #f44336;
    margin: 0 0 10px 0;
}

.good-version h6 {
    color: #4caf50;
    margin: 0 0 10px 0;
}

.scenario-impact {
    margin: 25px 0;
}

.impact-card {
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #f44336;
}

.impact-card.critical {
    background: rgba(244, 67, 54, 0.05);
}

.impact-card h5 {
    color: #f44336;
    margin: 0 0 15px 0;
}

.scenario-solution {
    margin: 25px 0;
}

.solution-features {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.feature {
    background: rgba(76, 175, 80, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.feature h5 {
    color: #4caf50;
    margin: 0 0 10px 0;
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: #00bcd4;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.stat-description {
    color: #666;
    font-size: 0.9em;
}

/* Business case */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.business-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.business-card.legal {
    border-top: 4px solid #f44336;
}

.business-card.economic {
    border-top: 4px solid #4caf50;
}

.business-card.social {
    border-top: 4px solid #2196f3;
}

.business-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.business-card.legal h3 { color: #f44336; }
.business-card.economic h3 { color: #4caf50; }
.business-card.social h3 { color: #2196f3; }

/* Styles pour la page Glossaire */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-box {
    margin-bottom: 20px;
}

.search-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.search-box input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1em;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #00bcd4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

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

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover {
    border-color: #00bcd4;
    color: #00bcd4;
}

.filter-btn.active {
    background: #00bcd4;
    color: white;
    border-color: #00bcd4;
}

.glossary-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.glossary-category {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glossary-category h3 {
    color: #00bcd4;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.glossary-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #00bcd4;
    transition: all 0.3s ease;
}

.glossary-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.glossary-item h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    background: rgba(0, 188, 212, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.item-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.code-example {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.code-example.better {
    background: rgba(76, 175, 80, 0.05);
    border-left-color: #4caf50;
}

.code-example.bad {
    background: rgba(244, 67, 54, 0.05);
    border-left-color: #f44336;
}

.code-example h5 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    font-weight: 600;
}

.code-example code {
    display: block;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    white-space: pre-wrap;
}

.code-example .note {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

/* Aide-mémoire rapide */
.quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.quick-ref-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #00bcd4;
}

.quick-ref-card h3 {
    color: #00bcd4;
    margin-top: 0;
    margin-bottom: 20px;
}

.quick-ref-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.quick-ref-card th,
.quick-ref-card td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.quick-ref-card th {
    background: rgba(0, 188, 212, 0.1);
    font-weight: 600;
    color: #333;
}

.quick-ref-card code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

/* Responsive pour les nouvelles pages */
@media (max-width: 768px) {
    .personas-grid {
        grid-template-columns: 1fr;
    }
    
    .step-comparison {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-ref-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .persona-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Styles pour la page Landmarks */
.schema-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.landmarks-diagram {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.schema-legend {
    margin-top: 30px;
}

.schema-legend h3 {
    color: #00bcd4;
    margin-bottom: 20px;
    text-align: center;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 4px solid;
}

.legend-item.banner { border-left-color: #2196f3; }
.legend-item.navigation { border-left-color: #4caf50; }
.legend-item.main { border-left-color: #ff9800; }
.legend-item.complementary { border-left-color: #9c27b0; }
.legend-item.contentinfo { border-left-color: #607d8b; }

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-item.banner .legend-color { background: #2196f3; }
.legend-item.navigation .legend-color { background: #4caf50; }
.legend-item.main .legend-color { background: #ff9800; }
.legend-item.complementary .legend-color { background: #9c27b0; }
.legend-item.contentinfo .legend-color { background: #607d8b; }

.legend-text strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.legend-text p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Ordre DOM */
.dom-order-container {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.dom-step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.dom-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.dom-step[data-order="1"] { border-left: 4px solid #2196f3; }
.dom-step[data-order="2"] { border-left: 4px solid #4caf50; }
.dom-step[data-order="3"] { border-left: 4px solid #ff9800; }
.dom-step[data-order="4"] { border-left: 4px solid #9c27b0; }
.dom-step[data-order="5"] { border-left: 4px solid #607d8b; }

.step-number {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.code-block {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #00bcd4;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
}

.step-details {
    margin-top: 15px;
}

.step-details p {
    margin: 8px 0;
    color: #666;
    font-size: 0.95em;
}

.step-details strong {
    color: #00bcd4;
}

/* Démonstration interactive */
.interactive-demo {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.demo-explanation {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
}

.interactive-page {
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.demo-landmark {
    position: relative;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.demo-landmark:last-child {
    border-bottom: none;
}

.demo-landmark:hover {
    background: rgba(0, 188, 212, 0.05);
    transform: translateX(5px);
}

.demo-landmark.active {
    background: rgba(0, 188, 212, 0.1);
    border-left: 4px solid #00bcd4;
}

.demo-landmark:focus {
    outline: 2px solid #00bcd4;
    outline-offset: 2px;
}

.landmark-label {
    position: absolute;
    top: 5px;
    right: 10px;
    background: #00bcd4;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
}

.demo-banner { background: rgba(33, 150, 243, 0.05); }
.demo-nav { background: rgba(76, 175, 80, 0.05); }
.demo-main { background: rgba(255, 152, 0, 0.05); }
.demo-aside { background: rgba(156, 39, 176, 0.05); }
.demo-footer { background: rgba(96, 125, 139, 0.05); }

.demo-content-area {
    display: flex;
}

.demo-main {
    flex: 2;
    border-right: 1px solid #eee;
}

.demo-aside {
    flex: 1;
}

.landmark-content h3,
.landmark-content h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.landmark-content p {
    margin: 0;
    color: #666;
}

.landmark-content nav {
    color: #00bcd4;
    font-weight: 500;
}

.landmark-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 5px;
    font-size: 0.9em;
    color: #333;
}

.demo-feedback {
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 10px;
    text-align: center;
    color: #333;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Raccourcis clavier */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.shortcut-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #00bcd4;
}

.shortcut-card h3 {
    color: #00bcd4;
    margin: 0 0 20px 0;
    text-align: center;
}

.shortcut-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shortcut-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.shortcut-card li:last-child {
    border-bottom: none;
}

.shortcut-card kbd {
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8em;
    font-weight: bold;
}

/* Bonnes pratiques landmarks */
.practices-landmarks {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.practice-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.practice-item h3 {
    color: #00bcd4;
    margin: 0 0 20px 0;
}

.practice-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.good-practice,
.bad-practice {
    padding: 15px;
    border-radius: 10px;
}

.good-practice {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.bad-practice {
    background: rgba(244, 67, 54, 0.05);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.good-practice h4 {
    color: #4caf50;
    margin: 0 0 10px 0;
}

.bad-practice h4 {
    color: #f44336;
    margin: 0 0 10px 0;
}

.good-practice code,
.bad-practice code {
    display: block;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.4;
    white-space: pre-wrap;
    margin: 10px 0;
}

.error-note {
    color: #f44336;
    font-size: 0.85em;
    font-style: italic;
    margin: 8px 0 0 0;
}

/* Responsive pour landmarks */
@media (max-width: 768px) {
    .legend-grid {
        grid-template-columns: 1fr;
    }
    
    .dom-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .demo-content-area {
        flex-direction: column;
    }
    
    .demo-main {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .practice-comparison {
        grid-template-columns: 1fr;
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .landmarks-diagram {
        max-width: 100%;
    }
    
    .schema-container,
    .interactive-demo,
    .practice-item {
        padding: 20px;
    }
    
    .landmark-label {
        font-size: 0.6em;
        padding: 1px 6px;
    }
}

/* Styles pour la section de comparaison HTML/ARIA */
.comparison-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.comparison-intro {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 15px;
    border-left: 4px solid #00bcd4;
}

.comparison-intro .principle-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.visual-comparison {
    text-align: center;
    margin: 30px 0;
}

.comparison-diagram {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
}

.decision-tree {
    margin: 40px 0;
}

.decision-tree h3 {
    color: #00bcd4;
    text-align: center;
    margin-bottom: 20px;
}

.tree-container {
    text-align: center;
}

.decision-diagram {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comparison-examples {
    margin: 40px 0;
}

.comparison-examples h3 {
    color: #00bcd4;
    margin-bottom: 25px;
    text-align: center;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.example-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.example-card.html-first {
    border-left: 4px solid #4caf50;
    background: linear-gradient(135deg, #fff 0%, rgba(76, 175, 80, 0.02) 100%);
}

.example-card.aria-complement {
    border-left: 4px solid #ff9800;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 152, 0, 0.02) 100%);
}

.example-card h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.example-card.html-first h4 {
    color: #4caf50;
}

.example-card.aria-complement h4 {
    color: #ff9800;
}

.code-example {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 3px solid #00bcd4;
}

.code-example code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
}

.explanation {
    margin-top: 15px;
}

.explanation p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

.explanation strong {
    color: #00bcd4;
}

.best-practices-comparison {
    margin: 40px 0;
}

.best-practices-comparison h3 {
    color: #00bcd4;
    text-align: center;
    margin-bottom: 25px;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.practice-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.practice-item:hover {
    transform: translateY(-3px);
}

.practice-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.practice-item h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.practice-item p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

/* Responsive pour la comparaison */
@media (max-width: 768px) {
    .comparison-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-diagram,
    .decision-diagram {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .comparison-container {
        padding: 20px;
    }
    
    .example-card {
        padding: 20px;
    }
    
    .code-example {
        padding: 12px;
    }
    
    .code-example code {
        font-size: 0.8em;
    }
}

/* Styles pour les exemples concrets de formulaires */
.examples-container {
    display: grid;
    gap: 40px;
    margin: 30px 0;
}

.example-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #00bcd4;
}

.example-section h3 {
    color: #00bcd4;
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.example-description {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 10px;
    border-left: 3px solid #00bcd4;
}

.example-description p {
    margin: 0;
    color: #666;
    font-style: italic;
}

.form-example {
    margin: 25px 0;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.accessible-form {
    max-width: 100%;
}

.accessible-form fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    background: rgba(0, 188, 212, 0.02);
}

.accessible-form legend {
    font-weight: bold;
    color: #00bcd4;
    padding: 0 10px;
    font-size: 1.1em;
}

.form-group {
    margin: 15px 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.error-message {
    color: #f44336;
    font-size: 0.9em;
    font-weight: 500;
    margin-top: 5px;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.radio-group,
.checkbox-group {
    margin: 10px 0;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.radio-option input,
.checkbox-option input {
    width: auto;
    margin: 0;
}

.radio-option label,
.checkbox-option label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.form-actions {
    margin: 25px 0;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0097a7 0%, #00838f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.form-status {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Styles spécifiques pour le formulaire de recherche */
.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
}

.search-clear:hover {
    background: rgba(0, 0, 0, 0.1);
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #00bcd4;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestions.hidden {
    display: none;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover,
.suggestion-item[aria-selected="true"] {
    background: rgba(0, 188, 212, 0.1);
}

.search-filters {
    margin: 20px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
}

.search-filters summary {
    padding: 15px;
    background: rgba(0, 188, 212, 0.05);
    cursor: pointer;
    font-weight: 600;
    color: #00bcd4;
    border-radius: 8px 8px 0 0;
}

.search-filters[open] summary {
    border-bottom: 2px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.filters-content {
    padding: 20px;
}

.date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.results-info {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 8px;
    font-weight: 500;
    color: #00bcd4;
}

/* Styles spécifiques pour le formulaire d'inscription */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}

.password-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.password-strength {
    margin: 10px 0;
}

.strength-meter {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.strength-bar[aria-valuenow="0"] { background: #e0e0e0; }
.strength-bar[aria-valuenow="25"] { background: #f44336; }
.strength-bar[aria-valuenow="50"] { background: #ff9800; }
.strength-bar[aria-valuenow="75"] { background: #ffeb3b; }
.strength-bar[aria-valuenow="100"] { background: #4caf50; }

.strength-text {
    font-size: 0.9em;
    color: #666;
}

.availability-status,
.match-status {
    margin: 5px 0;
    font-size: 0.9em;
    font-weight: 500;
}

.availability-status.available,
.match-status.match {
    color: #4caf50;
}

.availability-status.unavailable,
.match-status.no-match {
    color: #f44336;
}

.form-note {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.form-note a {
    color: #00bcd4;
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* Annotations des exemples */
.example-annotations {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 10px;
    border-left: 4px solid #00bcd4;
}

.example-annotations h4 {
    color: #00bcd4;
    margin: 0 0 15px 0;
}

.example-annotations ul {
    margin: 0;
    padding-left: 20px;
}

.example-annotations li {
    margin: 8px 0;
    line-height: 1.5;
}

.example-annotations strong {
    color: #333;
}

/* Classes utilitaires */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive pour les exemples */
@media (max-width: 768px) {
    .example-section {
        padding: 20px;
    }
    
    .form-example {
        padding: 20px;
    }
    
    .date-range {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .accessible-form fieldset {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
    
    .example-annotations {
        padding: 15px;
    }
}

/* Styles pour les exercices interactifs */
.exercise-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #00bcd4;
}

.exercise-header {
    margin-bottom: 25px;
}

.exercise-title {
    color: #00bcd4;
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.exercise-description {
    background: rgba(0, 188, 212, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #00bcd4;
    margin-bottom: 20px;
}

.exercise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.exercise-editor,
.exercise-preview {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.editor-header,
.preview-header {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.btn-hint,
.btn-reset {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-hint:hover,
.btn-reset:hover {
    background: rgba(255, 255, 255, 0.3);
}

.code-editor {
    width: 100%;
    height: 300px;
    border: none;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: #f8f9fa;
    resize: vertical;
    outline: none;
}

.code-editor:focus {
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(0, 188, 212, 0.3);
}

.editor-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-run,
.btn-solution {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-run {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.btn-run:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-solution {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.btn-solution:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.preview-frame {
    width: 100%;
    height: 300px;
    border: none;
    background: white;
}

.validation-status {
    font-size: 0.9em;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.validation-status.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.validation-status.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.exercise-feedback {
    margin-top: 25px;
}

.hint-box,
.solution-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hint-box {
    border-left: 4px solid #ffeb3b;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 235, 59, 0.02) 100%);
}

.solution-box {
    border-left: 4px solid #4caf50;
    background: linear-gradient(135deg, #fff 0%, rgba(76, 175, 80, 0.02) 100%);
}

.hint-box h4,
.solution-box h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.solution-code {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
}

.solution-code code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.solution-explanation {
    margin-top: 15px;
}

.solution-explanation h5 {
    color: #00bcd4;
    margin: 0 0 10px 0;
}

.solution-explanation p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

.hidden {
    display: none !important;
}

/* Responsive pour les exercices */
@media (max-width: 768px) {
    .exercise-content {
        grid-template-columns: 1fr;
    }
    
    .exercise-container {
        padding: 20px;
    }
    
    .editor-header,
    .preview-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .editor-actions {
        justify-content: center;
    }
    
    .editor-footer {
        flex-direction: column;
    }
    
    .btn-run,
    .btn-solution {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .code-editor {
        height: 250px;
        padding: 15px;
        font-size: 12px;
    }
    
    .preview-frame {
        height: 250px;
    }
    
    .hint-box,
    .solution-box {
        padding: 15px;
    }
}


/* Styles pour les QCM */
.qcm-quiz {
    background: #f0f8ff;
    border-left: 4px solid #2196f3;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.qcm-options {
    margin-top: 15px;
}

.qcm-option {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.qcm-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.qcm-option label {
    font-size: 1.1em;
    cursor: pointer;
    margin: 0;
}

.qcm-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.qcm-footer .btn-submit {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qcm-footer .btn-submit:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* Styles pour Glisser-Déposer */
.drag-and-drop-exercise {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.draggable-items-container {
    background: #e0f7fa;
    border: 2px dashed #00bcd4;
    border-radius: 10px;
    padding: 15px;
    min-height: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.draggable-item {
    background: white;
    border: 1px solid #00bcd4;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: grab;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.draggable-item:hover {
    background: #e0f7fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.draggable-item.dragging {
    opacity: 0.5;
    border-style: solid;
}

.droppable-zones-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.droppable-zone {
    background: #f3e5f5;
    border: 2px dashed #9c27b0;
    border-radius: 10px;
    padding: 15px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.2s ease;
}

.droppable-zone h4 {
    color: #9c27b0;
    margin-top: 0;
    margin-bottom: 10px;
}

.droppable-zone.drag-over {
    background-color: #e1bee7;
}

.droppable-zone .draggable-item {
    margin-top: 10px;
}

.dnd-footer {
    margin-top: 20px;
    text-align: right;
}

.dnd-footer .btn-submit {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dnd-footer .btn-submit:hover {
    background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

/* Styles pour Code à Compléter */
.fill-in-the-blanks-exercise {
    margin-top: 20px;
}

.code-with-blanks {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    font-family: monospace;
    font-size: 1em;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-with-blanks code {
    display: block;
}

.blank-input {
    background: #fffbe6;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 5px 8px;
    font-family: monospace;
    font-size: 1em;
    color: #333;
    width: auto; /* Ajustement automatique de la largeur */
    min-width: 80px;
    display: inline-block;
    margin: 0 2px;
}

.blank-input:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

.blanks-footer {
    margin-top: 20px;
    text-align: right;
}

.blanks-footer .btn-submit {
    background: linear-gradient(135deg, #ffc107 0%, #ffa000 100%);
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blanks-footer .btn-submit:hover {
    background: linear-gradient(135deg, #ffa000 0%, #ff8f00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Styles pour les lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
