cours-brevo/style.css

1082 lines
20 KiB
CSS

:root {
/* Palette de couleurs de la charte graphique IA-PRO */
--bg: #F4F4FB; /* --paper */
--paper-2: #F0F0F8;
--paper-3: #E8E8F4;
--card: #FFFFFF;
--ink: #1E1E2E;
--ink-2: #4B5563;
--ink-3: #9CA3AF;
--line: #E0E0EF;
--line-2: #D1D5DB;
/* Couleurs de marque (Indigo/Purple) */
--brand: #5B4FE8; /* --amber */
--brand2: #3730A3; /* --amber-dark */
--soft: #EEF0FB; /* --amber-bg */
--brand-line: #C7C9F0; /* --amber-line */
/* Couleurs de statut */
--success: #65A30D; /* --green */
--success-bg: #F0F9E8; /* --green-bg */
--success-line: #CCEAAA; /* --green-line */
--error: #B91C1C; /* --red */
--error-bg: #FEE2E2; /* --red-bg */
--error-line: #FECACA; /* --red-line */
--blue: #6366F1;
--blue-bg: #EEF2FF;
--blue-line: #C7D2FE;
--violet: #60A5FA;
--violet-bg: #EFF6FF;
--violet-line: #BFDBFE;
--warn: #fff7ed;
--warning: #f59e0b;
--warning-bg: #fffbeb;
--warning-text: #b45309;
--warning-line: #fef3c7;
/* Typographies de la charte */
--serif: 'Plus Jakarta Sans', 'Inter', sans-serif;
--sans: 'Inter', 'Plus Jakarta Sans', sans-serif;
--mono: 'IBM Plex Mono', monospace;
/* Arrondis */
--r-sm: 6px;
--r-md: 12px;
--r-lg: 18px;
/* Ombres */
--sh-sm: 0 1px 2px rgba(30,30,46,.05);
--sh-md: 0 4px 14px rgba(30,30,46,.07);
--sh-lg: 0 16px 40px rgba(30,30,46,.10);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--sans);
background: var(--bg);
color: var(--ink);
line-height: 1.55;
min-height: 100vh;
position: relative;
/* Double gradient radial d'ambiance */
background-image:
radial-gradient(at 8% -10%, rgba(91, 79, 232, 0.08) 0, transparent 45%),
radial-gradient(at 95% 110%, rgba(55, 48, 163, 0.06) 0, transparent 40%);
background-attachment: fixed;
}
/* Effet de grain papier SVG */
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
opacity: 0.35;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection {
background: var(--brand);
color: #fff;
}
/* ==========================================================================
LAYOUT & CONTAINERS
========================================================================== */
.hero {
display: grid;
grid-template-columns: 1fr 300px;
gap: 32px;
padding: 56px 24px;
max-width: 1080px;
margin: auto;
position: relative;
z-index: 1;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 11.5px;
font-weight: 800;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--brand2);
background: var(--soft);
border: 1px solid var(--brand-line);
border-radius: 999px;
padding: 5px 14px;
margin-bottom: 14px;
}
h1 {
font-family: var(--serif);
font-size: clamp(28px, 4.5vw, 42px);
font-weight: 800;
line-height: 1.12;
letter-spacing: -0.5px;
margin: 0.2em 0;
color: var(--ink);
}
.lead {
font-size: 1.15rem;
color: var(--ink-2);
max-width: 820px;
}
.actions {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-top: 24px;
}
/* ==========================================================================
BOUTONS DE LA CHARTE
========================================================================== */
button {
font-family: var(--sans);
font-weight: 800;
font-size: 14px;
border: none;
cursor: pointer;
border-radius: 10px;
padding: 11px 22px;
display: inline-flex;
align-items: center;
gap: 8px;
transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s;
background: var(--brand);
color: white;
box-shadow: var(--sh-sm);
}
button:hover {
background-color: var(--brand2);
box-shadow: var(--sh-md);
transform: translateY(-1px);
}
button:active {
transform: scale(0.97);
}
button.secondary {
background: var(--ink);
color: var(--bg);
}
button.secondary:hover {
background: #000;
}
button.ghost {
background: transparent;
color: var(--ink-2);
border: 1px solid var(--line-2);
box-shadow: none;
}
button.ghost:hover {
background: var(--paper-2);
}
/* ==========================================================================
MODULES & CARDS
========================================================================== */
.course-card, .module {
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--r-lg);
box-shadow: var(--sh-sm);
position: relative;
z-index: 1;
}
.course-card {
padding: 24px;
display: grid;
gap: 6px;
align-self: start;
}
.course-card strong {
color: var(--ink-3);
font-size: 0.75rem;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 0.5px;
}
.course-card span {
margin-bottom: 14px;
font-weight: 600;
font-size: 0.95rem;
}
main {
max-width: 1080px;
margin: auto;
padding: 0 24px 80px;
}
/* Sticky topbar progress */
.progress {
position: sticky;
top: 0;
z-index: 50;
background: rgba(244, 244, 251, 0.9);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--line);
display: flex;
align-items: center;
gap: 16px;
padding: 14px 24px;
margin: 0 -24px 22px;
}
.progress span {
font-family: var(--serif);
font-weight: 700;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--ink-2);
}
.progress progress {
flex-grow: 1;
height: 8px;
border-radius: 999px;
border: none;
-webkit-appearance: none;
appearance: none;
}
.progress progress::-webkit-progress-bar {
background-color: var(--paper-3);
border-radius: 999px;
}
.progress progress::-webkit-progress-value {
background: linear-gradient(90deg, var(--brand), #818CF8);
border-radius: 999px;
transition: width 0.4s ease;
}
.progress strong {
font-family: var(--mono);
font-size: 0.95rem;
color: var(--brand);
}
.module {
padding: 36px;
margin: 24px 0;
}
h2 {
font-family: var(--serif);
font-size: 1.7rem;
font-weight: 700;
margin-top: 0;
margin-bottom: 16px;
color: var(--ink);
}
h3 {
font-family: var(--serif);
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 8px;
}
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
.grid article, .template-box, .exercise, .note {
border: 1px solid var(--line);
border-radius: var(--r-md);
padding: 20px;
}
.grid article {
background: var(--card);
box-shadow: var(--sh-sm);
transition: transform 0.2s, box-shadow 0.2s;
}
.grid article:hover {
transform: translateY(-2px);
box-shadow: var(--sh-md);
}
.grid article h3 {
font-family: var(--serif);
font-size: 1.05rem;
margin-bottom: 4px;
color: var(--brand2);
}
.grid article p {
font-size: 0.88rem;
color: var(--ink-2);
}
.note {
background: var(--soft);
border-color: var(--brand-line);
color: var(--brand2);
font-size: 0.95rem;
}
.exercise {
background: var(--paper-2);
border-color: var(--paper-3);
margin-top: 24px;
}
textarea, input[type=text] {
width: 100%;
border: 1.5px solid var(--line-2);
border-radius: 10px;
padding: 14px;
font-family: var(--sans);
background: white;
transition: border-color 0.2s, box-shadow 0.2s;
}
textarea:focus, input[type=text]:focus {
border-color: var(--brand);
outline: none;
box-shadow: 0 0 0 3px var(--soft);
}
textarea {
min-height: 92px;
resize: vertical;
}
.large {
min-height: 200px;
}
.steps {
padding-left: 20px;
}
.steps li {
margin: 12px 0;
padding-left: 6px;
}
.checklist {
list-style: none;
padding: 0;
}
.checklist li {
padding: 8px 0;
font-weight: 500;
}
.checklist label {
cursor: pointer;
}
.checklist input[type="checkbox"] {
accent-color: var(--brand);
margin-right: 8px;
transform: scale(1.1);
}
.scenario {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
margin: 20px 0;
}
.scenario span {
background: var(--soft);
border: 1px solid var(--brand-line);
color: var(--brand2);
padding: 10px 16px;
border-radius: 999px;
font-weight: 700;
font-size: 0.9rem;
}
/* ==========================================================================
QUIZ SYSTEM
========================================================================== */
.quiz-item {
border: 1px solid var(--line);
border-radius: var(--r-md);
padding: 20px;
margin: 16px 0;
background: var(--card);
box-shadow: var(--sh-sm);
transition: all 0.25s ease;
}
.quiz-item.correct-quiz {
border-color: var(--success);
background-color: var(--success-bg);
}
.quiz-item.incorrect-quiz {
border-color: var(--error);
background-color: var(--error-bg);
}
.quiz-item label {
display: flex;
align-items: center;
gap: 10px;
margin: 10px 0;
padding: 10px 14px;
border: 1.5px solid var(--line);
border-radius: 8px;
cursor: pointer;
font-weight: 600;
font-size: 0.92rem;
transition: all 0.2s;
background: var(--bg);
}
.quiz-item label:hover {
border-color: var(--brand);
background: var(--soft);
}
.quiz-item input[type="radio"] {
accent-color: var(--brand);
transform: scale(1.15);
}
.quiz-explanation {
margin-top: 12px;
font-size: 0.9rem;
font-weight: 600;
color: var(--ink-2);
border-top: 1px dashed var(--line);
padding-top: 10px;
}
.result {
font-family: var(--serif);
font-weight: 800;
margin-top: 18px;
padding: 14px;
border-radius: 10px;
text-align: center;
}
/* ==========================================================================
INTERACTIVE COMPONENT STYLES (EXERCISES)
========================================================================== */
/* Badges */
.badge {
display: inline-flex;
align-items: center;
padding: 4px 10px;
font-size: 0.75rem;
font-weight: 700;
border-radius: 9999px;
text-transform: uppercase;
}
.badge-success {
background-color: var(--success-bg);
color: var(--success);
border: 1px solid var(--success-line);
}
.badge-error {
background-color: var(--error-bg);
color: var(--error);
border: 1px solid var(--error-line);
}
.badge-warning, .warning {
background-color: var(--warning-bg) !important;
color: var(--warning-text) !important;
border: 1px solid var(--warning-line) !important;
}
/* Actions d'exercices */
.exercise-actions {
display: flex;
gap: 12px;
margin: 18px 0;
}
/* Zone de feedback */
.exercise-feedback {
margin-top: 16px;
padding: 18px;
border-radius: var(--r-md);
font-weight: 600;
display: none;
font-size: 0.95rem;
animation: fadeIn 0.3s ease;
line-height: 1.55;
box-shadow: var(--sh-sm);
}
.exercise-feedback p {
margin: 6px 0;
}
.exercise-feedback.show {
display: block;
}
.exercise-feedback.correct {
background-color: var(--success-bg);
border: 1px solid var(--success);
color: #37530F;
}
.exercise-feedback.incorrect {
background-color: var(--error-bg);
border: 1px solid var(--error);
color: #7F1D1D;
}
.exercise-feedback.warning {
background-color: var(--warning-bg);
border: 1px solid var(--warning);
color: var(--warning-text);
}
/* Accordéon de correction */
.correction-accordion {
margin-top: 16px;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--card);
overflow: hidden;
box-shadow: var(--sh-sm);
}
.correction-accordion summary {
padding: 14px 20px;
font-weight: 700;
cursor: pointer;
outline: none;
transition: background 0.2s;
user-select: none;
color: var(--brand);
}
.correction-accordion summary:hover {
background: var(--bg);
}
.correction-accordion[open] summary {
border-bottom: 1px solid var(--line);
}
.accordion-content {
padding: 20px;
font-size: 0.95rem;
line-height: 1.6;
}
.model-text {
border-left: 4px solid var(--brand);
padding: 12px 16px;
color: var(--ink);
font-style: italic;
background: var(--bg);
border-radius: 0 var(--r-md) var(--r-md) 0;
margin: 10px 0;
}
/* Exercice 2: Drag and Drop */
.drag-cards-container {
display: flex;
flex-wrap: wrap;
gap: 12px;
padding: 16px;
background: var(--paper-3);
border: 1.5px solid var(--line);
border-radius: var(--r-md);
margin-bottom: 20px;
min-height: 72px;
align-items: center;
}
.drag-card {
background: var(--card);
border: 1.5px solid var(--line);
border-radius: 10px;
padding: 10px 16px;
cursor: grab;
user-select: none;
font-weight: 700;
box-shadow: var(--sh-sm);
transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.drag-card:hover {
transform: translateY(-2px);
box-shadow: var(--sh-md);
border-color: var(--brand);
}
.drag-card:active {
cursor: grabbing;
}
.drag-card.dragging {
opacity: 0.4;
border-style: dashed;
}
.drop-zones-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-bottom: 20px;
}
.drop-zone {
background: var(--card);
border: 2px dashed var(--line);
border-radius: var(--r-lg);
padding: 16px;
min-height: 200px;
display: flex;
flex-direction: column;
transition: all 0.25s ease;
box-shadow: var(--sh-sm);
}
.drop-zone h4 {
margin-top: 0;
margin-bottom: 12px;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--ink-2);
border-bottom: 1px solid var(--line);
padding-bottom: 8px;
text-align: center;
}
.drop-zone-content {
flex-grow: 1;
display: flex;
flex-direction: column;
gap: 10px;
min-height: 120px;
}
.drop-zone.dragover {
border-color: var(--brand);
background-color: var(--soft);
}
.drop-zone-content .drag-card {
font-size: 0.88rem;
padding: 8px 12px;
width: 100%;
text-align: center;
}
.drag-card.correct-card {
border-color: var(--success) !important;
background-color: var(--success-bg) !important;
color: #37530F;
}
.drag-card.incorrect-card {
border-color: var(--error) !important;
background-color: var(--error-bg) !important;
color: #7F1D1D;
}
/* Exercice 3: Cleaning Table */
.table-container {
overflow-x: auto;
border: 1px solid var(--line);
border-radius: var(--r-md);
margin: 18px 0;
background: white;
box-shadow: var(--sh-sm);
}
.cleaning-table {
width: 100%;
border-collapse: collapse;
}
.cleaning-table th {
font-weight: 700;
color: var(--ink-2);
font-size: 0.8rem;
text-transform: uppercase;
background: var(--paper-2);
border-bottom: 1px solid var(--line);
}
.cleaning-table td {
padding: 14px 16px;
}
.cleaning-table tr {
transition: background-color 0.25s ease;
border-bottom: 1px solid var(--line);
}
.cleaning-table tr:last-child {
border-bottom: none;
}
.cleaning-table tr.correct-row {
background-color: var(--success-bg) !important;
}
.cleaning-table tr.incorrect-row {
background-color: var(--error-bg) !important;
}
.cell-email {
font-family: var(--mono);
font-weight: 600;
font-size: 0.9rem;
color: var(--ink);
}
.cell-action {
white-space: nowrap;
}
.radio-label {
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
margin-right: 12px;
font-weight: 700;
font-size: 0.88rem;
padding: 6px 10px;
border-radius: 8px;
border: 1px solid var(--line);
background: var(--paper-2);
transition: all 0.2s;
}
.radio-label:hover {
background-color: var(--soft);
border-color: var(--brand);
}
.radio-label input[type="radio"] {
accent-color: var(--brand);
}
.row-explanation {
font-size: 0.88rem;
font-weight: 600;
margin-top: 6px;
white-space: normal;
}
.row-explanation.text-success {
color: #37530F;
}
.row-explanation.text-error {
color: var(--error);
}
/* Exercice 6: Sortable List */
.sortable-list {
list-style: none;
padding: 0;
margin: 20px 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.sortable-item {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--card);
border: 1.5px solid var(--line);
border-radius: var(--r-md);
padding: 14px 20px;
box-shadow: var(--sh-sm);
transition: all 0.2s ease;
}
.sortable-item:hover {
border-color: var(--brand);
transform: translateY(-1px);
box-shadow: var(--sh-md);
}
.sortable-item.correct-item {
border-color: var(--success);
background-color: var(--success-bg);
}
.sortable-item.incorrect-item {
border-color: var(--error);
background-color: var(--error-bg);
}
.step-badge {
font-size: 0.72rem;
font-weight: 800;
padding: 4px 8px;
border-radius: 6px;
text-transform: uppercase;
margin-right: 12px;
display: inline-block;
}
.text-trigger {
background-color: var(--blue-bg);
color: var(--blue);
border: 1px solid var(--blue-line);
}
.text-delay {
background-color: var(--warning-bg);
color: var(--warning-text);
border: 1px solid var(--warning-line);
}
.text-action {
background-color: var(--success-bg);
color: var(--success);
border: 1px solid var(--success-line);
}
.item-content {
display: flex;
align-items: center;
font-weight: 700;
font-size: 0.95rem;
}
.item-actions {
display: flex;
gap: 6px;
}
.item-actions button {
padding: 6px 12px;
background-color: var(--bg);
color: var(--ink);
border: 1.5px solid var(--line);
font-weight: 800;
font-size: 0.9rem;
border-radius: 8px;
box-shadow: none;
}
.item-actions button:hover {
background-color: var(--brand);
color: white;
border-color: var(--brand);
}
/* ==========================================================================
COMPLETION SECTION (EXPORT PDF)
========================================================================== */
.end-course {
background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
color: white;
border: none;
text-align: center;
padding: 44px 32px;
border-radius: var(--r-lg);
box-shadow: var(--sh-lg);
}
.end-course h2 {
color: white;
font-size: 2rem;
margin-bottom: 12px;
font-family: var(--serif);
font-weight: 800;
}
.end-course p {
color: rgba(255, 255, 255, 0.95);
max-width: 680px;
margin: 0 auto 24px;
font-size: 1.1rem;
}
.end-course .actions {
justify-content: center;
}
.end-course button {
background-color: white !important;
color: var(--brand) !important;
font-size: 1.05rem;
padding: 14px 28px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
border-radius: 12px;
}
.end-course button:hover {
background-color: #f8fafc !important;
color: var(--brand2) !important;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
/* Footer & Sources */
.sources {
font-size: .95rem;
color: var(--ink-2);
}
.sources h2 {
font-family: var(--serif);
font-size: 1.4rem;
color: var(--ink);
}
footer {
text-align: center;
color: var(--ink-3);
padding: 40px;
font-weight: 500;
}
/* ==========================================================================
ANIMATIONS & MEDIA QUERIES
========================================================================== */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive */
@media (max-width: 860px) {
.hero {
grid-template-columns: 1fr;
padding: 32px 24px;
}
.grid {
grid-template-columns: repeat(2, 1fr);
}
.drop-zones-container {
grid-template-columns: 1fr;
}
.drop-zone {
min-height: 150px;
}
.module {
padding: 24px;
}
.scenario {
display: block;
}
.scenario > * {
display: inline-block;
margin: 4px;
}
.sortable-item {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.item-actions {
align-self: flex-end;
}
}
@media (max-width: 560px) {
.grid {
grid-template-columns: 1fr;
}
}
@media print {
body {
background: white;
color: #111;
}
.no-print, .actions, button, .exercise-actions, .item-actions, .correction-accordion {
display: none !important;
}
.hero, main {
max-width: none;
padding: 0;
}
.hero {
display: block;
}
.course-card, .module {
box-shadow: none;
border: 1px solid #ccc;
break-inside: avoid;
margin: 14px 0;
}
.module {
padding: 18px;
}
textarea, input {
border: 1px solid #999;
}
.sources {
display: block;
}
a {
color: #111;
}
.exercise-feedback {
display: block !important;
border: 1px solid #aaa !important;
background: transparent !important;
color: #000 !important;
}
}