:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #212529;
    --font-title: 'Montserrat', sans-serif;
    --font-text: 'Noto Serif', serif;
    --primary-light: #e6f2ff;
    --danger-light: #ffebee;
    --success-light: #e8f5e9;
    --warning-light: #fff8e1;
}

body {
    font-family: var(--font-text);
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

h1, h2, h3 {
    font-family: var(--font-title);
    color: #333;
    font-weight: 600;
}

.header {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.header-text {
    text-align: left;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.input-section {
    flex: 1;
    min-width: 300px;
}

.output-section {
    flex: 1;
    min-width: 300px;
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-title);
    font-weight: 500;
}

input, select {
    width: 100%;
    max-width: 250px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-text);
}

/* Champs numériques plus étroits */
input[type="number"] {
    max-width: 150px;
}

/* Champs avec unités */
.input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unit {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-title);
    font-weight: 500;
    margin-top: 10px;
}

button:hover {
    background-color: #0b5ed7;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light);
    border-radius: 4px;
    border-left: 4px solid var(--success);
}

.alert {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    text-align: left;
    padding: 8px;
}

th {
    background-color: #f2f2f2;
}

.svg-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background-color: white;
    text-align: center;
    height: 400px;
    overflow: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#input .svg-container {
    border-left: 4px solid var(--primary);
}

#t-section .svg-container {
    border-left: 4px solid var(--danger);
}

#results .svg-container {
    border-left: 4px solid var(--success);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    background-color: #f8f9fa;
    font-family: var(--font-title);
    font-weight: 500;
}

.tab:hover {
    background-color: #e9ecef;
}

.tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab[onclick*="openTab('input')"].active {
    background-color: var(--primary);
}

.tab[onclick*="openTab('t-section')"].active {
    background-color: var(--danger);
}

.tab[onclick*="openTab('results')"].active {
    background-color: var(--success);
}

.tab[onclick*="openTab('help')"].active {
    background-color: var(--warning);
    color: var(--dark);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Couleurs de fond pour les contenus des onglets */
#input {
    background-color: var(--primary-light);
    padding: 20px;
    border-radius: 0 5px 5px 5px;
}

#t-section {
    background-color: var(--danger-light);
    padding: 20px;
    border-radius: 0 5px 5px 5px;
}

#results {
    background-color: var(--success-light);
    padding: 20px;
    border-radius: 0 5px 5px 5px;
}

#help {
    background-color: var(--warning-light);
    padding: 20px;
    border-radius: 0 5px 5px 5px;
}

.subsection {
    background-color: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Couleurs spécifiques pour les bordures des subsections selon l'onglet */
#t-section .subsection {
    border-left: 3px solid var(--danger);
}

#results .subsection {
    border-left: 3px solid var(--success);
}

#help .subsection {
    border-left: 3px solid var(--warning);
}

.subsection h3 {
    margin-top: 0;
    color: var(--primary);
    font-family: var(--font-title);
    font-weight: 600;
}

#t-section .subsection h3 {
    color: var(--danger);
}

#results .subsection h3 {
    color: var(--success);
}

#help .subsection h3 {
    color: var(--warning);
}

.help-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #6c757d;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }
    
    .output-section {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }
}

.load-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    gap: 5px;
}

.load-tab {
    padding: 8px 15px;
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
    font-weight: 500;
    transition: background-color 0.3s;
    background-color: #f5f5f5;
    color: #555;
}

.load-tab:hover {
    background-color: #e0e0e0;
}

.load-tab.active {
    background-color: var(--primary);
    color: white;
}

.load-content {
    display: none;
    animation: fadeIn 0.3s;
}

.load-content.active {
    display: block;
} 