    /* Reset CSS */
    * {
        box-sizing: border-box;
    }

    /* Styles généraux */
    .print-only {
        display: none !important;
    }

    /* Styles d'impression */
    @media print {
        @page {
            size: A4;
            margin: 0;
        }

        body {
            margin: 0;
            padding: 0;
            background: white;
            font-family: Arial, sans-serif;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        .no-print, .screen-only {
            display: none !important;
        }

        .print-only {
            display: block !important;
        }

        .print-page {
            width: 210mm;
            height: 296mm; /* Hauteur A4 moins un chouïa pour éviter le débordement */
            position: relative;
            page-break-after: always;
            overflow: hidden;
            background: white;
        }

        /* --- Page 1 : Affiche --- */
        .page-1 {
            background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 40px;
            height: 150px;
        }

        .header-logo-academie img {
            height: 80px;
            object-fit: contain;
        }

        .header-title {
            background-color: #ffe0b2 !important;
            padding: 15px 25px;
            border: 2px solid #ffe0b2;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
            box-shadow: inset 0 0 0 1000px #ffe0b2 !important; /* Force le fond à l'impression */
        }

        .header-title h1 {
            font-size: 20px;
            color: #2c3e50 !important;
            text-align: right;
            margin: 0;
            line-height: 1.2;
            text-transform: uppercase;
            font-weight: bold;
        }

        .poster-content {
            height: calc(100% - 300px); /* Ajustement pour header et footer */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .poster-title-box {
            background-color: #ffe0b2 !important; /* Orange clair */
            color: #2c3e50 !important; /* Texte foncé pour le contraste */
            padding: 40px 60px;
            transform: rotate(-2deg);
            box-shadow: 10px 10px 0 rgba(0,0,0,0.05), inset 0 0 0 1000px #ffe0b2 !important; /* Ajout inset pour impression */
            max-width: 80%;
            text-align: center;
            margin-bottom: 60px;
            z-index: 10;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
            border: 2px solid #ffe0b2; /* Bordure de même couleur pour assurer la visibilité */
        }

        .formation-title {
            font-size: 36px;
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 2px;
            line-height: 1.3;
        }

        .formation-family {
            margin-top: 15px;
            font-size: 18px;
            color: #444; /* Gris foncé au lieu de blanc */
            font-style: italic;
        }

        .poster-info {
            text-align: center;
            margin-bottom: 40px;
        }

        .info-access h3 {
            font-size: 16px;
            color: #666;
            margin-bottom: 15px;
            letter-spacing: 3px;
            text-transform: uppercase;
        }

        .access-types {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .access-badge {
            background: #d4af37;
            color: white;
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: bold;
            font-size: 16px;
            text-transform: uppercase;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .poster-footer {
            position: absolute;
            bottom: 40px;
            left: 40px;
            right: 40px;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            height: 100px;
        }

        .footer-logo-lpro img {
            height: 120px; /* Plus grand comme demandé */
            object-fit: contain;
            /* Positionnement spécifique pour "bas à gauche de la première image" - ici bas gauche page */
        }

        .footer-qr {
            text-align: center;
        }

        .footer-qr img {
            width: 100px;
            height: 100px;
            object-fit: contain;
        }

        .footer-logo-greta img {
            height: 60px;
            object-fit: contain;
        }

        /* --- Page 2 : Détails --- */
        .page-2 {
            padding: 40px;
            display: flex;
            flex-direction: column;
        }

        .details-header {
            border-bottom: 3px solid #d4af37;
            padding-bottom: 20px;
            margin-bottom: 30px;
        }

        .details-header h2 {
            color: #2c3e50;
            font-size: 28px;
            margin: 0;
            text-transform: uppercase;
        }

        .details-content {
            display: flex;
            gap: 40px;
            flex: 1;
        }

        .details-left {
            flex: 2; /* 66% largeur */
        }

        .details-right {
            flex: 1; /* 33% largeur */
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            height: fit-content;
        }

        .detail-section {
            margin-bottom: 30px;
            page-break-inside: avoid;
        }

        .detail-section h3 {
            color: #d4af37;
            font-size: 18px;
            border-bottom: 1px solid #eee;
            padding-bottom: 8px;
            margin-bottom: 10px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .detail-section h3 i {
            color: #2c3e50;
        }

        .section-content {
            font-size: 12px;
            line-height: 1.5;
            text-align: justify;
            color: #333;
        }

        .details-right h3 {
            color: #2c3e50;
            font-size: 16px;
            text-align: center;
            margin-top: 0;
            margin-bottom: 20px;
            text-transform: uppercase;
            border-bottom: 2px solid #d4af37;
            padding-bottom: 10px;
        }

        .etablissements-list-visual {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .etab-visual-item {
            background: white;
            padding: 10px;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            text-align: center;
            page-break-inside: avoid;
        }

        .etab-logo {
            max-width: 100%;
            height: 50px;
            object-fit: contain;
            margin-bottom: 8px;
        }

        .etab-no-logo {
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #eee;
            color: #666;
            font-size: 10px;
            margin-bottom: 8px;
        }

        .etab-name {
            font-weight: bold;
            font-size: 11px;
            color: #2c3e50;
            margin-bottom: 2px;
        }

        .etab-city {
            font-size: 10px;
            color: #777;
            text-transform: uppercase;
        }
    }

    /* Styles pour l'écran (conservation du style original pour l'écran) */
    .formation-container {
        width: 100%;
        margin: 0 auto;
        background: white;
        padding: 30px;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        border-radius: 8px;
    }

    .formation-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 25px;
        height: 90px;
    }
    
    .header-left, .header-right {
        width: 30%;
        height: 100%;
    }
    
    .header-center {
        width: 35%;
        text-align: center;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .domain-box, .level-box {
        border: 2px solid #007bff;
        border-radius: 8px;
        padding: 10px;
        height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
    }
    
    .domain-box:hover, .level-box:hover {
        border-color: #0056b3;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }
    
    .box-label {
        font-weight: bold;
        font-size: 12px;
        margin-bottom: 2px;
        color: #007bff;
    }
    
    .box-subtitle {
        font-size: 10px;
        color: #6c757d;
        font-style: italic;
    }
    
    .box-value {
        font-size: 16px;
        font-weight: 500;
        color: #212529;
        margin-top: 3px;
    }
    
    .logo {
    max-height: 80px;
    max-width: 170px;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    object-fit: contain;
}
    
    .logo:hover {
        transform: scale(1.05);
    }
    
    /* Champs de formulaire */
    .form-field {
        margin-bottom: 20px;
    }
    
    .form-field label {
        display: block;
        font-weight: bold;
        margin-bottom: 8px;
        font-size: 12px;
        color: #495057;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .form-value {
        border: 1px solid #ced4da;
        border-radius: 6px;
        padding: 12px;
        font-size: 14px;
        min-height: 45px;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
    }
    
    .form-value:hover {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    }
    
    /* Section à deux colonnes */
    .two-column-section {
        display: flex;
        gap: 20px;
        margin-top: 25px;
    }
    
    .column {
        flex: 1;
    }
    
    .column-left .form-field:first-child .form-value {
        min-height: 140px;
    }
    
    .column-left .form-field:last-child .form-value {
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .column-right .form-field:first-child .form-value {
        min-height: 140px;
    }
    
    .column-right .form-field:last-child .form-value {
        min-height: 200px;
    }
    
    /* Boutons */
    .button-section {
        text-align: center;
        margin-top: 35px;
    }
    
    .action-btn {
        padding: 10px 25px;
        margin: 0 8px;
        border-radius: 4px;
        font-weight: 500;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    .action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .btn-primary {
        background: #007bff;
        color: white;
        border: none;
    }
    
    .btn-primary:hover {
        background: #0069d9;
    }
    
    .btn-danger {
        background: #dc3545;
        color: white;
        border: none;
    }
    
    .btn-danger:hover {
        background: #c82333;
    }
    
    /* Grille des établissements */
    .etablissements-grid {
        display: flex;
        gap: 20px;
        justify-content: space-between;
    }
    
    .etablissements-column {
        flex: 1;
        min-width: 0;
    }
    
    .etablissements-column .etablissements-list {
        margin: 0;
    }
    
    .etablissements-column .etablissements-list li {
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .etablissements-list {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }
    
    .etablissements-list li {
        margin-bottom: 8px;
        position: relative;
        padding-left: 20px;
    }
    
    .etablissements-list li:before {
        content: '';
        display: none;
    }
    
    .etablissement-link {
        color: #007bff;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .etablissement-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    /* Section établissements en pleine largeur */
    .etablissements-full-section {
        margin-top: 25px;
        width: 100%;
    }
    
    .etablissements-full-section .form-field {
        margin-bottom: 20px;
    }
    
    .etablissements-full-section .form-value {
        min-height: 120px;
    }
    
    /* Tableau des établissements */
    .etablissements-table {
        width: 100%;
        border-collapse: collapse;
        margin: 0;
    }
    
    .etablissement-cell {
        width: 50%;
        padding: 8px;
        vertical-align: top;
        border: none;
    }
    
    .etablissement-item {
        margin-bottom: 15px;
        padding: 15px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px;
        border-left: 4px solid #007bff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .etablissement-item:hover {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,123,255,0.2);
        border-left-color: #0056b3;
    }
    
    .etablissement-icon {
        color: #007bff;
        font-size: 18px;
        min-width: 20px;
    }
    
    .etablissement-link {
        text-decoration: none;
        color: inherit;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .etablissement-link:hover {
        text-decoration: none;
        color: inherit;
    }
    
    .etablissement-nom {
        font-weight: 600;
        color: #2c3e50;
        font-size: 14px;
        line-height: 1.3;
    }
    
    .etablissement-mode {
        font-size: 12px;
        color: #6c757d;
        font-style: italic;
        background: rgba(0,123,255,0.1);
        padding: 2px 8px;
        border-radius: 12px;
        display: inline-block;
        margin-top: 2px;
    }
    
    .etablissements-summary {
        margin-top: 20px;
        padding: 15px;
        background: #f1f3f4;
        border-radius: 8px;
        border-left: 4px solid #28a745;
    }
    
    .etablissements-summary p {
        margin: 0;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .etablissements-summary .fas {
        color: #28a745;
    }
    
    .no-etablissement {
        color: #6c757d;
        font-style: italic;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 20px;
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        border-radius: 8px;
    }
    
    .no-etablissement .fas {
        color: #f39c12;
        font-size: 18px;
    }
    
    /* Bouton d'impression */
    .print-btn {
        padding: 8px 20px;
        background-color: #6c757d;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .print-btn:hover {
        background-color: #5a6268;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Masquer le footer à l'impression */
    @media print {
        footer {
            display: none !important;
        }
    }
