<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Curriculum Vitae</title>
   
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 20px;
        }

        .container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            max-width: 600px;
            margin: auto;
        }

        header, section {
            margin-bottom: 20px;
        }

        h2 {
            color: #333;
            margin-bottom: 10px;
            border-bottom: 2px solid #007BFF;
            padding-bottom: 5px;
        }

        label {
            font-weight: bold;
            display: block;
            margin-bottom: 5px;
        }

        .field-display {
            background-color: #f9f9f9;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 10px;
            margin-bottom: 15px;
        }

        .mb-3 {
            margin-bottom: 15px;
        }

    </style>
</head>
<body>
    <div class="container">
        <header>
            <div class="mb-3">
                <label>Nom et prénoms :</label>
                <div class="field-display">{{ cv.nom_prenom }}</div>

                <label>Email :</label>
                <div class="field-display">{{ cv.email }}</div>

                {% if cv.numero %}
                <label>Numéro :</label>
                <div class="field-display">{{ cv.numero }}</div>
                {% endif %}
            </div>
        </header>

        <section class="profil">
            <h2>PROFILE</h2>
            <div class="mb-3">
                <div class="field-display">{{ cv.profile }}</div>
            </div>
        </section>

        <section class="experiences">
            <h2>EXPÉRIENCES</h2>
            <div class="mb-3">
                <div class="field-display">{{ cv.experience }}</div>
            </div>
        </section>

        <section class="formations">
            <h2>FORMATIONS</h2>
            <div class="mb-3">
                <div class="field-display">{{ cv.formation }}</div>
            </div>
        </section>
    </div>
</body>
</html>
