* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Formulaire */
.form-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-section h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.form-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    text-align: center;
}

label::before {
    content: '✦';
    margin-right: 8px;
    color: #667eea;
    font-weight: bold;
}

input[type="text"], textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8f4fd;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    font-family: inherit;
    position: relative;
}

input[type="text"]:hover, textarea:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    background: white;
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

button {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

#previewBtn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

#previewBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

#generatePdfBtn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

#generatePdfBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

#clearBtn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

#clearBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

#exportBtn {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

#exportBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.3);
}

#importBtn {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: white;
}

#importBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(247, 151, 30, 0.3);
}

/* Section Liste des sauvegardes */
.saved-list-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.saved-list-section h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

.saved-list {
    max-height: 300px;
    overflow-y: auto;
}

.saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.saved-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.saved-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-weight: 600;
}

.saved-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

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

.load-btn, .delete-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.load-btn {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

.load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.3);
}

.delete-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.no-saves {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

/* Section Aperçu */
.preview-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#backToFormBtn {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

#backToFormBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

#downloadPdfBtn {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

#downloadPdfBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.3);
}

/* Page A4 - Styles pour l'aperçu uniquement */
.a4-page {
    width: 210mm;
    height: 297mm;
    margin: 0 auto;
    background: white;
    padding: 10mm; /* Padding réduit pour plus d'espace */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    font-size: 11pt;
    line-height: 1.4;
    border-radius: 8px;
    border: 1px solid #e8f4fd;
    color: #000000;
    transform: scale(0.9);
    transform-origin: center top;
    max-width: 100%; /* S'assurer que la page ne dépasse pas */
}

.a4-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 8px 8px 0 0;
}

.page-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    position: relative;
    border: 3px solid #e74c3c;
    border-radius: 12px;
    padding: 15px;
    background: rgba(231, 76, 60, 0.05);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f093fb, #f5576c);
    border-radius: 2px;
}

.page-header h1 {
    font-size: 18pt;
    color: #2c3e50;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin: 0;
}

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

.section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}

/* Section spéciale pour ÂGE, EFFECTIF, LIEU, DURÉE */
.section-row:has(#previewAge) {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.section-row:has(#previewAge) .section h2 {
    font-size: 10pt;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.section-row:has(#previewAge) .content {
    padding: 8px 10px;
    min-height: 35px;
    font-size: 9pt;
}

/* Icônes pour les titres ÂGE, EFFECTIF, LIEU, DURÉE */
.section-row:has(#previewAge) .section:nth-child(1) h2::before {
    content: '👶';
    margin-right: 8px;
    color: #f39c12;
    font-weight: bold;
}

.section-row:has(#previewAge) .section:nth-child(2) h2::before {
    content: '👥';
    margin-right: 8px;
    color: #f39c12;
    font-weight: bold;
}

.section-row:has(#previewAge) .section:nth-child(3) h2::before {
    content: '📍';
    margin-right: 8px;
    color: #f39c12;
    font-weight: bold;
}

.section-row:has(#previewAge) .section:nth-child(4) h2::before {
    content: '⏱️';
    margin-right: 8px;
    color: #f39c12;
    font-weight: bold;
}

/* Cadre orange pour les titres ÂGE, EFFECTIF, LIEU, DURÉE */
.section-row:has(#previewAge) .section h2 {
    border-color: #f39c12 !important;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2) !important;
}

.section-row .section {
    margin-bottom: 0;
}

.section h2 {
    font-size: 12pt;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    position: relative;
}

.section h2::before {
    content: '◆';
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.content {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e8f4fd;
    min-height: 45px;
    white-space: pre-wrap;
    text-align: left;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 10pt;
    color: #000000;
}

.content:hover {
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }
    
    .container {
        padding: 10px;
    }
    
    .form-section {
        padding: 25px;
        border-radius: 15px;
    }
    
    .form-section h1 {
        font-size: 2em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .a4-page {
        width: 100%;
        height: auto;
        padding: 20mm;
        font-size: 11pt;
        border-radius: 0;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    button {
        width: 100%;
        max-width: 250px;
    }
    
    .preview-controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Styles pour l'impression */
@media print {
    body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        color: black !important;
    }
    
    .form-section, .preview-controls {
        display: none !important;
    }
    
    .preview-section {
        box-shadow: none !important;
        padding: 0 !important;
        background: white !important;
        display: block !important;
        margin: 0 !important;
    }
    
    .a4-page {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 15mm !important;
        border-radius: 0 !important;
        border: none !important;
        background: white !important;
        width: 210mm !important;
        height: auto !important;
        color: black !important;
        transform: none !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        max-width: none !important;
        overflow: visible !important;
    }
    
    .a4-page::before {
        display: none !important;
    }
    
    .page-header {
        box-shadow: none !important;
        border: none !important;
        background: white !important;
        border-radius: 0 !important;
        padding: 10px 0 !important;
        margin-bottom: 20px !important;
        color: black !important;
    }
    
    .page-header h1 {
        box-shadow: none !important;
        text-shadow: none !important;
        font-size: 18pt !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
        margin: 0 !important;
        color: black !important;
        text-align: center !important;
    }
    
    .section h2 {
        box-shadow: none !important;
        text-shadow: none !important;
        background: white !important;
        border-radius: 0 !important;
        color: black !important;
        border: none !important;
        padding: 10px 0 !important;
        margin-bottom: 12px !important;
        font-size: 12pt !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
    }
    
    .content {
        box-shadow: none !important;
        background: white !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 10px 0 !important;
        margin-bottom: 18px !important;
        font-size: 10pt !important;
        min-height: 45px !important;
        color: black !important;
        white-space: pre-wrap !important;
        text-align: left !important;
    }
    
    /* Supprimer toutes les ombres de texte et effets visuels */
    * {
        text-shadow: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: white !important;
        color: black !important;
    }
    
    .section-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        margin-bottom: 18px !important;
    }
    
    .section-row:has(#previewAge) {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
    }
    
    .section-row:has(#previewAge) .section h2 {
        font-size: 10pt !important;
        padding: 8px 0 !important;
        margin-bottom: 8px !important;
    }
    
    .section-row:has(#previewAge) .content {
        padding: 8px 0 !important;
        min-height: 35px !important;
        font-size: 9pt !important;
    }
    
    /* Icônes pour l'impression PDF - ÂGE, EFFECTIF, LIEU, DURÉE */
    .section-row:has(#previewAge) .section:nth-child(1) h2::before {
        content: '👶';
        margin-right: 8px;
        color: black;
        font-weight: bold;
    }
    
    .section-row:has(#previewAge) .section:nth-child(2) h2::before {
        content: '👥';
        margin-right: 8px;
        color: black;
        font-weight: bold;
    }
    
    .section-row:has(#previewAge) .section:nth-child(3) h2::before {
        content: '📍';
        margin-right: 8px;
        color: black;
        font-weight: bold;
    }
    
    .section-row:has(#previewAge) .section:nth-child(4) h2::before {
        content: '⏱️';
        margin-right: 8px;
        color: black;
        font-weight: bold;
    }
    
    /* Supprimer les couleurs spéciales pour l'impression PDF */
    .section-row:has(#previewAge) .section h2 {
        border: none !important;
        background: white !important;
        color: black !important;
    }
    
    .section:has(#previewDeroulement) h2::before {
        content: '📝';
        margin-right: 8px;
        color: black;
        font-weight: bold;
    }
    
    /* S'assurer que tous les éléments sont visibles */
    .section, .section-row, .content, .page-header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .section-row > * {
        display: block !important;
    }
}

/* Animation pour les transitions */
.form-section, .preview-section {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Amélioration de l'accessibilité */
button:focus, input:focus, textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Styles pour les états de chargement */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Effet de particules en arrière-plan */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Style parchemin pour les titres uniquement */
label[for="nomActivite"] {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    border: 3px solid #e74c3c;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    position: relative;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c3e50;
}

label[for="nomActivite"]::before {
    content: '📋';
    margin-right: 10px;
    font-size: 1.2em;
}

/* Titres pour ÂGE, EFFECTIF, LIEU, DURÉE */
.form-row:has(#age) label {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    border: 3px solid #f39c12;
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
    position: relative;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #2c3e50;
    font-size: 0.9em;
}

/* Icônes spécifiques pour chaque champ */
.form-row:has(#age) label[for="age"]::before {
    content: '👶';
    margin-right: 8px;
    font-size: 1.1em;
}

.form-row:has(#age) label[for="effectif"]::before {
    content: '👥';
    margin-right: 8px;
    font-size: 1.1em;
}

.form-row:has(#age) label[for="lieu"]::before {
    content: '📍';
    margin-right: 8px;
    font-size: 1.1em;
}

.form-row:has(#age) label[for="duree"]::before {
    content: '⏱️';
    margin-right: 8px;
    font-size: 1.1em;
}

/* Titres pour OBJECTIFS et MATÉRIEL */
.form-row:has(#objectifs) label {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    border: 3px solid #3498db;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    position: relative;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #2c3e50;
}

.form-row:has(#objectifs) label::before {
    content: '🚩';
    margin-right: 10px;
    font-size: 1.2em;
}

/* Titre pour SENSIBILISATION */
label[for="sensibilisation"] {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    border: 3px solid #87ceeb;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.2);
    position: relative;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #2c3e50;
}

label[for="sensibilisation"]::before {
    content: '🎨';
    margin-right: 10px;
    font-size: 1.2em;
}

/* Titre pour DÉROULEMENT */
label[for="deroulement"] {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    border: 3px solid #27ae60;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
    position: relative;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #2c3e50;
}

label[for="deroulement"]::before {
    content: '📝';
    margin-right: 10px;
    font-size: 1.2em;
}

/* Titres pour CONCLUSION et ANIMATEURS */
.form-row:has(#conclusion) label {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    border: 3px solid #9b59b6;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.2);
    position: relative;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #2c3e50;
}

.form-row:has(#conclusion) label::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
}

/* Configuration pour ÂGE, EFFECTIF, LIEU, DURÉE */
.form-row:has(#age) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.form-row:has(#age) .form-group {
    margin-bottom: 0;
}

.form-row:has(#age) input[type="text"] {
    width: 100%;
    min-width: 120px;
    max-width: none;
    margin: 0;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e8f4fd;
    transition: all 0.3s ease;
}

.form-row:has(#age) input[type="text"]:hover {
    border-color: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.15);
}

.form-row:has(#age) input[type="text"]:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
    transform: translateY(-2px);
    background: white;
}

/* Style parchemin pour les titres de l'aperçu A4 */
.page-header h1 {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    border: 3px solid #e74c3c;
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c3e50;
    position: relative;
}

.page-header h1::before {
    content: '📋';
    margin-right: 15px;
    font-size: 1.3em;
}

.section h2 {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    border: 3px solid;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.8px;
    color: #2c3e50;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-row:has(#previewObjectifs) .section h2 {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.section:has(#previewSensibilisation) h2 {
    border-color: #87ceeb;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.2);
}

.section:has(#previewDeroulement) h2 {
    border-color: #27ae60;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.section-row:has(#previewConclusion) .section h2 {
    border-color: #9b59b6;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.2);
}

.section h2::before {
    content: '◆';
    margin-right: 10px;
    color: #667eea;
    font-weight: bold;
}

.section-row:has(#previewObjectifs) .section h2::before {
    content: '🚩';
    margin-right: 10px;
    color: #3498db;
    font-weight: bold;
}

.section-row:has(#previewConclusion) .section h2::before {
    content: '✅';
    margin-right: 10px;
    color: #9b59b6;
    font-weight: bold;
}

/* OBJECTIFS */
.form-row:has(#objectifs) label[for="objectifs"]::before {
    content: '🚩';
    margin-right: 10px;
    font-size: 1.2em;
}

/* MATÉRIEL NÉCESSAIRE */
.form-row:has(#materiel) label[for="materiel"]::before {
    content: '🎯';
    margin-right: 10px;
    font-size: 1.2em;
}

/* CONCLUSION/RANGEMENT */
.form-row:has(#conclusion) label[for="conclusion"]::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
}

/* ANIMATEUR(S) REQUIS */
.form-row:has(#animateurs) label[for="animateurs"]::before {
    content: '👤';
    margin-right: 10px;
    font-size: 1.2em;
}

/* Aperçu PDF - OBJECTIFS */
.section-row:has(#previewObjectifs) .section:has(#previewObjectifs) h2::before {
    content: '🚩';
    margin-right: 10px;
    color: #3498db;
    font-weight: bold;
}

/* Aperçu PDF - MATÉRIEL */
.section-row:has(#previewMateriel) .section:has(#previewMateriel) h2::before {
    content: '🎯';
    margin-right: 10px;
    color: #3498db;
    font-weight: bold;
}

/* Aperçu PDF - CONCLUSION */
.section-row:has(#previewConclusion) .section:has(#previewConclusion) h2::before {
    content: '✅';
    margin-right: 10px;
    color: #9b59b6;
    font-weight: bold;
}

/* Aperçu PDF - ANIMATEURS */
.section-row:has(#previewAnimateurs) .section:has(#previewAnimateurs) h2::before {
    content: '👤';
    margin-right: 10px;
    color: #9b59b6;
    font-weight: bold;
}

.section:has(#previewSensibilisation) h2::before {
    content: '🎨';
    margin-right: 10px;
    color: #87ceeb;
    font-weight: bold;
}

.section:has(#previewDeroulement) h2::before {
    content: '📝';
    margin-right: 10px;
    color: #27ae60;
    font-weight: bold;
} 