/* ─── EDN-IA Landing Page v2 ─── */
/* Light, institutional, professional */

:root {
    --primary: #6d1a3e;
    --primary-light: #8b2252;
    --primary-lighter: #f3e8ee;
    --primary-bg: #faf5f8;
    --accent: #1a3d6d;
    --text: #1a1a2e;
    --text-secondary: #4a4a65;
    --text-muted: #7a7a95;
    --bg: #ffffff;
    --bg-alt: #f9f8fc;
    --border: #e5e3ee;
    --border-light: #f0eef5;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-soft-sm: 0 4px 20px -2px rgba(109,26,62,0.05);
    --shadow-soft-md: 0 10px 40px -10px rgba(109,26,62,0.08);
    --radius: 10px;
    --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
strong { font-weight: 600; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Nav ─── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}
.brand-mark { color: var(--text); }
.brand-accent { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(109,26,62,0.2);
}
.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 16px rgba(109,26,62,0.25);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ─── Hero ─── */
.hero {
    padding: 130px 24px 50px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.hero-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-lighter);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: var(--text);
}
.hero-gradient {
    background: linear-gradient(135deg, var(--primary), #a8476e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Pillars ─── */
.hero-pillars {
    max-width: 900px;
    margin: 48px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft-sm);
    position: relative;
    z-index: 1;
}
.pillar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.pillar-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    border-radius: 10px;
    color: var(--primary);
}
.pillar-text strong {
    display: block;
    font-size: 14px;
    font-weight: 650;
    color: var(--text);
}
.pillar-text span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.pillar-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* ─── Screenshot ─── */
.section-screenshot {
    padding: 0;
    margin-top: -32px;
    margin-bottom: -80px;
}
.screenshot-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.interactive-hint {
    position: absolute;
    top: 50px;
    right: -20px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mockup-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.mockup-toggle {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
}
.mockup-toggle-btn {
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}
.mockup-toggle-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.screenshot-wrapper img {
    display: block;
}
/* ─── Mac Window Mockup ─── */
/* Supprimé, on utilise le placeholder-chat original */
.screenshot-placeholder {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -10px rgba(26,61,109,0.1);
    overflow: hidden;
}
.placeholder-window {}
.placeholder-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f0f0f0;
    border-bottom: 1px solid var(--border);
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}
.dot:first-child { background: #ff5f57; }
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #28c840; }
.placeholder-url {
    margin-left: 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: #e8e8e8;
    padding: 3px 12px;
    border-radius: 4px;
}
.placeholder-content {
    display: flex;
    min-height: 420px;
}
.placeholder-sidebar {
    width: 200px;
    padding: 20px 16px;
    border-right: 1px solid var(--border-light);
    background: #f7f7fa;
}
.ph-line {
    height: 10px;
    border-radius: 4px;
    background: #e4e2ec;
    margin-bottom: 12px;
}
.ph-sidebar-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    cursor: default;
    transition: all 0.2s;
}
.ph-sidebar-item.active {
    background: #eae9f2;
    color: var(--primary);
    font-weight: 650;
}
.ph-sb-icon {
    opacity: 0.5;
    transition: opacity 0.2s;
}
.ph-sidebar-item.active .ph-sb-icon {
    opacity: 1;
}
.placeholder-chat {
    /* Obsolète, on utilise maintenant placeholder-screen */
    display: none;
}
.placeholder-screen {
    flex: 1;
    min-width: 0;
    display: none;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
}
.placeholder-screen.active {
    display: flex;
}

/* Chat Screen */
#ph-screen-chat, #ph-t-screen-chat {
    gap: 0;
    padding: 0;
}
.ph-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
}
.ph-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    height: 100%;
    overflow-y: auto;
}
.ph-chat-logo {
    position: relative;
    margin-bottom: 24px;
}
.ph-logo-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}
.ph-logo-text span {
    font-weight: 800;
    text-transform: uppercase;
}
.ph-logo-dot {
    position: absolute;
    top: -5px;
    right: -8px;
    width: 6px;
    height: 6px;
    background: #c026d3;
    border-radius: 50%;
}
.ph-chat-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.ph-chat-subtitle {
    font-size: 13px;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 24px;
}
.ph-chat-input-container {
    background: #f8f8fc;
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.ph-chat-input-container:hover {
    border-color: var(--primary);
    background: #fff;
}
.ph-chat-input-container.typing {
    pointer-events: none;
    border-color: var(--primary);
    background: #fff;
}
.ph-chat-input-container.typing .ph-input-controls {
    opacity: 0;
}
.ph-chat-input-container input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text);
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}
.ph-chat-input-container input::placeholder {
    color: #9ca3af;
}
.ph-input-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}
.ph-input-badge {
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 99px;
    background: #fff;
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.ph-input-badge.outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}
.ph-send-btn {
    margin-left: auto;
    background: #e2e8f0;
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ph-chat-input-container:hover .ph-send-btn {
    background: var(--primary);
    color: #fff;
}
.ph-chat-disclaimer {
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.4;
}

/* Loader Bubble */
.ph-loader-bubble {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #f1f0f6;
    border-radius: 12px;
    width: fit-content;
}
.ph-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.ph-dot:nth-child(1) { animation-delay: -0.32s; }
.ph-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Screen */
#ph-screen-dashboard {
    gap: 16px;
}
.ph-dash-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}
.ph-dash-header p {
    font-size: 12px;
    color: #db2777; /* pinkish text from screenshot */
}
.ph-dash-stats {
    display: flex;
    gap: 12px;
}
.ph-dash-stat-card {
    flex: 1;
    background: #fafafa;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px 0;
    text-align: center;
}
.ph-dash-stat-card.borderless {
    background: transparent;
    border-color: var(--border);
}
.ph-dash-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #f87171; /* red 400 */
    line-height: 1;
}
.ph-dash-stat-value span {
    font-size: 12px;
    font-weight: 600;
}
.ph-dash-stat-value.icon { display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.ph-dash-stat-label {
    font-size: 9px;
    font-weight: 700;
    color: #9f1239; /* dark red from screenshot */
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ph-dash-substats {
    display: flex;
    gap: 12px;
}
.ph-dash-sub {
    flex: 1;
    background: #f8f8fc;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}
.ph-dash-matrix-container {
    background: #fafafa;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
}
.ph-dash-matrix-header {
    font-size: 10px;
    font-weight: 700;
    color: #9f1239;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.ph-dash-matrix-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.ph-dash-matrix {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}
.ph-matrix-item {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #4b5563;
    position: relative;
}
.ph-matrix-item.alert {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
}
.ph-matrix-item.success {
    background: #ecfdf5;
    color: #059669;
    border-color: #d1fae5;
}
.ph-matrix-item.done {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}
.ph-matrix-item .mdot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 3px;
    height: 3px;
    background: #ef4444;
    border-radius: 50%;
}
#ph-screen-training {
    gap: 16px;
}
.ph-training-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.ph-training-header p {
    font-size: 13px;
    color: var(--text-muted);
}
.ph-training-suggestion {
    background: #f8f8fc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
}
.ph-suggestion-label {
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.ph-suggestion-title {
    font-size: 13px;
    color: var(--text);
}
.ph-suggestion-score {
    font-size: 11px;
    color: #ef4444;
    margin-top: 4px;
}
.ph-training-action {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.ph-training-action:hover {
    background: #fee2e2;
}
.ph-mode-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 4px;
    margin-top: 8px;
}
.ph-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.ph-mode-card {
    background: #fafafa;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.ph-mode-card:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.ph-mode-card.disabled {
    opacity: 0.6;
    background: #fcfcfc;
}
.ph-mode-card.disabled:hover { transform: none; box-shadow: none; border-color: var(--border-light); cursor: default; }
.ph-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
}
.ph-mode-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}
.ph-mode-icon.orange { background: #ffedd5; color: #f97316; }
.ph-mode-icon.blue { background: #dbeafe; color: #3b82f6; }
.ph-mode-icon.purple { background: #f3e8ff; color: #a855f7; }
.ph-mode-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.ph-mode-desc {
    font-size: 10px;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 4px;
}
.ph-mode-count {
    font-size: 10px;
    color: var(--text-muted);
}

/* === CONFIGURATION QI === */
.ph-conf-top {
    margin-bottom: 24px;
}
.ph-conf-back {
    font-size: 11px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}
.ph-conf-container {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
}
.ph-conf-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}
.ph-conf-form label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 6px;
}
.ph-form-group {
    margin-bottom: 16px;
}
.ph-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.ph-fake-select {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.ph-mode-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.ph-mode-choice {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
}
.ph-mode-choice.active {
    background: #eff6ff;
    border-color: #3b82f6;
}
.ph-choice-title {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ph-mode-choice.active .ph-choice-title {
    color: #1d4ed8;
}
.ph-choice-desc {
    font-size: 10px;
    color: var(--text-muted);
}
.ph-conf-cta {
    background: #2563eb;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.ph-conf-cta:hover {
    background: #1d4ed8;
}

/* === QUESTION SESSION === */
.ph-q-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.ph-q-abort {
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}
.ph-q-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}
.ph-q-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.ph-q-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.ph-q-badge.blue { background: #e0e7ff; color: #4f46e5; }
.ph-q-badge.green { background: #d1fae5; color: #059669; }
.ph-q-badge.outline { border: 1px solid var(--border); color: #4b5563; }
.ph-q-text {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
    line-height: 1.5;
}
.ph-q-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.ph-q-choice {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s;
}
.ph-q-choice:hover {
    background: #fcfcfc;
    border-color: var(--border);
}
.ph-q-choice.selected {
    border-color: var(--primary);
    background: #fdf2f8;
}
.ph-q-choice.correct {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}
.ph-q-choice.incorrect {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}
.ph-choice-box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ph-q-choice.selected .ph-choice-box {
    border-color: var(--primary);
    background: var(--primary);
}
.ph-q-choice.correct .ph-choice-box {
    border-color: #10b981;
    background: #d1fae5;
}
.ph-q-choice.incorrect .ph-choice-box {
    border-color: #ef4444;
    background: #fee2e2;
}

.ph-q-correction {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}
.ph-corr-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.ph-q-correction p {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.6;
}
.ph-q-actionbar {
    margin-top: 12px;
}
.ph-valider-btn {
    background: #2563eb;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ph-valider-btn:hover { background: #1d4ed8; }
.ph-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.ph-bubble.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.ph-bubble.assistant {
    background: #f4f3f8;
    border: 1px solid var(--border-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ph-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.ph-text p { margin-bottom: 8px; padding: 0; }
.ph-text ul { padding-left: 20px; margin-bottom: 0; }
.ph-text li { margin-bottom: 4px; }
.ph-source-chunk {
    position: relative;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: inline-block;
    cursor: help;
}
.ph-source-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--primary-lighter);
    border-radius: 6px;
    transition: all 0.2s;
}
.ph-source-chunk:hover .ph-source-title {
    background: #e9d5df;
}
.ph-source-hover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 320px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s ease;
    z-index: 10;
}
.ph-source-chunk:hover .ph-source-hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ph-source-hover strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

/* ─── Sections ─── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.section-header p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 850px;
    margin: 0 auto;
}

/* ─── About Grid ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.stat-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 120px;
}
.stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px -8px rgba(109,26,62,0.2);
    transform: translateY(-6px);
}
.stat-icon {
    color: var(--primary);
    margin-bottom: 8px;
}
.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ─── Features ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.feature-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.25s ease;
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 16px 32px -8px rgba(109,26,62,0.2);
    transform: translateY(-8px);
}
.feature-icon-svg {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    border-radius: 10px;
    color: var(--primary);
    margin-bottom: 14px;
}
.feature-card h3 {
    font-size: 15px;
    font-weight: 650;
    margin-bottom: 6px;
}
.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Specialties ─── */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 720px;
    margin: 0 auto 24px;
}
.specialty-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}
.specialty-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px -8px rgba(109,26,62,0.2);
    transform: translateY(-6px);
}
.specialty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 auto 10px;
}
.specialty-dot.active {
    background: #28c840;
    box-shadow: 0 0 8px rgba(40,200,64,0.3);
}
.specialty-dot.upcoming {
    background: #ffbd2e;
    box-shadow: 0 0 8px rgba(255,189,46,0.3);
}
.specialty-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.specialty-status {
    font-size: 12px;
    color: var(--text-muted);
}
.specialty-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}
.specialty-note a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Architecture ─── */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.arch-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.2s;
}
.arch-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px -8px rgba(109,26,62,0.2);
    transform: translateY(-6px);
}
.arch-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.arch-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.arch-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Institutions ─── */
.institutions-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}
.institutions-text h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.institutions-lead {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}
.institutions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.institutions-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.institutions-list li svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 1px;
}
.cta-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.cta-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.cta-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.cta-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px !important;
}

/* ─── Access ─── */
.access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 20px;
}
.access-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: all 0.2s ease;
}
.access-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px -8px rgba(109,26,62,0.15);
    transform: translateY(-4px);
}
.access-card:hover .access-arrow {
    color: var(--primary);
    transform: translateX(3px);
}
.access-name {
    font-size: 15px;
    font-weight: 650;
    flex: 1;
}
.access-desc {
    display: none;
}
.access-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: all 0.2s;
}
.access-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
.access-note a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Collab Banner ─── */
.section-collab {
    padding: 32px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.collab-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.collab-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.collab-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.collab-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.35;
    filter: grayscale(100%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.collab-img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}
.mistral-logo {
    flex-direction: row;
    gap: 10px;
}
.mistral-logo div {
    display: flex;
    flex-direction: column;
}
.collab-logo-text {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.collab-logo-text.saclay {
    font-size: 13px;
    color: #1a2e5a;
}
.collab-logo-text.uvsq {
    font-size: 18px;
    color: #003d7c;
    letter-spacing: 0.04em;
}
.collab-logo-text.mistral {
    font-size: 16px;
    color: #f7631b;
    font-weight: 800;
}
.collab-logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.collab-logo-flag {
    font-size: 24px;
}
.collab-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
}
.mistral-img {
    height: 38px;
}
.pulseware-img {
    height: 48px;
}
.collab-colleges {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

/* ─── FAQ ─── */
.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.25s ease;
    overflow: hidden;
}
.faq-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(109,26,62,0.08);
}
.faq-item summary {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s;
}
.faq-item[open] summary::after {
    content: '−';
    color: var(--primary);
}
.faq-item summary:hover {
    color: var(--primary);
}
.faq-item p {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ─── Footer ─── */
footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
}
.footer-brand-block {}
.footer-brand {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 6px;
    color: #fff;
}
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-accent { color: rgba(255,255,255,0.6); }
.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}
.footer-links h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
}
.footer-links a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

/* ─── Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ─── TEACHER UI MODS ─── */
.ph-t-header {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
    padding-bottom: 16px;
}
.ph-t-tabs {
    display: flex;
    gap: 24px;
}
.ph-t-tab {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 16px;
    margin-bottom: -17px;
    border-bottom: 2px solid transparent;
}
.ph-t-tab.active {
    color: #9f1239;
    border-bottom-color: #9f1239;
}
.ph-t-badge {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.ph-t-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.ph-t-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}
.ph-t-step.active {
    color: #9f1239;
}
.ph-t-step .num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #9f1239;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 10px;
}
.ph-t-step .num.outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
}
.ph-t-steps .line {
    height: 1px;
    width: 60px;
    background: #e5e7eb;
}
.ph-t-configurator {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
.ph-t-conf-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}
.ph-t-form-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 12px;
    align-items: end;
}
.ph-t-form-group { margin-bottom: 16px; }
.ph-t-form-group.full { margin-bottom: 16px; }
.ph-t-form-group label {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 6px;
}
.ph-t-select {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.teacher-btn {
    background: #9f1239;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.teacher-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}
.ph-t-result-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}
.ph-t-res-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.ph-t-res-tags { display: flex; gap: 8px; }
.ph-t-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.ph-t-tag.dark { background: #1f2937; color: #fff; }
.ph-t-tag.gray { background: #e5e7eb; color: #4b5563; }
.ph-t-tag.red-light { color: #9f1239; }
.ph-t-res-actions { display: flex; gap: 12px; }
.ph-btn-correct { background: #d1fae5; color: #065f46; border: 1px solid #34d399; padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; }
.ph-btn-icon { color: #4b5563; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.ph-t-res-section { margin-bottom: 20px; }
.ph-t-res-section .label { font-size: 10px; color: #9f1239; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.ph-t-res-section p { font-size: 13px; color: #374151; line-height: 1.5; }
.ph-t-variante { font-size: 12px; color: #10b981; margin-bottom: 6px; }

.ph-t-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ph-t-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}
.ph-t-stat-val { font-size: 28px; font-weight: 700; color: #1f2937; line-height: 1; margin-bottom: 8px; }
.ph-t-stat-lbl { font-size: 10px; font-weight: 600; color: #6b7280; text-transform: uppercase; }

.ph-t-list-container { margin-top: 32px; }
.ph-t-list-header { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 16px; display: flex; align-items: center; }
.ph-t-list-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 12px; }
.ph-t-list-lbl { font-size: 13px; font-weight: 600; color: #374151; display: flex; align-items: center; }
.ph-t-badge-college { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-right: 12px; }
.ph-t-list-val { font-size: 13px; font-weight: 600; color: #111827; display: flex; align-items: center; }

.ph-t-graph-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}
.ph-t-graph-title { font-size: 12px; font-weight: 700; color: #9f1239; text-transform: uppercase; margin-bottom: 24px; }
.ph-t-graph-x { display: flex; justify-content: space-between; margin-top: 12px; font-size: 10px; color: #9ca3af; }

/* ─── Team Section ─── */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.team-item {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px -4px rgba(109,26,62,0.08);
    border-color: rgba(109,26,62,0.2);
}
.team-item .team-avatar {
    width: 60px;
    height: 60px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #fdf2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fbcfe8;
}
.team-item .team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-item .avatar-placeholder {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.team-item .team-info {
    text-align: left;
}
.team-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.team-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}
.team-item p strong {
    color: var(--primary);
    font-weight: 600;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 24px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .mobile-menu-btn { display: block; }

    .hero-pillars { flex-direction: column; gap: 16px; }
    .pillar-divider { width: 100%; height: 1px; }

    .features-grid { grid-template-columns: 1fr; }
    .specialties-grid { grid-template-columns: 1fr 1fr; }
    .arch-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .institutions-grid { grid-template-columns: 1fr; }
    .team-item { flex-direction: column; text-align: center; gap: 16px; }
    .team-item .team-info { text-align: center; }
    .access-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }

    .hero { padding: 130px 20px 40px; }
    .section { padding: 72px 0; }

    .placeholder-sidebar { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .specialties-grid { grid-template-columns: 1fr; }
}
