/* --------- Styles généraux --------- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f6fc;
    color: #333;
}

/* Conteneur principal */
.container {
    max-width: 95vw; /* Utilisation d'un pourcentage pour un site responsive */
    margin: 0 auto;
    padding: 20px;
}

/* --------- Header --------- */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    animation: fadeInUp 1s ease-in-out;
}

header h2 {
    font-size: 1.5em;
    color: #4ca1af;
    margin-top: 10px;
    animation: fadeInUp 1.5s ease-in-out;
}

/* --------- Sections --------- */
section {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    opacity: 0; /* Caché au départ */
    transform: translateY(30px); /* Décalé vers le bas */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Lorsque la section devient visible */
section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 5px;
}

section ul {
    list-style: none;
    padding: 0;
}

section ul li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

section ul li span {
    margin-right: 10px;
    color: #4ca1af;
}

/* Effet de déplacement au survol des éléments de liste */
section ul li:hover {
    transform: translateX(10px);
    background-color: #f0f8ff;
    border-radius: 15px;
}

/* --------- Images --------- */
.image-container {
    text-align: center;
    margin-top: 20px;
}

.image-container img {
    max-width: 250px;
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 20px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Effet de zoom et ombrage au survol */
.image-container img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --------- Conteneur des intérêts --------- */
/* Conteneur principal */
.interests-container {
    display: flex;
    flex-wrap: wrap; /* Permet de réorganiser les éléments sur des écrans plus petits */
    gap: 20px;
    align-items: flex-start;
}

/* Texte des intérêts */
.text-container {
    flex: 1; /* Le texte occupe tout l'espace disponible */
}

/* Conteneur de l'image */
.image-container {
    max-width: 250px;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

/* Effet au survol */
.image-container img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Media query pour écrans < 150px */
@media screen and (max-width: 150px) {
    .interests-container {
        flex-direction: column; /* Réorganise les éléments verticalement */
        align-items: center; /* Centre le contenu */
    }

    .image-container {
        margin-top: 20px; /* Ajoute un espace au-dessus de l'image */
    }
}


/* --------- Footer --------- */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: #888;
    background-color: #d7dbdc;
    opacity: 85%;
    width: auto;
    border-radius: 50px;
}

/* --------- Horloge --------- */
#heure_date {
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    color: #263a43;
    padding: 10px;
    background-color: white;
    border-radius: 15px;
    width: auto;
    max-width: 1000vh;
    box-sizing: border-box;
    opacity: 0.8;
}

/* --------- Animations --------- */
/* Animation d'apparition progressive */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
