espace-codage / style.css
Abmacode12's picture
d’EPSITE],
b55f131 verified
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--primary-light: #a5b4fc;
--text: #1e293b;
--text-light: #64748b;
--bg: #f8fafc;
--bg-dark: #f1f5f9;
--border: #e2e8f0;
--success: #10b981;
--warning: #f59e0b;
--error: #ef4444;
}
body, html {
height: 100%;
width: 100%;
}
.container {
display: flex;
height: 100vh;
}
/* Colonne 1 */
.sidebar {
width: 20%;
background: #f1f1f1;
border-right: 1px solid #ccc;
padding: 20px;
display: flex;
flex-direction: column;
}
.sidebar .logo {
font-weight: bold;
font-size: 18px;
text-decoration: none;
color: #222;
margin-bottom: 20px;
display: block;
}
.menu button {
display: block;
width: 100%;
margin-bottom: 10px;
padding: 10px;
background: #e0e0e0;
border: none;
cursor: pointer;
}
.menu-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
color: var(--text);
text-decoration: none;
border-radius: 6px;
margin-bottom: 8px;
transition: all 0.2s;
}
.menu-item:hover {
background-color: var(--bg-dark);
}
.menu-item.active {
background-color: var(--primary);
color: white;
}
.menu-item i {
width: 20px;
text-align: center;
}
.projects h3 {
margin-top: 20px;
margin-bottom: 10px;
color: var(--text);
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
}
.projects ul {
list-style: none;
}
.projects li {
padding: 5px 0;
border-bottom: 1px solid #ccc;
}
/* Documentation Page Styles */
.documentation {
width: 45%;
display: flex;
flex-direction: column;
padding: 20px;
background: white;
border-right: 1px solid var(--border);
}
.doc-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border);
}
.doc-header h2 {
display: flex;
align-items: center;
gap: 10px;
font-size: 20px;
color: var(--text);
}
.doc-version {
font-size: 12px;
background: var(--bg-dark);
padding: 4px 8px;
border-radius: 4px;
color: var(--text-light);
}
.doc-section {
margin-bottom: 30px;
}
.doc-section h3 {
display: flex;
align-items: center;
gap: 8px;
font-size: 18px;
color: var(--text);
margin-bottom: 15px;
padding-bottom: 5px;
border-bottom: 1px solid var(--border);
}
.feature-card {
background: var(--bg);
padding: 15px;
border-radius: 8px;
margin-bottom: 15px;
border: 1px solid var(--border);
}
.feature-card h4 {
display: flex;
align-items: center;
gap: 8px;
font-size: 16px;
color: var(--text);
margin-bottom: 10px;
}
.feature-card p {
color: var(--text-light);
font-size: 14px;
line-height: 1.5;
margin-bottom: 10px;
}
.api-list {
list-style: none;
padding: 0;
}
.api-list li {
padding: 8px 0;
border-bottom: 1px solid var(--border);
color: var(--text-light);
font-size: 14px;
}
.api-list li strong {
color: var(--text);
display: inline-block;
width: 150px;
}
.examples {
width: 35%;
padding: 20px;
background: white;
}
.examples-header {
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border);
}
.examples-header h3 {
display: flex;
align-items: center;
gap: 8px;
font-size: 18px;
color: var(--text);
}
.example-cards {
display: grid;
gap: 15px;
}
.example-card {
background: var(--bg);
padding: 15px;
border-radius: 8px;
border: 1px solid var(--border);
}
.example-card h4 {
color: var(--primary);
font-size: 15px;
margin-bottom: 8px;
}
.example-card p {
color: var(--text-light);
font-size: 13px;
line-height: 1.4;
}
/* Colonne 2 */
.chat {
width: 45%;
display: flex;
flex-direction: column;
padding: 20px;
}
.chat-header h2 {
font-size: 18px;
margin-bottom: 5px;
}
.activity-monitor {
font-size: 12px;
color: gray;
margin-bottom: 15px;
}
.chat-messages {
flex: 1;
background: #fafafa;
padding: 10px;
border: 1px solid #ddd;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
}
.message {
max-width: 80%;
padding: 10px 15px;
border-radius: 18px;
line-height: 1.4;
}
.message.user {
align-self: flex-end;
background: #6366f1;
color: white;
border-bottom-right-radius: 5px;
}
.message.assistant {
align-self: flex-start;
background: #e0e0e0;
color: #333;
border-bottom-left-radius: 5px;
}
.message-content {
white-space: pre-wrap;
}
.chat-input {
display: flex;
align-items: center;
gap: 8px;
margin-top: 10px;
}
.chat-input input {
flex: 1;
padding: 10px;
}
.chat-input button:not(voice-control button) {
background: #ddd;
border: none;
padding: 10px;
cursor: pointer;
}
voice-control {
margin-left: auto;
}
/* Colonne 3 */
.output {
width: 35%;
background: #fcfcfc;
border-left: 1px solid #ccc;
display: flex;
flex-direction: column;
padding: 20px;
}
.output-tabs {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.output-tabs button {
flex: 1;
padding: 8px;
font-size: 12px;
background: #e8e8e8;
border: none;
cursor: pointer;
display: flex;
align-items: center;
gap: 5px;
}
.code-output {
flex: 1;
background: #000;
color: #0f0;
padding: 10px;
font-family: monospace;
overflow-y: auto;
margin-bottom: 10px;
}
.result-output {
background: #fff;
border: 1px solid #ccc;
padding: 10px;
text-align: center;
}