/* Style de base et fond */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9; 
    color: #333;
}

/* En-tête */
header {
    background-color: #3d8bff;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Conteneur principal */
main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Style générique pour les cards */
.card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.card h2 {
    color: #3d8bff;
    border-left: 5px solid #3d8bff;
    padding-left: 15px;
    margin-top: 0;
}

/* Titre de catégorie */
.category-title {
    background-color: #e9f5ff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: #3d8bff;
    margin: 0 0 20px 0;
    border-left: 5px solid #3d8bff;
}

/* Viewer container */
.viewer-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.viewer-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.viewer-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Label du modèle */
.label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
}

/* Erreur */
.error {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    border: 1px solid #f5c6cb;
    display: none;
    font-weight: bold;
}

/* Séparateur */
hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    background-color: #6c757d;
    color: white;
    font-size: 0.9em;
}

button {
    border-radius: 5px;
    min-width: 25%;
    border: none;
    background-color: #28a745;
}

button a {
    font-size: 2em;
    text-decoration: none;
}

a:visited {
    color: #333;
}