Augustin 563932a733 🧹 Nettoyage interface et correction erreurs JavaScript
- Suppression emojis superflus dans interface utilisateur
- Correction erreurs d'encodage UTF-8 (caractères corrompus)
- Fix erreur JavaScript : togglePreview() déplacé dans la classe ConceptionAssistant
- Fix erreur JavaScript : togglePanel accessible globalement avec window.togglePanel
- Interface plus sobre et professionnelle

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 22:01:59 +02:00

1165 lines
21 KiB
CSS

/* Variables CSS */
:root {
--primary-color: #2c3e50;
--secondary-color: #3498db;
--accent-color: #e74c3c;
--success-color: #27ae60;
--warning-color: #f39c12;
--background-color: #ecf0f1;
--surface-color: #ffffff;
--text-color: #2c3e50;
--text-light: #7f8c8d;
--border-color: #bdc3c7;
--shadow: 0 2px 4px rgba(0,0,0,0.1);
--shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
--border-radius: 8px;
--transition: all 0.3s ease;
}
/* Mode sombre */
body.dark-theme {
--primary-color: #ecf0f1;
--secondary-color: #3498db;
--background-color: #1a1a1a;
--surface-color: #2c2c2c;
--text-color: #ecf0f1;
--text-light: #95a5a6;
--border-color: #34495e;
}
/* Reset et base */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);
transition: var(--transition);
}
/* Layout principal */
.container {
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
}
/* Header professionnel */
header {
background: var(--surface-color);
border-bottom: 1px solid var(--border-color);
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 100;
}
header > div {
display: flex;
align-items: center;
justify-content: center;
padding: 1.2rem;
max-width: 1400px;
margin: 0 auto;
}
header h1 {
color: var(--primary-color);
font-size: 2.2rem;
font-weight: 600;
margin: 0;
display: flex;
align-items: center;
gap: 0.75rem;
text-align: center;
letter-spacing: -0.5px;
}
header h1::before {
content: "📝";
font-size: 2.4rem;
}
/* Panneaux latéraux rétractables */
.side-panel {
position: fixed;
top: 50%;
transform: translateY(-50%);
background: var(--surface-color);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
box-shadow: var(--shadow-hover);
z-index: 1000;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
}
/* Panneau gauche - Configuration */
.left-panel {
left: -320px;
width: 320px;
border-left: none;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.left-panel.open {
transform: translateY(-50%) translateX(320px);
}
/* Panneau droit - Navigation */
.right-panel {
right: -320px;
width: 320px;
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.right-panel.open {
transform: translateY(-50%) translateX(-320px);
}
/* Contenu des panneaux */
.panel-content {
padding: 2rem;
}
.panel-header {
margin: 0 0 1.5rem 0;
color: var(--primary-color);
font-size: 1.2rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.75rem;
border-bottom: 2px solid var(--border-color);
padding-bottom: 1rem;
}
/* Flèches d'ouverture */
.panel-toggle {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 80px;
background: var(--surface-color);
border: 1px solid var(--border-color);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
color: var(--text-color);
transition: all 0.3s ease;
box-shadow: var(--shadow);
z-index: 1001;
}
.left-panel .panel-toggle {
right: -40px;
border-left: none;
border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.right-panel .panel-toggle {
left: -40px;
border-right: none;
border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.panel-toggle:hover {
background: var(--secondary-color);
color: white;
transform: translateY(-50%) scale(1.05);
box-shadow: var(--shadow-hover);
}
.panel-toggle:active {
transform: translateY(-50%) scale(0.95);
}
/* Rotation de la flèche selon l'état */
.left-panel .panel-toggle .arrow {
transition: transform 0.3s ease;
}
.left-panel.open .panel-toggle .arrow {
transform: rotate(180deg);
}
.right-panel .panel-toggle .arrow {
transition: transform 0.3s ease;
}
.right-panel.open .panel-toggle .arrow {
transform: rotate(180deg);
}
/* Styles pour le formulaire de templates */
.template-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group label {
font-size: 0.9rem;
color: var(--text-light);
font-weight: 500;
}
.form-group select {
padding: 0.75rem;
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
background: var(--surface-color);
color: var(--text-color);
font-size: 0.9rem;
cursor: pointer;
transition: var(--transition);
}
.form-group select:hover:not(:disabled) {
border-color: var(--secondary-color);
}
.form-group select:focus {
outline: none;
border-color: var(--secondary-color);
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
.form-group select:disabled {
opacity: 0.5;
cursor: not-allowed;
background: var(--background-color);
}
.form-actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.form-actions button {
flex: 1;
min-width: 120px;
}
/* Styles spécifiques au panneau de navigation */
.nav-section {
margin-bottom: 2rem;
}
.nav-section h4 {
margin: 0 0 1rem 0;
font-size: 0.95rem;
color: var(--text-light);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.nav-buttons {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.nav-btn {
width: 100%;
padding: 1rem 1.5rem;
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
background: transparent;
color: var(--text-color);
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.9rem;
text-align: left;
}
.nav-btn:hover {
background: var(--background-color);
border-color: var(--secondary-color);
color: var(--secondary-color);
transform: translateX(5px);
}
.nav-btn .icon {
font-size: 1.2rem;
width: 24px;
text-align: center;
}
/* File input dans le panneau */
.panel-file-input {
width: 100%;
padding: 1rem 1.5rem;
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
background: transparent;
color: var(--text-color);
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.9rem;
text-align: left;
overflow: hidden;
}
.panel-file-input:hover {
background: var(--background-color);
border-color: var(--warning-color);
color: var(--warning-color);
transform: translateX(5px);
}
.panel-file-input .icon {
font-size: 1.2rem;
width: 24px;
text-align: center;
}
/* Animation d'overlay quand les panneaux sont ouverts */
.panel-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.1);
z-index: 89;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
backdrop-filter: blur(2px);
}
.panel-overlay.active {
opacity: 1;
visibility: visible;
}
/* Responsive design */
@media (max-width: 768px) {
.side-panel {
width: 280px;
top: 60%;
}
.left-panel {
left: -280px;
}
.left-panel.open {
transform: translateY(-60%) translateX(280px);
}
.right-panel {
right: -280px;
}
.right-panel.open {
transform: translateY(-60%) translateX(-280px);
}
.panel-content {
padding: 1.5rem;
}
.panel-toggle {
width: 35px;
height: 70px;
font-size: 1rem;
}
header h1 {
font-size: 1.8rem;
}
header h1::before {
font-size: 2rem;
}
header > div {
padding: 1.5rem;
}
main {
grid-template-columns: 1fr;
padding: 1rem;
}
/* Sections déjà en mode normal */
}
@media (max-width: 480px) {
.side-panel {
width: calc(100vw - 40px);
left: -100vw;
right: -100vw;
}
.left-panel.open {
transform: translateY(-60%) translateX(calc(100vw - 20px));
}
.right-panel.open {
transform: translateY(-60%) translateX(calc(-100vw + 20px));
}
}
/* Boutons */
button, .btn {
padding: 0.6rem 1.2rem;
border: none;
border-radius: 25px;
background: var(--secondary-color);
color: white;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
display: inline-flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
button:hover, .btn:hover {
background: #2980b9;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
transform: translateY(-2px);
}
button:active, .btn:active {
transform: translateY(0);
}
/* Boutons dans le header */
header button, header .btn {
background: rgba(255,255,255,0.9);
color: var(--primary-color);
border: 1px solid rgba(255,255,255,0.3);
backdrop-filter: blur(10px);
}
header button:hover, header .btn:hover {
background: white;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
color: var(--secondary-color);
}
button.secondary {
background: var(--surface-color);
color: var(--text-color);
border: 1px solid var(--border-color);
}
button.secondary:hover {
background: var(--background-color);
color: var(--secondary-color);
border-color: var(--secondary-color);
}
button.danger {
background: var(--accent-color);
}
button.danger:hover {
background: #c0392b;
}
button.success {
background: var(--success-color);
}
button.success:hover {
background: #229954;
}
/* Input file personnalisé */
.file-input-label {
padding: 0.6rem 1.2rem;
border-radius: var(--border-radius);
background: var(--warning-color);
color: white;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.file-input-label:hover {
background: #e67e22;
box-shadow: var(--shadow-hover);
transform: translateY(-1px);
}
/* Main content */
main {
display: grid;
grid-template-columns: 300px 1fr 350px;
gap: 2rem;
padding: 2rem;
max-width: 1400px;
margin: 0 auto;
min-height: calc(100vh - 140px);
}
@media (max-width: 1200px) {
main {
grid-template-columns: 250px 1fr;
gap: 1.5rem;
}
#ai-assistant {
grid-column: 1 / -1;
margin-top: 2rem;
}
}
@media (max-width: 768px) {
main {
grid-template-columns: 1fr;
gap: 1rem;
padding: 1rem;
}
}
/* Sections */
section {
background: var(--surface-color);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
overflow: hidden;
}
section h2 {
background: var(--secondary-color);
color: white;
padding: 1rem 1.5rem;
margin: 0;
font-size: 1.2rem;
font-weight: 600;
}
/* Table des matières */
#table-of-contents {
/* Comportement normal de scroll */
}
#toc-nav {
padding: 1.5rem;
}
#toc-nav ul {
list-style: none;
}
#toc-nav li {
margin-bottom: 0.5rem;
}
#toc-nav a {
color: var(--text-color);
text-decoration: none;
padding: 0.3rem 0.5rem;
border-radius: 4px;
display: block;
transition: var(--transition);
font-size: 0.9rem;
}
#toc-nav a:hover {
background: var(--background-color);
color: var(--secondary-color);
}
#toc-nav ul ul {
margin-left: 1rem;
margin-top: 0.5rem;
}
#toc-nav ul ul a {
font-size: 0.85rem;
color: var(--text-light);
}
/* Zone d'écriture */
#design-journal {
min-height: 600px;
}
#journal-editor {
min-height: 500px;
padding: 2rem;
font-size: 1rem;
line-height: 1.8;
outline: none;
border: none;
background: var(--surface-color);
color: var(--text-color);
resize: vertical;
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: break-word;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
#journal-editor:focus {
background: var(--background-color);
}
#journal-editor:empty::before {
content: "Commencez à écrire votre journal de conception...\A\A# Titre de votre projet\A\A## Contexte et objectifs\A\ADécrivez ici le contexte de votre projet...\A\A## Architecture\A\A### Composants principaux\A\A### Technologies utilisées\A\A## Décisions de conception\A\A### Décision 1\A\A**Problème :**\A**Options considérées :**\A**Décision :**\A**Justification :**\A\A## Prochaines étapes\A\A- [ ] Tâche 1\A- [ ] Tâche 2";
color: var(--text-light);
font-style: italic;
white-space: pre-wrap;
pointer-events: none;
}
#journal-editor p {
margin-bottom: 1rem;
}
#journal-editor h1, #journal-editor h2, #journal-editor h3 {
color: var(--primary-color);
margin: 1.5rem 0 1rem 0;
}
#journal-editor h1 {
font-size: 2rem;
border-bottom: 3px solid var(--secondary-color);
padding-bottom: 0.5rem;
}
#journal-editor h2 {
font-size: 1.6rem;
border-bottom: 2px solid var(--border-color);
padding-bottom: 0.3rem;
}
#journal-editor h3 {
font-size: 1.3rem;
color: var(--secondary-color);
}
/* Assistant IA */
#ai-assistant {
display: flex;
flex-direction: column;
/* Comportement normal de scroll */
}
/* Styles pour "Coming Soon" */
.ai-coming-soon {
padding: 1.5rem;
background: linear-gradient(135deg, var(--background-color), var(--surface-color));
}
.coming-soon-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: linear-gradient(135deg, var(--warning-color), #f39c12);
color: white;
padding: 0.5rem 1rem;
border-radius: 50px;
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 1.5rem;
box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
from { box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3); }
to { box-shadow: 0 4px 16px rgba(243, 156, 18, 0.5); }
}
.badge-icon {
font-size: 1rem;
animation: bounce 1s ease-in-out infinite;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-2px); }
}
.ai-preview h3 {
color: var(--primary-color);
font-size: 1rem;
margin: 0 0 1rem 0;
font-weight: 600;
}
.ai-features-list {
list-style: none;
padding: 0;
margin: 0 0 1.5rem 0;
}
.ai-features-list li {
padding: 0.75rem 0;
border-bottom: 1px solid var(--border-color);
font-size: 0.9rem;
line-height: 1.4;
display: flex;
align-items: flex-start;
gap: 0.5rem;
}
.ai-features-list li:last-child {
border-bottom: none;
}
.ai-tech-stack {
background: var(--surface-color);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1rem;
margin-top: 1rem;
}
.ai-tech-stack p {
margin: 0.25rem 0;
font-size: 0.85rem;
color: var(--text-light);
}
.ai-tech-stack strong {
color: var(--primary-color);
}
#ai-assistant-feedback {
flex: 1;
padding: 1.5rem;
border-top: 1px solid var(--border-color);
background: var(--background-color);
overflow-y: auto;
min-height: 200px;
}
.feedback-message {
background: var(--surface-color);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1rem;
margin-bottom: 1rem;
font-size: 0.9rem;
line-height: 1.5;
}
.coming-soon-message {
background: linear-gradient(135deg, var(--surface-color), var(--background-color));
border: 2px dashed var(--warning-color);
text-align: center;
}
.feedback-message.loading {
background: var(--background-color);
border-color: var(--secondary-color);
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
/* Footer */
footer {
background: var(--secondary-color);
color: white;
text-align: center;
padding: 2rem;
margin-top: 3rem;
}
footer a {
color: white;
text-decoration: underline;
}
footer a:hover {
color: var(--secondary-color);
}
/* états de chargement */
.loading {
position: relative;
opacity: 0.7;
pointer-events: none;
}
.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
margin: -10px 0 0 -10px;
border: 2px solid var(--border-color);
border-top: 2px solid var(--secondary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Notifications */
.notification {
position: fixed;
top: 20px;
right: 20px;
padding: 1rem 1.5rem;
background: var(--success-color);
color: white;
border-radius: var(--border-radius);
box-shadow: var(--shadow-hover);
z-index: 1000;
transform: translateX(400px);
transition: var(--transition);
}
.notification.show {
transform: translateX(0);
}
.notification.error {
background: var(--accent-color);
}
.notification.warning {
background: var(--warning-color);
}
/* Responsive design */
@media (max-width: 768px) {
header > div {
flex-direction: column;
gap: 1rem;
}
.header-controls {
flex-wrap: wrap;
justify-content: center;
}
nav {
flex-wrap: wrap;
justify-content: center;
}
button, .btn {
padding: 0.5rem 1rem;
font-size: 0.85rem;
}
}
/* Scrollbars personnalisées */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--background-color);
}
::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-light);
}
/* Sélection de texte */
::selection {
background: var(--secondary-color);
color: white;
}
/* Focus outline */
button:focus-visible,
input:focus-visible,
select:focus-visible {
outline: 2px solid var(--secondary-color);
outline-offset: 2px;
}
/* Modal */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
backdrop-filter: blur(5px);
}
.modal-content {
background: var(--surface-color);
border-radius: var(--border-radius);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
width: 90%;
max-width: 600px;
max-height: 80vh;
display: flex;
flex-direction: column;
border: 1px solid var(--border-color);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid var(--border-color);
background: var(--background-color);
border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.modal-header h3 {
margin: 0;
color: var(--primary-color);
font-size: 1.2rem;
font-weight: 600;
}
.modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--text-light);
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: var(--transition);
padding: 0;
}
.modal-close:hover {
background: var(--accent-color);
color: white;
transform: scale(1.1);
}
.modal-body {
padding: 1.5rem;
overflow-y: auto;
flex: 1;
}
.journal-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.journal-item-container {
margin-bottom: 0;
}
.journal-item {
width: 100%;
text-align: left;
padding: 1rem;
transition: var(--transition);
border: 1px solid var(--border-color);
background: var(--surface-color);
}
.journal-item:hover {
border-color: var(--secondary-color);
background: var(--surface-color);
transform: translateY(-1px);
box-shadow: var(--shadow-hover);
}
.journal-preview {
display: flex;
flex-direction: column;
}
.journal-preview strong {
color: var(--primary-color);
margin-bottom: 0.5rem;
display: block;
}
.journal-preview div {
font-size: 0.85rem;
color: var(--text-light);
white-space: pre-wrap;
line-height: 1.4;
}
/* Animation d'apparition du modal */
.modal-overlay.show {
animation: modalFadeIn 0.3s ease-out;
}
.modal-overlay.show .modal-content {
animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalFadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-20px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* Responsive modal */
@media (max-width: 768px) {
.modal-content {
width: 95%;
max-height: 90vh;
margin: 1rem;
}
.modal-header, .modal-body {
padding: 1rem;
}
.modal-header h3 {
font-size: 1.1rem;
}
}
/* Bouton Scroll to Top */
.scroll-to-top {
position: fixed;
bottom: 2rem;
right: 2rem;
width: 50px;
height: 50px;
background: var(--secondary-color);
color: white;
border: none;
border-radius: 50%;
font-size: 1.2rem;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
z-index: 1500;
opacity: 0;
visibility: hidden;
transform: translateY(20px);
display: flex;
align-items: center;
justify-content: center;
}
.scroll-to-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.scroll-to-top:hover {
background: var(--primary-color);
transform: translateY(-2px) scale(1.05);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.scroll-to-top:active {
transform: translateY(0) scale(0.95);
}
/* Responsive scroll to top */
@media (max-width: 768px) {
.scroll-to-top {
bottom: 1rem;
right: 1rem;
width: 45px;
height: 45px;
font-size: 1rem;
}
}
/* Utilitaires */
.hidden {
display: none !important;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.text-center {
text-align: center;
}
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }