/* CSS spécialisé pour les pages de compétences - Structure par points de validation */

/* Import du style principal */
@import url('../style.css');

/* Espacement pour compenser le header fixe */
body {
    padding-top: 80px;
}

/* Container spécifique aux compétences */
.competence-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 2rem; /* Espacement supplémentaire pour le header fixe */
}

/* Header de compétence */
.competence-header {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 15px;
}

.competence-number-large {
    background: #3498db;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.competence-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.competence-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.competence-description-main {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* Points de validation */
.validation-points {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.validation-point {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.validation-point:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* En-tête du point */
.point-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
}

.point-code {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.point-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.point-level {
    opacity: 0.9;
    font-size: 1rem;
}

/* Contenu du point */
.point-content {
    padding: 2rem;
}

.point-objective {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.point-objective h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.point-objective h4::before {
    content: "🎯";
    font-size: 1.2rem;
}

/* Cases d'explication */
.validation-cases {
    display: grid;
    gap: 2rem;
}

.validation-case {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.validation-case:hover {
    border-color: #667eea;
    background: #f0f3ff;
}

.case-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.case-project-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.case-title {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0;
}

.case-explanation {
    margin-bottom: 2rem;
}

.case-explanation h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-explanation h5::before {
    content: "💡";
    font-size: 1.1rem;
}

.case-details {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #667eea;
}

.case-details ul {
    margin: 0.5rem 0 0 1rem;
    color: #555;
}

.case-details li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.case-details code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e74c3c;
}

/* Section d'images */
.case-images {
    margin-top: 2rem;
}

.case-images h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-images h6::before {
    content: "📸";
    font-size: 1.1rem;
}

.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.image-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: scale(1.02);
}

.image-placeholder {
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #e9ecef;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 2px dashed #ced4da;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: #667eea;
    background-color: #f0f3ff;
    color: #667eea;
}

.image-placeholder .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.image-placeholder .text {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.image-placeholder .subtext {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

.image-caption {
    padding: 1rem;
    background: white;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Images réelles */
.case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-image:hover {
    transform: scale(1.05);
}

/* Liens vers les fichiers */
.case-files {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.case-files h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-files h6::before {
    content: "📄";
    font-size: 1.1rem;
}

.files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.file-link:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Navigation entre compétences */
.competence-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.nav-button.disabled {
    background: #ced4da;
    color: #6c757d;
    cursor: not-allowed;
}

.nav-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Bouton pour ouvrir les images */
.image-open-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.image-open-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

.image-open-btn:active {
    transform: translateY(0);
}

/* ===== STYLES SPÉCIFIQUES POUR LA GRILLE ORALE PPP (COMPÉTENCE 6) ===== */

/* Section PPP principale */
.ppp-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    overflow: hidden;
    border-left: 4px solid #3498db;
}

.ppp-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1.5rem 2rem;
}

.ppp-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ppp-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-weight: 400;
}

.ppp-content {
    padding: 2rem;
}

/* Section Introduction */
.intro-definition,
.intro-stakes,
.intro-context {
    margin-bottom: 2rem;
}

.intro-definition h4,
.intro-stakes h4,
.intro-context h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.stakes-list {
    list-style: none;
    padding: 0;
}

.stakes-list li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.stakes-list li strong {
    color: #2c3e50;
}

/* Section Faits */
.fact-situation {
    background: #fafafa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.fact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.fact-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.25rem;
    flex: 1;
}

.fact-badge {
    background: #3498db;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 1rem;
}

.fact-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.fact-details h5 {
    color: #2c3e50;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
}

.fact-details ul {
    margin-bottom: 1.5rem;
}

.fact-details li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.fact-evidence h5 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.evidence-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.evidence-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.evidence-text strong {
    display: block;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.evidence-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Section Résultats */
.results-achievements {
    margin-bottom: 2rem;
}

.achievement-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #27ae60;
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.achievement-icon {
    font-size: 1.5rem;
}

.achievement-header h5 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.achievement-content ul {
    margin: 0;
}

.achievement-content li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.learning-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.validation-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.validation-status.validated {
    background: #d4edda;
    color: #155724;
}

.validation-status.in-progress {
    background: #fff3cd;
    color: #856404;
}

/* Métriques de performance */
.results-metrics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.results-metrics h4 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.metric-item {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
}

/* Section Bilan */
.self-assessment {
    margin-bottom: 2rem;
}

.skills-assessment {
    margin-top: 1.5rem;
}

.skill-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.skill-category h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-bars {
    display: grid;
    gap: 1rem;
}

.skill-item {
    display: grid;
    grid-template-columns: 1fr 200px 50px;
    align-items: center;
    gap: 1rem;
}

.skill-name {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
}

.skill-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    transition: width 0.3s ease;
}

.skill-level {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    font-weight: 500;
}

.strengths-weaknesses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.strengths-section,
.weaknesses-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.strengths-section h4 {
    color: #27ae60;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weaknesses-section h4 {
    color: #e74c3c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strengths-list,
.weaknesses-list {
    list-style: none;
    padding: 0;
}

.strengths-list li,
.weaknesses-list li {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.strengths-list li {
    border-left: 3px solid #27ae60;
}

.weaknesses-list li {
    border-left: 3px solid #e74c3c;
}

/* Section Conclusion */
.conclusion-synthesis {
    margin-bottom: 2rem;
}

.conclusion-synthesis h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.conclusion-synthesis p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.future-development {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.future-development h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.development-goals {
    display: grid;
    gap: 1.5rem;
}

.goal-timeframe {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.goal-timeframe h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-timeframe ul {
    margin: 0;
}

.goal-timeframe li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.competence-value {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.competence-value h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.competence-value p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.conclusion-quote {
    background: #ecf0f1;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.conclusion-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.conclusion-quote cite {
    font-size: 0.95rem;
    color: #666;
    font-style: normal;
}

/* Responsive Design pour PPP */
@media (max-width: 768px) {
    .fact-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .fact-badge {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .evidence-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .strengths-weaknesses {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .skill-bar {
        margin: 0.5rem 0;
    }
    
    .skill-level {
        text-align: left;
    }
}
