/* =============================================================================
   Pensees & Emotions - Site vitrine + Portail client
   Theme Catppuccin Mocha - Ambiance apaisante pour service therapeutique
   ============================================================================= */

/* --- Google Fonts import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- Variables Catppuccin Mocha (teintes apaisantes) --- */
:root {
  --ctp-rosewater: #f5e0dc;
  --ctp-flamingo: #f2cdcd;
  --ctp-pink: #f5c2e7;
  --ctp-mauve: #cba6f7;
  --ctp-red: #f38ba8;
  --ctp-maroon: #eba0ac;
  --ctp-peach: #fab387;
  --ctp-yellow: #f9e2af;
  --ctp-green: #a6e3a1;
  --ctp-teal: #94e2d5;
  --ctp-sky: #89dceb;
  --ctp-sapphire: #74c7ec;
  --ctp-blue: #89b4fa;
  --ctp-lavender: #b4befe;
  --ctp-text: #cdd6f4;
  --ctp-subtext1: #bac2de;
  --ctp-subtext0: #a6adc8;
  --ctp-overlay2: #9399b2;
  --ctp-overlay1: #7f849c;
  --ctp-overlay0: #6c7086;
  --ctp-surface2: #585b70;
  --ctp-surface1: #45475a;
  --ctp-surface0: #313244;
  --ctp-base: #1e1e2e;
  --ctp-mantle: #181825;
  --ctp-crust: #11111b;

  /* Palette apaisante derivee */
  --primary: var(--ctp-lavender);
  --primary-soft: rgba(180, 190, 254, 0.15);
  --primary-hover: var(--ctp-blue);
  --accent: var(--ctp-teal);
  --accent-soft: rgba(148, 226, 213, 0.15);
  --success: var(--ctp-green);
  --warning: var(--ctp-yellow);
  --danger: var(--ctp-red);

  --bg: var(--ctp-base);
  --bg-card: var(--ctp-mantle);
  --bg-elevated: var(--ctp-surface0);
  --bg-input: var(--ctp-crust);
  --border: var(--ctp-surface1);
  --border-focus: var(--ctp-lavender);
  --text: var(--ctp-text);
  --text-secondary: var(--ctp-subtext0);
  --text-muted: var(--ctp-overlay1);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

img { max-width: 100%; height: auto; }

/* --- Utility classes --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(24, 24, 37, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand svg { flex-shrink: 0; }

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--primary-soft);
}

.nav-links .btn-portal {
  background: var(--primary);
  color: var(--ctp-crust);
  font-weight: 600;
  padding: 8px 20px;
}

.nav-links .btn-portal:hover {
  background: var(--primary-hover);
}

/* Hamburger menu mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* --- Hero section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 50%, rgba(148, 226, 213, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(180, 190, 254, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 80%, rgba(245, 194, 231, 0.04) 0%, transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -2%) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--ctp-lavender), var(--ctp-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--ctp-crust);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(180, 190, 254, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-success {
  background: var(--success);
  color: var(--ctp-crust);
}

.btn-success:hover {
  filter: brightness(1.1);
}

.btn-danger {
  background: var(--danger);
  color: var(--ctp-crust);
}

/* --- Section styling --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-card);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* --- Feature cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon.teal { background: var(--accent-soft); color: var(--accent); }
.feature-icon.lavender { background: var(--primary-soft); color: var(--primary); }
.feature-icon.pink { background: rgba(245, 194, 231, 0.15); color: var(--ctp-pink); }
.feature-icon.green { background: rgba(166, 227, 161, 0.15); color: var(--ctp-green); }
.feature-icon.peach { background: rgba(250, 179, 135, 0.15); color: var(--ctp-peach); }
.feature-icon.mauve { background: rgba(203, 166, 247, 0.15); color: var(--ctp-mauve); }

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Privacy section --- */
.privacy-section {
  position: relative;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.privacy-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.privacy-visual .shield-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: var(--ctp-green);
}

.privacy-points {
  list-style: none;
}

.privacy-points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(69, 71, 90, 0.5);
}

.privacy-points li:last-child {
  border-bottom: none;
}

.privacy-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(166, 227, 161, 0.15);
  color: var(--ctp-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-points h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.privacy-points p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Screenshot mockup --- */
.screenshot-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.screenshot-titlebar {
  background: var(--ctp-crust);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.screenshot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.screenshot-dot.red { background: #f38ba8; }
.screenshot-dot.yellow { background: #f9e2af; }
.screenshot-dot.green { background: #a6e3a1; }

.screenshot-body {
  padding: 0;
  min-height: 300px;
  position: relative;
}

/* --- Mock UI components (reproduits depuis l'app) --- */
.mock-app {
  display: flex;
  min-height: 450px;
  font-size: 12px;
}

.mock-sidebar {
  width: 200px;
  background: var(--ctp-crust);
  padding: 16px 0;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}

.mock-sidebar-brand {
  padding: 8px 16px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
}

.mock-sidebar-brand span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.mock-nav-item {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: default;
}

.mock-nav-item.active {
  background: var(--primary);
  color: var(--ctp-crust);
  font-weight: 600;
}

.mock-nav-section {
  padding: 12px 16px 4px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.mock-main {
  flex: 1;
  padding: 16px;
  overflow: hidden;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mock-header h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.mock-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mock-stat-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
}

.mock-stat-card .label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mock-stat-card .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

.mock-stat-card .change {
  font-size: 9px;
  color: var(--success);
  margin-top: 2px;
}

/* Mock pipeline funnel */
.mock-pipeline {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.mock-pipe-stage {
  flex: 1;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--ctp-crust);
  position: relative;
}

/* --- Pipeline visualization (guide page) --- */
.pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.pipe-step {
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  position: relative;
}

.pipe-step.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.pipe-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--primary-soft);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: 20px;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(180, 190, 254, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* --- Email interface (Outlook style - from app) --- */
.email-outlook {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 250px);
  min-height: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.email-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}

.email-split {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.email-list-pane {
  width: 340px;
  flex-shrink: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
}

.email-detail-pane {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--bg);
}

.email-row {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(69, 71, 90, 0.3);
  cursor: pointer;
  transition: background var(--transition);
}

.email-row:hover {
  background: var(--primary-soft);
}

.email-row.active {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
}

.email-row.unread {
  border-left: 3px solid var(--accent);
}

.email-row .email-from {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.email-row .email-subject {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-row .email-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.email-row .email-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.email-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 12px;
}

.email-detail-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.email-detail-header h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.email-detail-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.email-detail-body {
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* --- Compose email modal --- */
.compose-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 27, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.compose-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 600px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.compose-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compose-header h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.compose-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--transition);
}

.compose-close:hover { color: var(--text); }

.compose-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.compose-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* --- Parcours/Journey section --- */
.journey-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.journey-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}

.journey-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  transition: all var(--transition);
}

.journey-step.active .journey-step-icon {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.journey-step.completed .journey-step-icon {
  border-color: var(--success);
  background: rgba(166, 227, 161, 0.15);
}

.journey-step-content {
  flex: 1;
  padding-top: 8px;
}

.journey-step-content h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}

.journey-step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.journey-action {
  margin-top: 12px;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-teal { background: var(--accent-soft); color: var(--accent); }
.badge-lavender { background: var(--primary-soft); color: var(--primary); }
.badge-green { background: rgba(166, 227, 161, 0.15); color: var(--success); }
.badge-yellow { background: rgba(249, 226, 175, 0.15); color: var(--warning); }
.badge-red { background: rgba(243, 139, 168, 0.15); color: var(--danger); }
.badge-pink { background: rgba(245, 194, 231, 0.15); color: var(--ctp-pink); }

/* --- Login page --- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 420px;
  max-width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-card h2 {
  margin-bottom: 8px;
}

.login-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.login-card .form-group {
  text-align: left;
}

.login-error {
  background: rgba(243, 139, 168, 0.1);
  border: 1px solid rgba(243, 139, 168, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--danger);
  margin-bottom: 16px;
  display: none;
}

/* --- Portal layout --- */
.portal-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 64px;
}

.portal-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 64px;
  bottom: 0;
  overflow-y: auto;
}

.portal-sidebar .user-info {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.portal-sidebar .user-info .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.portal-sidebar .user-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.portal-sidebar .user-info .email {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.portal-nav-item:hover {
  background: var(--primary-soft);
  color: var(--text);
}

.portal-nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.portal-nav-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.portal-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  min-height: calc(100vh - 64px);
}

/* --- Toast notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 400px;
}

.toast-success {
  background: rgba(166, 227, 161, 0.15);
  border: 1px solid rgba(166, 227, 161, 0.3);
  color: var(--success);
}

.toast-error {
  background: rgba(243, 139, 168, 0.15);
  border: 1px solid rgba(243, 139, 168, 0.3);
  color: var(--danger);
}

.toast-info {
  background: var(--primary-soft);
  border: 1px solid rgba(180, 190, 254, 0.3);
  color: var(--primary);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Footer --- */
.site-footer {
  background: var(--ctp-crust);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Guide page specifics --- */
.guide-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.guide-section:last-child {
  border-bottom: none;
}

.guide-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.guide-split.reverse {
  direction: rtl;
}

.guide-split.reverse > * {
  direction: ltr;
}

.guide-text h3 {
  margin-bottom: 12px;
}

.guide-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-text ul {
  list-style: none;
}

.guide-text li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.guide-text li svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* --- Spinner --- */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Loading overlay --- */
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .subtitle { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .guide-split { grid-template-columns: 1fr; }
  .guide-split.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .mock-sidebar { display: none; }
  .mock-cards { grid-template-columns: repeat(2, 1fr); }
  
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ctp-mantle);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }

  .portal-sidebar {
    display: none;
  }
  .portal-content {
    margin-left: 0;
  }

  .email-list-pane {
    width: 100%;
  }
  .email-detail-pane {
    display: none;
  }
  .email-detail-pane.active {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 500;
    margin-top: 64px;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ctp-surface1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ctp-surface2); }

/* ===================================================================
   Contact page
   =================================================================== */

/* -- Bloc de confiance -- */
.contact-trust-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  background: var(--surface0);
  border-radius: var(--radius);
  border: 1px solid var(--surface1);
  transition: border-color 0.2s;
}

.contact-trust-item:hover {
  border-color: var(--ctp-teal);
}

.contact-trust-item h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.contact-trust-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.contact-trust-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-trust-icon.green  { background: rgba(166, 227, 161, 0.12); color: var(--ctp-green);    }
.contact-trust-icon.teal   { background: rgba(148, 226, 213, 0.12); color: var(--ctp-teal);     }
.contact-trust-icon.lavender { background: rgba(180, 190, 254, 0.12); color: var(--ctp-lavender); }

/* -- Carte formulaire -- */
.contact-form-card {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.contact-form-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-form-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.contact-form-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* -- Champs du formulaire -- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group label .required {
  color: var(--ctp-red);
  margin-left: 2px;
}

.form-group label .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.78rem;
}

.form-group input,
.form-group textarea {
  background: var(--ctp-surface1);
  border: 1px solid var(--ctp-surface2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ctp-teal);
  box-shadow: 0 0 0 3px rgba(148, 226, 213, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-card {
    padding: 24px 18px;
  }
  .contact-trust-item {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===================================================================
   Splash promotionnel GB10
   =================================================================== */

.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(ellipse at 40% 50%, #1e2030 0%, #11111b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.splash-content {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  padding: 40px;
  animation: splashFadeIn 0.6s ease;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.splash-img {
  width: 320px;
  max-width: 40vw;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 8px 40px rgba(148, 226, 213, 0.18));
}

.splash-text {
  text-align: left;
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ctp-teal);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.splash-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.splash-hw {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ctp-green), var(--ctp-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 28px;
}

.splash-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.splash-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1;
}

@media (max-width: 700px) {
  .splash-content {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    padding: 32px 20px;
  }
  .splash-text { text-align: center; }
  .splash-img  { width: 220px; max-width: 60vw; }
  .splash-title { font-size: 1.5rem; }
  .splash-hw    { font-size: 1.2rem; }
  .splash-offer-items { flex-direction: column; }
}

/* -- Bloc offre incluse -- */
.splash-offer {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(148, 226, 213, 0.06);
  border: 1px solid rgba(148, 226, 213, 0.15);
  border-radius: 12px;
}

.splash-offer-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ctp-teal);
  margin-bottom: 12px;
}

.splash-offer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.splash-offer-items span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* -- Lien contact vendeur agree (dans la colonne texte) -- */
.splash-cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ctp-blue);
  text-decoration: none;
  background: rgba(137, 180, 250, 0.08);
  border: 1px solid rgba(137, 180, 250, 0.25);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.splash-cta-contact:hover {
  background: rgba(137, 180, 250, 0.16);
  border-color: rgba(137, 180, 250, 0.45);
}

/* -- Bouton fermer splash -- */
.splash-close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(205, 214, 244, 0.08);
  border: 1px solid rgba(205, 214, 244, 0.15);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.splash-close:hover {
  background: rgba(205, 214, 244, 0.15);
  color: var(--text-primary);
}

/* --- Print --- */
@media print {
  .site-nav, .site-footer, .portal-sidebar, .splash-overlay { display: none; }
  .portal-content { margin-left: 0; }
  body { background: #fff; color: #000; }
}
