/* ===== VARIABLES THÉMATIQUES PERSONNALISABLES ===== */
        :root {
            /* COULEURS CALCUL POINTS AGIRC-ARRCO */
            --couleur-principale: #4a90e2;
            --couleur-principale-foncee: #357abd;
            --couleur-secondaire: #2c3e50;
            --couleur-accent: #4a90e2;
            
            --couleur-fond: #f5f7fa;
            --couleur-texte: #333333;
            --couleur-texte-clair: #6c757d;
            --border-radius: 12px;
            --ombre-legere: 0 2px 10px rgba(0,0,0,0.05);
            --ombre-moyenne: 0 5px 15px rgba(0,0,0,0.1);
            --ombre-forte: 0 4px 20px rgba(0,0,0,0.1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.8;
            background: var(--couleur-fond);
            padding: 20px;
            font-size: 16px;
            color: var(--couleur-texte);
        }
		
		/* Par défaut on verrouille TOUT (pas de FOUC) */
		  html.pr-lock body > * { display: none !important; }
		  html.pr-lock #pr-guard { display: grid !important; place-items: center; font: 700 16px system-ui; padding: 2rem; }
		  html.pr-ok    #pr-guard { display: none !important; }
        
        .container {
			max-width: 1200px;
            margin: 0 auto;
	    margin-top:80px;
            border-radius: var(--border-radius);
            overflow: hidden;
        }
		
		.selecteur-generation select {
			padding: 10px 15px;
			border: 2px solid var(--couleur-principale);
			border-radius: 8px;
			font-size: 16px;
			background: white;
			color: var(--couleur-texte);
			min-width: 250px;
		}
		
		.selecteur-generation {
		background: white;
		border: 2px solid var(--couleur-principale);
		border-radius: 10px;
		padding: 15px;
		margin: 20px 0;
		text-align: center;
	}
        
        /* ===== EN-TÊTE MODULAIRE ===== */
        .header {
            color: white;
            padding: 20px 20px;
            text-align: center;
        }
        
        .header h1 {
            font-size: 2.2rem;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .header .subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            font-weight: 300;
            margin-bottom: 15px;
        }
        
        .header .reference {
            background: rgba(255,255,255,0.2);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            display: inline-block;
        }
        
        /* ===== NAVIGATION MODULAIRE ===== */
        .nav-simple {
            background: #e8f4f8;
            padding: 15px 30px;
            border-bottom: 3px solid var(--couleur-principale);
			margin-bottom: 50px;
        }
        
        .nav-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .nav-btn {
            background: white;
            border: 2px solid var(--couleur-principale);
            color: var(--couleur-principale);
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .nav-btn:hover, .nav-btn.active {
            background: var(--couleur-principale);
            color: white;
            transform: translateY(-2px);
        }
        
        .content {
            padding-top: 0px;
        }
        
        .section {
            background: white;
            padding: 30px;
            margin-bottom: 30px;
            display: none;
        }
        
        .section.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .section-principale {
            border-left: 6px solid var(--couleur-principale);
        }
        
        .section-chapitre {
            border-left: 6px solid var(--couleur-secondaire);
        }
        
        .titre-niveau-1 {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--couleur-secondaire);
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .titre-niveau-2 {
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--couleur-texte);
            margin: 25px 0 15px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .titre-niveau-3 {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--couleur-secondaire);
            margin: 10px 0 15px 0;
            align-items: center;
            gap: 8px;
        }
        
        .titre-icone {
            font-size: 1.5em;
            color: var(--couleur-principale);
        }
        
        .paragraphe {
            margin-bottom: 15px;
            line-height: 1.7;
        }
        
        .numero-element {
            background: var(--couleur-principale);
            color: white;
            padding: 4px 12px;
            border-radius: 15px;
            font-weight: 600;
            font-size: 0.9rem;
            margin-right: 10px;
            display: inline-block;
        }
        
        .encadre {
            padding: 25px;
            margin: 25px 0;
            border-radius: 8px;
            border-left: 6px solid;
        }
        
        .encadre-info {
			background: #f8f9fb;
			border: 2px solid #4a90e2;
			border-radius: 15px;
			box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
			text-align: left;
			padding: 15px;
			margin-bottom: 20px;
		}
		
		.encadre-contexte {
			background: #e8f4fd;
			border: 2px solid #4a90e2;
			border-radius: 15px;
			box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
			padding: 15px;
			margin-bottom: 20px;
		}
        
        .encadre-attention {
            background: #fff3e0;
            border-left-color: #ff9800;
            box-shadow: 0 2px 10px rgba(255, 152, 0, 0.1);
        }
		
		.encadre-attention p
		{
			font-weight:normal;
		}
        
        .encadre-important {
            background: #ffebee;
            border-left-color: #f44336;
            box-shadow: 0 2px 10px rgba(244, 67, 54, 0.1);
        }
        
        .encadre-conseil {
			background: #f8f9fb;
			border: 2px solid #4a90e2;
			border-radius: 15px;
			box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
			text-align: left;
			padding: 15px;
			margin-bottom: 20px;
		}
		
		.encadre-vigilance {
			background: #ffeaea;
			border: 2px solid #ff6b6b;
			border-radius: 15px;
			box-shadow: 0 2px 10px rgba(255, 107, 107, 0.1);
			padding: 15px;
			margin-bottom: 25px;
			margin-top: 25px;
		}
        
        .encadre-formule {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            color: var(--couleur-secondaire);
            text-align: center;
            padding-left: 30px;
	    padding-right: 30px;
	    padding-bottom: 30px;
            border-radius: 15px;
            margin: 30px 0;
            box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
            border: 2px solid #2196f3;
        }
        
        .formule-principale {
            font-size: 1.2rem;
            font-weight: bold;
            margin: 15px 0;
            padding: 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            border-left: 4px solid #2196f3;
        }
        
        .formule-elements {
            display: flex;
            justify-content: space-around;
            align-items: center;
            margin: 20px 0;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .element-formule {
            background: #f8f9fa;
            padding: 15px 20px;
            border-radius: 10px;
            border: 2px dashed #2196f3;
            font-weight: 600;
            color: var(--couleur-secondaire);
            text-align: center;
            flex: 1;
            min-width: 150px;
        }
        
        .operateur {
            font-size: 1.5rem;
            color: #2196f3;
            font-weight: bold;
        }
        
        .liste-numerotee {
            list-style: none;
            margin: 20px 0;
            padding: 0;
        }
        
        .liste-numerotee li {
            padding: 10px 0;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .liste-numerotee li:last-child {
            border-bottom: none;
        }
        
        .numero-liste {
            background: var(--couleur-principale);
            color: white;
            padding: 6px 12px;
            border-radius: 50%;
            font-weight: 600;
            font-size: 0.9rem;
            min-width: 35px;
            text-align: center;
        }
        
        .liste-puces {
            list-style: none;
            margin: 20px 0;
            padding: 0;
        }
        
        .liste-puces li {
            padding: 8px 0;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
        
        .puce-icone {
            color: var(--couleur-principale);
            font-weight: bold;
            font-size: 1.2rem;
            min-width: 20px;
        }
        
        .tableau-moderne {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
            font-size: 16px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--ombre-moyenne);
        }
        
        .tableau-moderne th {
            background: linear-gradient(135deg, var(--couleur-principale), var(--couleur-principale-foncee));
            color: white;
            padding: 12px 8px;
            text-align: center;
            font-weight: 600;
            font-size: 13px;
        }
        
        .tableau-moderne td {
            padding: 10px 8px;
            border-bottom: 1px solid #f0f0f0;
            vertical-align: top;
            text-align: center;
            font-weight: 500;
        }
        
        .tableau-moderne tr:nth-child(even) {
            background: #f8f9fa;
        }
		
		.tableau-moderne tr:nth-child(odd) {
			background: #f8f9fa;
		}
        
        .tableau-moderne tr:hover {
            background: #e8f4f8;
            transform: scale(1.01);
            transition: all 0.3s ease;
        }
        
        .citation {
            background: linear-gradient(135deg, var(--couleur-accent) 0%, #764ba2 100%);
            color: white;
            padding: 20px 25px;
            border-radius: 10px;
            margin: 25px 0;
            font-style: italic;
            font-size: 1.1rem;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        }
		
		.mise-en-valeur
		{
			font-weight:800;
		}
                
        .encadre-conseil-expert {
            background: white;
            border: 2px solid #4a90e2;
            border-radius: 15px;
            padding-bottom: 25px;
            margin: 25px 0;
            box-shadow: 0 5px 20px rgba(74, 144, 226, 0.15);
            text-align: center;
			padding-left: 15px;
			padding-right: 15px;
        }
		
		.encadre-conseil-expert p
		{
			font-weight: normal;
		}
		
		.citation
		{
			font-weight: normal;
			margin: 30px;
		}
        
        .conseil-icone {
            font-size: 3rem;
            margin: 15px 0;
            color: #ffc107;
        }
        
        .pictogramme-large {
            font-size: 3rem;
            margin: 15px 0;
            color: var(--couleur-principale);
        }
        
        .groupe-boutons {
            margin: 30px 0;
            text-align: center;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .btn-principal {
            background: linear-gradient(135deg, var(--couleur-principale), var(--couleur-principale-foncee));
            color: white;
            padding: 15px 30px;
            border: none;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
        }
        
        .btn-principal:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
        }
        
        .btn-secondaire {
            background: white;
            color: var(--couleur-principale);
            border: 2px solid var(--couleur-principale);
            padding: 13px 28px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-secondaire:hover {
            background: var(--couleur-principale);
            color: white;
            transform: translateY(-2px);
        }
        
        .btn-telecharger {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            border: none;
            padding: 13px 28px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
        }
        
        .btn-telecharger:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
        }
        
        .btn-imprimer {
            background: linear-gradient(135deg, #6f42c1, #e83e8c);
            color: white;
            border: none;
            padding: 13px 28px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
        }
        
        .btn-imprimer:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(111, 66, 193, 0.4);
        }
        
        .footer {
            background: linear-gradient(135deg, var(--couleur-secondaire), #34495e);
            color: white;
            padding: 30px 40px;
            margin-top: 40px;
        }
        
        .footer .info-contact {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }
        
        .footer .contact-principal {
            flex: 1;
        }
        
        .footer .references {
            background: rgba(255,255,255,0.1);
            padding: 15px 20px;
            border-radius: 10px;
            text-align: center;
        }
        
        .taux-badge {
            background: #e3f2fd;
            color: #1976d2;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: bold;
            margin: 2px;
        }
        
        .evolution-timeline {
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            height: 15px;
            border-radius: 10px;
            margin: 20px 0;
            position: relative;
        }
        
        .timeline-marker {
            position: absolute;
            top: -8px;
            width: 35px;
            height: 35px;
            background: white;
            border: 3px solid var(--couleur-principale);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
        }
        
        .calcul-exemple {
            background: #f8f9fa;
            border: 2px dashed var(--couleur-principale);
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
        }
        
        .etape-calcul {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 10px 0;
            padding: 15px;
            background: white;
            border-radius: 10px;
            box-shadow: var(--ombre-legere);
        }
		
		.paragraphe {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 20px 0;
            line-height: 1.6;
        }
        
        .numero-element {
            background-color: #4A90E2;
            color: white;
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
            flex-shrink: 0;
        }
        
        .contenu-texte {
            flex: 1;
        }
        
        .etape-numero {
            background: var(--couleur-principale);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
        }
		
		/* ===== CARTES RÉGIMES ===== */
        .regimes-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(350px, 1fr));
            gap: 25px;
            margin: 30px 0;
        }
        
        .regime-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: var(--ombre-moyenne);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .regime-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--ombre-forte);
        }
        
        .card-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .card-icon {
            font-size: 2.5rem;
            background: linear-gradient(135deg, var(--couleur-principale), var(--couleur-accent));
            padding: 15px;
            border-radius: 15px;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
        }
        
        .card-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--couleur-secondaire);
            margin-bottom: 5px;
        }
        
        .card-subtitle {
            font-size: 0.9rem;
            color: var(--couleur-texte-clair);
        }
        
        .regime-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 15px;
            padding: 12px;
            background: #f8fafc;
            border-radius: 10px;
            border-left: 3px solid var(--couleur-principale);
        }
        
        .regime-type {
            background: var(--couleur-principale);
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
            min-width: 80px;
            text-align: center;
        }
        
        .regime-name {
            font-weight: 600;
            color: var(--couleur-texte);
            flex: 1;
        }
        
        .regime-description {
            font-size: 0.85rem;
            color: var(--couleur-texte-clair);
            margin-top: 5px;
        }
		
		/* ===== TABLEAU SYNTHÈSE ===== */
        .synthese-table {
            width: 100%;
            border-collapse: collapse;
            margin: 30px 0;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--ombre-moyenne);
        }
        
        .synthese-table th {
            background: linear-gradient(135deg, var(--couleur-principale), var(--couleur-principale-foncee));
            color: white;
            padding: 15px 12px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
        }
        
        .synthese-table td {
            padding: 12px;
            border-bottom: 1px solid #e2e8f0;
            vertical-align: top;
        }
        
        .synthese-table tr:nth-child(even) {
            background: #f8fafc;
        }
        
        .synthese-table tr:hover {
            background: #e8f4f8;
        }
        
        .statut-badge {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.85rem;
            font-weight: 600;
            margin: 2px;
        }
        
        .statut-salarie { background: #dbeafe; color: #1d4ed8; }
        .statut-fonctionnaire { background: #dcfce7; color: #166534; }
        .statut-independant { background: #fef3c7; color: #92400e; }
        .statut-special { background: #fce7f3; color: #be185d; }
        .statut-ferme { background: #f3f4f6; color: #6b7280; text-decoration: line-through; }
        
        @media (max-width: 768px) {
            body {
                padding: 5px;
                font-size: 15px;
                margin-top: 100px;
            }
            
            .regimes-grid { 
                grid-template-columns: 1fr; 
            }
            
            .synthese-table {
                font-size: 12px;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding: 10px;
                font-size: 15px;
            }
            
                        
            .header {
                padding: 25px 20px;
            }
            
            .header h1 {
                font-size: 1.8rem;
            }
            
            .nav-buttons {
                justify-content: center;
            }
            
            .groupe-boutons {
                flex-direction: column;
                align-items: stretch;
            }
            
            .footer .info-contact {
                flex-direction: column;
                text-align: center;
            }
            
            .tableau-moderne {
                font-size: 12px;
            }
            
            .tableau-moderne th,
            .tableau-moderne td {
                padding: 6px 4px;
            }
            
            .etape-calcul {
                flex-direction: column;
                text-align: center;
            }
        }