/* Fiche technique RIFSEEP - Styles personnalisés */

.section-rifseep {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    z-index: 1;
    overflow: hidden;
    position: relative;
}

.rifseep-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    overflow: hidden;
}

.rifseep-container::before {
    width: 80px;
    height: 80px;
    top: -40px;
    left: -40px;
    transform: rotate(45deg);
}

.rifseep-container::after {
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: -30px;
    transform: rotate(45deg);
}

.yellow-diamond {
    position: absolute;
    background: #ffeb3b;
    transform: rotate(45deg);
    z-index: 0;
}

.yellow-diamond-1 {
    width: 40px;
    height: 40px;
    top: 150px;
    left: -20px;
}

.yellow-diamond-2 {
    width: 60px;
    height: 60px;
    top: 300px;
    right: -30px;
}

.yellow-diamond-3 {
    width: 50px;
    height: 50px;
    bottom: 200px;
    left: -25px;
}

.yellow-diamond-4 {
    width: 70px;
    height: 70px;
    top: 50px;
    right: 100px;
}

/* En-tête avec image et logo */
.rifseep-header {
    position: relative;
    height: 300px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.rifseep-logo img {
    background: center/cover;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.rifseep-logo-section {
    position: relative;
    z-index: 2;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rifseep-title {
    background: #3262ac;
    color: white;
    padding: 15px 30px;
    border-radius: 0 0 10px 10px;
    font-size: 24px;
    font-weight: bold;
    position: relative;
}

.rifseep-title::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid #ffeb3b;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* Style pour l'image du décret */
.decree-image {
    max-width: 120px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.decree-image:hover {
    transform: scale(1.05);
}

/* Sections principales */
.rifseep-section {
    position: relative;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.rifseep-section-header {
    background: #3262ac;
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
}

.rifseep-section-header::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 40px;
    background: #3262ac;
    transform: skewX(-15deg);
}

.rifseep-section-header h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.rifseep-section-number {
    background: #2851a3;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 18px;
}

.rifseep-section-content {
    padding: 25px;
    line-height: 1.6;
}

/* Texte de référence avec décrets */
.reference-text {
    background: #f8f9fa;
    border-left: 4px solid #3262ac;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.reference-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.decree-info {
    margin-bottom: 15px;
    display: flex; 
    align-items: center; 
    gap: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #3262ac;
    margin: 0;
}

.decree-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    position: relative;
}

.decree-info::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 20px;
    width: 60px;
    height: 60px;
}

.decree-number {
    font-weight: bold;
    color: #3262ac;
    font-size: 16px;
}

.decree-date {
    color: #111827;
    font-style: italic;
    margin-top: 5px;
}

/* Listes avec puces personnalisées */
.rifseep-list {
    list-style: none;
    padding: 0;
}

.rifseep-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.rifseep-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #3262ac;
    font-weight: bold;
}

/* Encadrés d'information */
.info-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    position: relative;
}

.info-box::before {
    content: 'ℹ';
    position: absolute;
    left: 15px;
    top: 15px;
    width: 25px;
    height: 25px;
    background: #2196f3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.info-box-content {
    margin-left: 40px;
    color: #1565c0;
}

/* Cartes IFSE et CIA */
.ifse-cia-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.ifse-card, .cia-card {
    border-radius: 10px;
    padding: 20px;
    position: relative;
    color: white;
}

.ifse-card {
    background: linear-gradient(135deg, #64b5f6 0%, #1976d2 100%);
}

.cia-card {
    background: linear-gradient(135deg, #f06292 0%, #c2185b 100%);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
}

.card-subtitle {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    opacity: 0.9;
    margin-top: 5px;
}

.card-content {
    font-size: 14px;
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
}

/* Critères d'évaluation CIA */
.cia-criteria {
    margin: 20px 0;
}

.criteria-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.criteria-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.criteria-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.criteria-content {
    line-height: 1.5;
}

.criteria-valeur {
    background: #f8e7f3;
}

.criteria-equipe {
    background: #e3f2fd;
}

.criteria-connaissance {
    background: #e8f5e8;
}

.criteria-adaptation {
    background: #fff3e0;
}

/* Critères d'évaluation généraux */
.criteria-encadrement {
    background: #f3e5f5;
    border-left: 5px solid #ab47bc;
}

.criteria-encadrement h4 {
    color: #ab47bc;
}

.criteria-technicite {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
}

.criteria-technicite h4 {
    color: #2196f3;
}

.criteria-sujections {
    background: #e8f5e8;
    border-left: 5px solid #4caf50;
}

.criteria-sujections h4 {
    color: #4caf50;
}

/* Pourcentages circulaires */
.percentage-container {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.percentage-circle {
    text-align: center;
    position: relative;
}

.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 10px;
}

.circle-15 { background: #26c6da; }
.circle-12 { background: #ab47bc; }
.circle-10 { background: #5c6bc0; }

.percentage-label {
    font-size: 12px;
    color: #666;
    max-width: 100px;
}

/* Tableau des grilles */
.salary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.salary-table th {
    background: #3262ac;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.salary-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.salary-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.category-a { background: #e1f5fe !important; }
.category-b { background: #f3e5f5 !important; }
.category-c { background: #ffebee !important; }

/* Questions/Réponses */
.qa-section {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.question {
    background: #90caf9;
    color: #1565c0;
    padding: 15px 20px;
    font-weight: bold;
    border-radius: 20px;
    margin: 10px 0;
    display: inline-block;
}

.answer {
    padding: 20px;
    line-height: 1.6;
}

/* Icônes spéciales */
.icon-encadrement::before { content: '⭐'; }
.icon-technicite::before { content: '🔧'; }
.icon-sujections::before { content: '🚗'; }
.icon-valeur::before { content: '💎'; }
.icon-equipe::before { content: '👥'; }
.icon-connaissance::before { content: '💡'; }
.icon-adaptation::before { content: '🔄'; }

/* Responsive design */
@media (max-width: 768px) {
    .rifseep-container {
        padding: 10px;
    }
    
    .rifseep-header {
        height: 200px;
        padding: 15px;
    }
    
    .rifseep-logo img {
        max-height: 150px;
    }
    
    .rifseep-section-header {
        padding: 10px 15px;
        font-size: 16px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .rifseep-section-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
        line-height: 30px;
        margin: 0 auto;
    }
    
    .rifseep-section-header h2 {
        font-size: 24px;
        font-weight: bold;
        margin: 0;
    }

    .reference-title {
        font-size: 18px;
        font-weight: bold;
        text-align: center;
        margin: 0;
    }
    
    .decree-info {
        margin-bottom: 15px;
    }
    
    .ifse-cia-container {
        gap: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        color: #3262ac;
        margin: 0;
    }
    
    .criteria-box {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .criteria-icon {
        margin: 0 0 10px 0;
    }
    
    .percentage-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .percentage-circle {
        margin-bottom: 0;
    }
    
    .salary-table {
        font-size: 12px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .salary-table thead,
    .salary-table tbody,
    .salary-table tr {
        display: block;
    }
    
    .salary-table th,
    .salary-table td {
        padding: 8px 4px;
        display: inline-block;
        width: 18%;
        text-align: center;
        vertical-align: top;
    }
    
    .decree-image {
        max-width: 80px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .rifseep-container {
        padding: 5px;
    }
    
    .rifseep-header {
        height: 150px;
        padding: 10px;
    }
    
    .rifseep-logo img {
        max-height: 100px;
    }
    
    .rifseep-section-content {
        padding: 15px;
    }
    
    .salary-table th,
    .salary-table td {
        width: 20%;
        font-size: 10px;
        padding: 6px 2px;
    }
    
    .circle {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 14px;
    }
}
