/* lessons.css - Shared styles for French lessons */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f3f0;
    color: #2c3e4e;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 30px;
}

/* Menu styles */
nav {
    background-color: #1e3a5f;
    padding: 15px 30px;
    border-radius: 40px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 30px;
    background-color: #2c5a7a;
    transition: all 0.3s ease;
}
nav a:hover {
    background-color: #e67e22;
    color: white;
}

/* Headings */
h1, h2, h3 {
    color: #1e3a5f;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
h1 {
    text-align: center;
    border-bottom: 3px solid #e67e22;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
h2 {
    border-left: 8px solid #e67e22;
    padding-left: 15px;
    margin-top: 2em;
}
h3 {
    margin-top: 1.2em;
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
th, td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}
th {
    background-color: #e8f0f5;
    color: #1e3a5f;
    font-weight: bold;
}
tr:nth-child(even) {
    background-color: #fef8ed;
}

/* Callout boxes */
.rule-box, .tip-box, .warning-box {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 16px;
    border-left: 8px solid;
}
.rule-box {
    background-color: #e8f0f5;
    border-left-color: #1e3a5f;
}
.tip-box {
    background-color: #fff4e0;
    border-left-color: #e67e22;
}
.warning-box {
    background-color: #ffe6e6;
    border-left-color: #c0392b;
}
.rule-box strong, .tip-box strong, .warning-box strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;
}

/* Icons */
.icon {
    font-size: 1.2em;
    margin-right: 8px;
}

/* Lists */
ul, ol {
    margin: 1em 0 1em 2em;
}
li {
    margin: 0.4em 0;
}

/* Examples */
.example {
    font-family: 'Courier New', monospace;
    background-color: #f3f3f3;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
    color: #b64926;
}
.french {
    font-weight: bold;
    color: #1e3a5f;
}
.english {
    color: #5a5a5a;
    font-style: italic;
}

/* Table of contents */
.toc {
    background-color: #f0f2f0;
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 30px;
}
.toc h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
.toc ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}
.toc li {
    margin: 0;
}
.toc a {
    background: white;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    color: #1e3a5f;
    border: 1px solid #ccc;
    transition: 0.2s;
}
.toc a:hover {
    background-color: #1e3a5f;
    color: white;
    border-color: #1e3a5f;
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85em;
    color: #777;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 700px) {
    .container {
        padding: 15px;
    }
    nav {
        flex-direction: column;
        align-items: center;
    }
    .toc ul {
        flex-direction: column;
        align-items: center;
    }
}

        /* Add these styles to your existing <style> block */
.company-header {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.company-header img {
    transition: transform 0.2s ease;
}

.company-header img:hover {
    transform: scale(1.02);
}