/* ============================================
   Cours Azure Synapse - Styles
   ============================================ */

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Navigation */
.navbar {
    background: #0078d4;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
}

.navbar .logo span {
    font-weight: 300;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-links a.active {
    background: rgba(255,255,255,0.2);
}

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

/* Hero section */
.hero {
    background: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.card h3 {
    color: #0078d4;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.card p {
    color: #666;
    font-size: 14px;
}

.card .module-num {
    display: inline-block;
    background: #e6f2ff;
    color: #0078d4;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Contenu cours */
.content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.content h1 {
    color: #0078d4;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e6f2ff;
}

.content h2 {
    color: #333;
    margin: 30px 0 15px;
    font-size: 1.4em;
}

.content h3 {
    color: #555;
    margin: 25px 0 10px;
    font-size: 1.1em;
}

.content p {
    margin-bottom: 15px;
}

.content ul, .content ol {
    margin: 15px 0 15px 25px;
}

.content li {
    margin-bottom: 8px;
}

.content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

.content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Info boxes */
.info-box {
    background: #e6f2ff;
    border-left: 4px solid #0078d4;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.info-box.warning {
    background: #fff8e6;
    border-color: #ffc107;
}

.info-box.tip {
    background: #e8f5e9;
    border-color: #4caf50;
}

/* Navigation entre modules */
.nav-modules {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-modules a {
    color: #0078d4;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #0078d4;
    border-radius: 4px;
    font-size: 14px;
}

.nav-modules a:hover {
    background: #0078d4;
    color: white;
}

/* Assistant IA */
.assistant-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.assistant-container h2 {
    color: #0078d4;
    margin-bottom: 20px;
    font-size: 1.3em;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .nav-links {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .content {
        padding: 25px;
    }
}
