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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    padding: 20px;
    line-height: 1.3;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Bandeau du haut */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
}

.header h1 {
    font-size: 20px;
    margin-bottom: 0;
}

/* Barre de navigation avec onglets */
.navbar {
    background: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-bottom: 3px solid #667eea;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.navbar a:first-child {
    border-left: none;
}

.navbar a:hover {
    background: #34495e;
    color: #667eea;
}

.navbar a.active {
    background: #667eea;
    color: white;
}

/* Zone de contenu avec tuiles */
.content {
    padding: 30px;
}

.content-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Style des tuiles */
.tile {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Tuile avec image */
.tile-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.tile-content {
    padding: 20px;
}

.tile-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tile-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* Tuile texte uniquement (sans image) */
.tile-text-only {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.tile-text-only .tile-title {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Icône optionnelle en haut de la tuile texte */
.tile-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 15px;
}

/* Pied de page */
.footer {
    background: #2c3e50;
    color: white;
    padding: 15px 30px;
    text-align: center;
    font-size: 14px;
    border-top: 3px solid #667eea;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .tiles-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tiles-container {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .navbar a {
        padding: 10px 15px;
        font-size: 12px;
    }
}
