* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 30px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 85%;
    max-width: 900px;
    background-color: #34495e;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-top: 4px solid #e74c3c;
    animation: fadeIn 1.5s ease-in-out;
}

h1 {
    color: #e74c3c;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    animation: popIn 1s ease-in-out;
}

.photo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.photo-container img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h2 {
    color: #f39c12;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 5px;
    margin-top: 20px;
    font-size: 1.8em;
    animation: slideIn 1.5s ease-in-out;
}

.contact {
    margin-bottom: 20px;
    text-align: center;
}

.contact p {
    margin: 5px 0;
}

.contact h3 {
    color: #e74c3c; /* Changer la couleur de l'email */
    text-decoration: none;
}

.contact a {
    color: #e74c3c; /* Changer la couleur de l'email */
    text-decoration: none;
}

.section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #3e5b71;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.section:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Sous-titres des dates */
.year-title {
    color: #1abc9c;
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 15px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Contenu des sous-titres */
.content {
    margin-left: 20px;
    color: #bdc3c7;
    font-size: 1em;
    border-left: 4px solid #1abc9c;
    padding-left: 15px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
    animation: fadeIn 1.5s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    body { padding: 15px 0; }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.4em; }
    .container { padding: 20px; width: 93%; }
    .year-title { font-size: 1.2em; }
    .content { margin-left: 10px; padding-left: 10px; }
}

@media print {
    body { background: #fff; color: #222; padding: 0; }
    .container { box-shadow: none; border-top: none; background: #fff; }
    .section { background: #f5f5f5; }
    .section:hover { transform: none; }
    h1 { color: #333; }
    h2 { color: #555; }
    .year-title { color: #444; }
    .content { color: #333; border-left-color: #888; }
    a { color: #333; }
}
