/* Fichier: style.css */
:root {
    --primary-color: #333;
    --secondary-color: #f4f4f4;
    --accent-color: #e60000; /* Une couleur d'accent pour les hovers/clics */
    --border-style: 2px dashed var(--primary-color);
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background: var(--secondary-color);
    padding: 20px;
}

/* --- Layout Général --- */

.container {
    max-width: 1200px;
    margin: auto;
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    min-height: 90vh; /* Pour le design */
}

/* --- Header / Navigation --- */
header {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 5px 10px;
    transition: color 0.3s, border-bottom 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Style commun pour les blocs d'information (les boîtes en tirets) */
.info-block {
    border: var(--border-style);
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Effet de zoom sur les blocs d'information au survol (demande JS) */
.info-block.zoom-effect:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.placeholder-img {
    width: 100%;
    height: 150px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
}

.placeholder-text {
    width: 100%;
    height: 15px;
    background-color: #eee;
    margin-bottom: 8px;
    border-radius: 3px;
}
.placeholder-wavy {
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 5px, #eee 5px, #eee 10px);
    height: 15px;
    margin-bottom: 8px;
}
.icon-profile {
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
}

/* --- Responsive Design (Mobile First) --- */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
    nav ul li {
        margin: 5px 0;
    }
    .grid-layout {
        grid-template-columns: 1fr !important; /* Force une seule colonne pour la plupart des mises en page */
    }
    .profile-sidebar {
        margin-bottom: 20px;
    }
}