/* SAE 2.04 - Base de données - Styles harmonisés avec le portfolio */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Même style que la page principale */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-brand h1 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.nav-menu a:hover {
    color: #3498db;
}


/* Header du projet - Style adapté pour correspondre aux sections principales */
.header {
    background-color: #f8f9fa;
    color: #2c3e50;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid #f8f9fa;
}

.project-type {
    background: #3498db;
    color: white;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

.header p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    background: white;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Sections - Même style que la page principale */
.section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.section h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.section p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.section li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Cards de mise en évidence - Style cohérent avec les compétences */
.project-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Section Aperçu - Style cohérent avec les compétences */
.project-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.summary-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.summary-card p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #666;
}

/* Section MCD - Style cohérent */
.mcd-placeholder {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.schema-image-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    margin-top: 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schema-image-placeholder p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.schema-image-placeholder em {
    color: #6c757d;
    font-size: 0.9rem;
}

.schema-image-placeholder img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Section algèbre relationnelle - Style cohérent */
.algebra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.algebra-query {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.algebra-query:hover {
    transform: translateY(-5px);
}

.algebra-query h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.algebra-formula {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.algebra-formula code {
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: nowrap;
}

.algebra-formula sub {
    font-size: 0.8rem;
}

/* Schéma de base de données - Style cohérent avec les compétences */
.database-schema {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.table-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.table-card:hover {
    transform: translateY(-5px);
}

.table-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.table-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.table-card ul {
    margin-left: 0;
    list-style: none;
}

.table-card li {
    font-size: 0.9rem;
    padding: 4px 0;
    color: #333;
}

.table-card li strong {
    color: #3498db;
}

.relations-info {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.relations-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Cards techniques - Style cohérent */
.technical-cards {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.tech-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
}

.tech-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.code-preview {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.code-preview pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-preview code {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer a {
    color: white;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .project-meta {
        justify-content: center;
        gap: 1rem;
    }
    
    .meta-item {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .database-schema {
        grid-template-columns: 1fr;
    }
    
    .project-highlights {
        grid-template-columns: 1fr;
    }
    
    .project-summary {
        grid-template-columns: 1fr;
    }
    
    .algebra-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .header {
        padding: 2rem 0;
    }
}
