/* ==========================================================================
   Biffdoc™ — Design System
   Palette: Navy cosmique · Or astral · Bleu céleste
   ========================================================================== */

:root {
  --navy:          #080f20;
  --navy-mid:      #0b1528;
  --navy-soft:     #0f172a;
  --navy-card:     #1e293b;
  --navy-border:   #334155;
  --primary:       #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow:  rgba(37, 99, 235, 0.22);
  --sky:           #38bdf8;
  --gold:          #d4a935;
  --gold-light:    #f5c842;
  --success:       #059669;
  --danger:        #dc2626;
  --surface:       #ffffff;
  --bg-page:       #f0f4f8;
  --border:        #e2e8f0;
  --text-main:     #0f172a;
  --text-muted:    #64748b;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:     0 10px 30px rgba(15,23,42,0.10);
  --shadow-lg:     0 24px 48px rgba(15,23,42,0.14);
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-soft);
  letter-spacing: -0.025em;
  transition: opacity 0.2s;
}

.brand-logo:hover { opacity: 0.85; }

.brand-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-mid), var(--primary));
  box-shadow: 0 3px 10px rgba(37,99,235,0.3);
}

.brand-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--navy-soft);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-accent {
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--navy-soft);
  background: rgba(255,255,255,0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(30,41,59,0.08);
  color: var(--primary);
}

.btn-large {
  padding: 15px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  background: radial-gradient(ellipse at 50% -10%, rgba(37,99,235,0.10) 0%, transparent 68%),
              linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  position: relative;
  overflow: hidden;
}

/* Étoiles animées */
.hero-stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: twinkle 4s infinite ease-in-out;
}
.s1 { width:4px; height:4px; top:10%; left:12%; animation-delay:0s; }
.s2 { width:3px; height:3px; top:22%; left:80%; animation-delay:0.8s; }
.s3 { width:5px; height:5px; top:55%; left:6%; animation-delay:1.6s; }
.s4 { width:3px; height:3px; top:72%; left:88%; animation-delay:2.4s; }
.s5 { width:4px; height:4px; top:40%; left:92%; animation-delay:0.4s; }
.s6 { width:3px; height:3px; top:80%; left:30%; animation-delay:3.2s; }
.s7 { width:5px; height:5px; top:18%; left:55%; animation-delay:1.2s; }
.s8 { width:3px; height:3px; top:65%; left:70%; animation-delay:2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50%       { opacity: 0.75; transform: scale(1.2); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--sky), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 999px;
  font-size: 15px; /* c'est l'argument principal du site */
  line-height: 1.4;
  text-align: center;
  font-weight: 600;
  border: 1px solid #dbeafe;
}

.hero-trust-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-check {
  color: var(--success);
  font-weight: 800;
  font-size: 1rem;
}

/* ==========================================================================
   SECTIONS & CARDS
   ========================================================================== */

.section { padding: 90px 0; }

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy-soft);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}

.card h3 {
  font-size: 1.15rem;
  color: var(--navy-soft);
  margin-bottom: 10px;
  font-weight: 700;
}

/* ---- Audience Grid ---- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.audience-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all 0.25s ease;
}

.audience-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37,99,235,0.1);
}

.audience-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.audience-card h4 {
  font-weight: 700;
  color: var(--navy-soft);
  margin-bottom: 8px;
  font-size: 1rem;
}

.audience-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- RGPD Cards ---- */
.rgpd-card {
  background: #111827;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #1e3a5f;
  transition: all 0.25s ease;
}

.rgpd-card:hover {
  border-color: var(--sky);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(56,189,248,0.12);
}

/* ==========================================================================
   PRICING
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1050px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 16px 40px var(--primary-glow);
  transform: scale(1.03);
}

.pricing-card.featured:hover { transform: scale(1.05) translateY(-4px); }

.pricing-badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--navy-soft), var(--primary));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 999px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--navy-soft);
  margin: 18px 0 26px;
  letter-spacing: -0.04em;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: '\2713';
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer-bottom {
  background: var(--navy-mid);
  color: #94a3b8;
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sky); }

.footer-legal {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #475569;
}

/* ==========================================================================
   STUDIO APP (app.html)
   ========================================================================== */

.studio-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--navy);
}

.studio-sidebar {
  width: 390px;
  background: #131e30;
  border-right: 1px solid #1e293b;
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
}

.sidebar-top {
  padding: 16px 18px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1825;
}

.sidebar-scroll {
  padding: 18px;
  overflow-y: auto;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

.control-section {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #1a2637;
}
.control-section:last-child { border-bottom: none; }

.control-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #1e293b;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.18s;
}

.filter-item:hover { background: rgba(255,255,255,0.07); border-color: #334155; }

.filter-item.active {
  background: rgba(37,99,235,0.18);
  border-color: var(--primary);
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}

.entity-count-tag {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1e293b;
  color: #64748b;
}

.entity-count-tag.found {
  background: var(--gold);
  color: #1a1200;
}

.detected-entities-box {
  background: #0a111d;
  border-radius: 8px;
  border: 1px solid #1e293b;
  padding: 10px;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

.entity-pill-item {
  background: #131e30;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  transition: all 0.15s;
}

.entity-pill-item:hover { border-color: var(--primary); background: #1a2840; }

.entity-pill-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.entity-pill-badge.biffed {
  background: #000;
  color: #10b981;
  border: 1px solid #10b981;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid #334155;
  background: #0a111d;
  color: white;
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.2);
}

/* ---- Studio Main Area ---- */
.studio-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  position: relative;
}

.studio-toolbar {
  height: 60px;
  background: #0d1825;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  color: white;
  flex-shrink: 0;
}

.canvas-container {
  flex-grow: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

/* Document Paper Preview (A4) */
.doc-sheet {
  background: white;
  width: 595px;
  min-height: 842px;
  box-shadow: 0 30px 60px -8px rgba(0,0,0,0.75);
  border-radius: 2px;
  position: relative;
  user-select: none;
  overflow: visible;
}

.doc-sheet-content {
  padding: 0;
  font-family: 'Times New Roman', Times, Georgia, serif;
  color: #0f172a;
  line-height: 1.6;
}

/* ==========================================================================
   BIFFAGE & REDACTION BOXES
   ========================================================================== */

.redact-box {
  background-color: #000000;
  border-radius: 2px;
  position: absolute;
  transition: box-shadow 0.15s ease;
  z-index: 10;
  box-sizing: border-box;
}

.redact-box.drawing {
  background-color: rgba(0,0,0,0.8);
  border: 1.5px dashed var(--sky);
  z-index: 20;
}

.redact-box:hover {
  box-shadow: 0 0 0 2px var(--sky), 0 2px 8px rgba(0,0,0,0.5);
}

/* ---- Resize handles ---- */
.redact-handle {
  position: absolute;
  width: 9px; height: 9px;
  background-color: var(--sky);
  border: 1.5px solid #ffffff;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.15s, transform 0.1s;
  z-index: 30;
  box-sizing: border-box;
}

.redact-box:hover .redact-handle,
.redact-box.is-resizing .redact-handle { opacity: 1; }

.redact-handle:hover {
  transform: scale(1.4);
  background-color: #0284c7;
}

.handle-nw { top:-4.5px; left:-4.5px;   cursor: nwse-resize; }
.handle-ne { top:-4.5px; right:-4.5px;  cursor: nesw-resize; }
.handle-sw { bottom:-4.5px; left:-4.5px; cursor: nesw-resize; }
.handle-se { bottom:-4.5px; right:-4.5px; cursor: nwse-resize; }
.handle-n  { top:-4.5px; left: calc(50% - 4.5px); cursor: ns-resize; }
.handle-s  { bottom:-4.5px; left: calc(50% - 4.5px); cursor: ns-resize; }
.handle-w  { top: calc(50% - 4.5px); left:-4.5px; cursor: ew-resize; }
.handle-e  { top: calc(50% - 4.5px); right:-4.5px; cursor: ew-resize; }

.redact-box.is-resizing {
  outline: 2px dashed var(--sky) !important;
  box-shadow: 0 0 12px rgba(56,189,248,0.55) !important;
}

/* Manual boxes */
.redact-box.manual {
  position: absolute;
  background: #000000 !important;
  color: transparent;
  border: 1px solid #000;
  border-radius: 2px;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}
.redact-box.manual:hover { outline: 2px solid #ef4444; }

/* ==========================================================================
   AUTHENTIFICATION MODALS
   ========================================================================== */

.auth-guest-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-modal-dialog {
  background: #0c1526;
  border: 1px solid #1e3350;
  border-radius: 18px;
  width: 100%;
  max-width: 470px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(56,189,248,0.12);
  position: relative;
  padding: 34px;
  color: white;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}
.auth-modal-close:hover { color: white; }

.auth-modal-header { text-align: center; margin-bottom: 24px; }

.auth-modal-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-modal-logo .brand-icon { width: 34px; height: 34px; }
.auth-modal-logo span:last-child { color: var(--sky); }

.auth-modal-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 5px;
}

.auth-tabs {
  display: flex;
  background: #111e35;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid #1e3350;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: #64748b;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(37,99,235,0.4);
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-alert.error   { background: rgba(220,38,38,0.15); border: 1px solid #ef4444; color: #fca5a5; }
.auth-alert.success { background: rgba(5,150,105,0.15); border: 1px solid #10b981; color: #6ee7b7; }
.auth-alert.info    { background: rgba(37,99,235,0.15); border: 1px solid var(--sky); color: #7dd3fc; }

.auth-form .form-group { margin-bottom: 16px; }

.auth-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  background: #111e35;
  border: 1px solid #1e3350;
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.2);
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 9px;
  box-shadow: 0 4px 16px var(--primary-glow);
}

/* ==========================================================================
   USER PROFILE DROPDOWN
   ========================================================================== */

.user-profile-menu { position: relative; }

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111e35;
  border: 1px solid #1e3350;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
}
.user-profile-btn:hover { border-color: var(--sky); background: #1e2f4a; }

.user-avatar-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37,99,235,0.4);
}

.user-info-text { display: flex; flex-direction: column; text-align: left; }
.user-name { font-size: 0.8rem; font-weight: 700; color: #f8fafc; line-height: 1.2; }
.user-cabinet { font-size: 0.67rem; color: #64748b; }
.user-menu-chevron { font-size: 0.65rem; color: #64748b; }

.user-dropdown-card {
  position: absolute;
  top: calc(100% + 9px); right: 0;
  width: 250px;
  background: #0c1526;
  border: 1px solid #1e3350;
  border-radius: 13px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  z-index: 2000;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}

.user-dropdown-header {
  padding: 14px;
  background: #111e35;
  border-bottom: 1px solid #1e3350;
}

.plan-status-pill {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16,185,129,0.12);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16,185,129,0.25);
}

.user-dropdown-body { padding: 8px 0; }

.user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: #94a3b8;
  font-size: 0.83rem;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.user-dropdown-link:hover { background: #1e2f4a; color: var(--sky); }
.user-dropdown-link.text-danger:hover { background: rgba(220,38,38,0.12); color: #f87171; }

.user-dropdown-divider { height: 1px; background: #1e3350; margin: 5px 0; }

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  background: var(--navy-soft);
  color: white;
  border: 1px solid #334155;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  pointer-events: auto;
  animation: slideInRight 0.25s cubic-bezier(0.16,1,0.3,1);
  transition: opacity 0.3s, transform 0.3s;
}

.toast-item.fade-out { opacity: 0; transform: translateX(30px); }
.toast-item.toast-success { border-left: 4px solid #10b981; }
.toast-item.toast-error   { border-left: 4px solid #ef4444; }
.toast-item.toast-info    { border-left: 4px solid var(--sky); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   ACCESSIBILITÉ & UTILITAIRES
   ========================================================================== */

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px; left: 12px;
  z-index: 100000;
  background: var(--navy-soft);
  color: white;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.btn:focus-visible, .filter-item:focus-visible { outline-offset: 3px; }

.noscript-banner {
  background: var(--danger);
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   STUDIO — compléments
   ========================================================================== */

.studio-body { margin: 0; }
@media (min-width: 901px) { .studio-body { overflow: hidden; } }

.studio-sidebar h2.control-title { margin-bottom: 10px; }

.hint { font-size: 0.75rem; color: #94a3b8; margin-top: 8px; line-height: 1.5; }
.hint-inline { color: #94a3b8; font-size: 0.72rem; }
.privacy-hint { color: #7dd3fc; }
.verify-hint { color: #fcd34d; }
.verify-hint strong { color: #fde68a; }

.sidebar-btn { width: 100%; margin-bottom: 8px; font-size: 0.85rem; cursor: pointer; }
.sidebar-btn.btn-outline { color: #f1f5f9; border-color: #475569; }
.sidebar-btn.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: var(--sky); }
.sidebar-btn-soft { background: #334155; color: #e2e8f0; }
.sidebar-btn-soft:hover { background: #3f4f66; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

button.filter-item {
  width: 100%;
  text-align: left;
  color: #e2e8f0;
  font: inherit;
}
.filter-icon { font-size: 1.1rem; }
.filter-name { display: block; font-weight: 600; font-size: 0.85rem; }
.filter-sub { display: block; font-size: 0.72rem; color: #94a3b8; }
.entity-count-tag { color: #94a3b8; }
.entity-count-tag.found { min-width: 22px; text-align: center; }

.keyword-form { display: flex; gap: 6px; }
.keyword-form .form-control { flex: 1; min-width: 0; }
.keyword-add { padding: 6px 14px; font-size: 0.8rem; background: var(--primary); }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #334155; color: white;
  padding: 3px 4px 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}
.tag-count { background: rgba(0,0,0,0.35); border-radius: 999px; padding: 0 7px; font-size: 0.7rem; color: #cbd5e1; }
.tag button, .entity-remove {
  background: transparent; border: none; color: #f87171; cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; line-height: 1;
}
.tag button:hover, .entity-remove:hover { background: rgba(248,113,113,0.18); }

.detected-entities-box { list-style: none; }
.entity-pill-item { padding: 2px 4px 2px 2px; gap: 4px; }
.entity-goto {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: none; color: #e2e8f0; cursor: pointer;
  padding: 5px 6px; text-align: left; font: inherit; font-size: 0.78rem;
}
.entity-label { color: #94a3b8; font-weight: 600; white-space: nowrap; }
.entity-text { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-page { color: #94a3b8; font-size: 0.7rem; white-space: nowrap; }
.list-empty { color: #94a3b8; font-size: 0.78rem; text-align: center; padding: 10px; }

.check-label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; cursor: pointer; margin-bottom: 14px; line-height: 1.4; }
.check-label input { margin-top: 3px; flex-shrink: 0; }
.export-section { border-top: 1px solid #334155; padding-top: 20px; }

.sidebar-foot {
  padding: 10px 18px;
  border-top: 1px solid #1e293b;
  font-size: 0.72rem;
  color: #94a3b8;
  background: #0d1825;
}
.sidebar-foot a { color: #94a3b8; }
.sidebar-foot a:hover { color: var(--sky); }

.studio-toolbar { gap: 16px; flex-wrap: wrap; height: auto; min-height: 60px; padding: 8px 22px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc-title { font-weight: 600; font-size: 0.9rem; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-size: 0.8rem; background: #334155; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.scan-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: #93c5fd; }
.scan-status progress { width: 90px; height: 6px; accent-color: var(--sky); }
.toolbar-group { display: flex; align-items: center; border: 1px solid #475569; border-radius: 6px; background: #1e293b; overflow: hidden; font-size: 0.8rem; color: #cbd5e1; }
.toolbar-group > span { padding: 4px 10px; white-space: nowrap; }
.tool-btn { background: transparent; border: none; color: white; padding: 5px 11px; cursor: pointer; font-size: 0.8rem; }
.tool-btn:hover:not(:disabled) { background: #334155; }
.tool-btn:disabled { opacity: 0.35; cursor: default; }
.clear-btn { padding: 6px 12px; color: #fca5a5; border-color: #7f1d1d; font-size: 0.85rem; }
.clear-btn:hover { background: rgba(220,38,38,0.12); border-color: #dc2626; }

.studio-notice { padding: 10px 22px; font-size: 0.85rem; line-height: 1.5; border-bottom: 1px solid #1e293b; }
.studio-notice.warn { background: #3b2a08; color: #fde68a; }
.studio-notice.info { background: #0c2a4a; color: #bae6fd; }
.notice-link { color: inherit; font-weight: 700; }

.canvas-container { min-height: 0; }
.canvas-container.drop-target { outline: 3px dashed var(--sky); outline-offset: -12px; }
.doc-sheet { flex-shrink: 0; margin: 0 auto; }
.sheet-message { padding: 100px 24px; text-align: center; color: #475569; font-size: 1rem; }
.page-canvas { display: block; width: 100%; height: 100%; border-radius: 2px; }

.redactions-overlay { position: absolute; inset: 0; pointer-events: none; }
.redactions-overlay.draw-mode { pointer-events: auto; cursor: crosshair; touch-action: none; }
.redact-box { touch-action: none; }
.redact-box:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.redact-handle { width: 11px; height: 11px; }
@media (pointer: coarse) { .redact-handle { width: 18px; height: 18px; opacity: 1; } }

.small-dialog {
  border: 1px solid #1e3350; border-radius: 14px; background: #0c1526; color: white;
  padding: 26px; width: min(420px, calc(100vw - 32px)); margin: auto;
}
.small-dialog::backdrop { background: rgba(8,15,32,0.8); }
.small-dialog h2 { font-size: 1.15rem; margin-bottom: 8px; }
.small-dialog p { color: #94a3b8; font-size: 0.88rem; margin-bottom: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.small-dialog .btn-outline { color: white; border-color: #475569; }

/* ==========================================================================
   FENÊTRE DE CONNEXION (<dialog>)
   ========================================================================== */

dialog.auth-modal {
  border: none; background: transparent; padding: 0; margin: auto;
  max-width: none; max-height: none; overflow: visible; color: inherit;
}
dialog.auth-modal::backdrop { background: rgba(8,15,32,0.85); backdrop-filter: blur(10px); }
.auth-modal-dialog { width: min(470px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 32px 30px; }
.auth-modal-close { padding: 6px 10px; }
.auth-modal-subtitle { line-height: 1.5; }
.auth-help { color: #94a3b8; font-size: 0.85rem; margin-bottom: 14px; line-height: 1.5; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.label-row label { margin: 0; }
.optional { font-weight: 400; color: #94a3b8; }
.pwd-wrap { position: relative; }
.pwd-wrap .auth-input { padding-right: 84px; }
.btn-toggle-pwd {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: var(--sky); font-size: 0.75rem; font-weight: 600; cursor: pointer; padding: 6px 8px;
}
.link-btn { background: none; border: none; color: var(--sky); cursor: pointer; font-size: 0.78rem; padding: 2px 0; text-decoration: underline; text-underline-offset: 2px; }
.link-btn.center { display: block; margin: 14px auto 0; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input { margin-top: 4px; flex-shrink: 0; }
.check-row label { margin: 0; font-weight: 400; line-height: 1.5; cursor: pointer; }
.check-row a { color: var(--sky); }
.auth-input::placeholder { color: #64748b; }

.user-dropdown-header .dd-name { font-weight: 700; color: white; font-size: 0.9rem; }
.user-dropdown-header .dd-email { color: #94a3b8; font-size: 0.75rem; word-break: break-all; }
.user-dropdown-link { width: 100%; text-align: left; background: none; border: none; font: inherit; font-size: 0.83rem; }
.user-cabinet { color: #94a3b8; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-icon { font-weight: 800; margin-right: 8px; }

/* ==========================================================================
   PAGES LÉGALES, COMPTE, 404
   ========================================================================== */

.legal-header { background: white; border-bottom: 1px solid var(--border); }
.legal-header-inner { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.legal-back { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.legal-back:hover { text-decoration: underline; }
.legal-page { max-width: 820px; padding-top: 44px; padding-bottom: 72px; }
.legal-page h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 6px; }
.legal-page h2 { font-size: 1.15rem; margin: 30px 0 10px; color: var(--navy-soft); }
.legal-page p, .legal-page li { color: #334155; line-height: 1.75; margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; margin-bottom: 10px; }
.legal-page a { color: var(--primary); }
.legal-updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 8px 0 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 9px 12px; border: 1px solid var(--border); color: #334155; }
.legal-table thead th, .legal-table tbody th { background: #f1f5f9; color: var(--navy-soft); }
.legal-table tbody th { width: 34%; }
.legal-footer { background: var(--navy-mid); padding: 26px 0; }
@media (max-width: 640px) { .legal-table { display: block; overflow-x: auto; } }

.account-page { max-width: 860px; padding-top: 44px; padding-bottom: 72px; }
.account-page h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 24px; letter-spacing: -0.02em; }
.account-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.account-card h2 { font-size: 1.1rem; margin-bottom: 14px; }
.account-card p { color: #334155; line-height: 1.65; margin-bottom: 10px; }
.account-card .muted { color: var(--text-muted); font-size: 0.88rem; }
.account-card dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 0.93rem; }
.account-card dt { color: var(--text-muted); }
.account-card dd { color: var(--text-main); word-break: break-word; }
.account-card .btn-outline { color: var(--text-main); }
.actions-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.usage-bar { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.usage-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--sky)); border-radius: 999px; }
.usage-bar.full > span { background: var(--danger); }
.form-stack { display: grid; gap: 12px; max-width: 380px; }
.form-stack label { font-size: 0.85rem; font-weight: 600; color: #334155; display: block; margin-bottom: 4px; }
.form-stack input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.93rem; background: white; color: var(--text-main); }
.form-stack input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.inline-alert { padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 14px; }
.inline-alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.inline-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.inline-alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.danger-zone { border-color: #fecaca; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.account-header { background: white; border-bottom: 1px solid var(--border); }
.account-header .nav-container { height: 68px; }
.account-header .brand-logo { color: var(--navy-soft); }
.account-header .user-profile-btn { background: #0f172a; }
@media (max-width: 640px) { .account-card dl { grid-template-columns: 1fr; gap: 2px; } .account-card dt { margin-top: 8px; } }

.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 20px; }
.notfound .code { font-size: 5rem; font-weight: 900; color: var(--primary); letter-spacing: -0.04em; line-height: 1; }

/* ==========================================================================
   LANDING — compléments
   ========================================================================== */

.btn[disabled].soon { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 26px; }
.price small { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.limits-box { max-width: 820px; margin: 44px auto 0; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-md); padding: 22px 26px; }
.limits-box h3 { font-size: 1.05rem; color: #78350f; margin-bottom: 8px; }
.limits-box p { color: #78350f; font-size: 0.92rem; line-height: 1.7; margin-bottom: 6px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: step; }
.how-step { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; position: relative; }
.how-step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: white; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.how-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.how-step p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }
.hero-title { max-width: 980px; margin: 0 auto 24px; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.03em; }
.hero-lead { max-width: 720px; margin: 0 auto 40px; font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }
.hero-inner { text-align: center; position: relative; z-index: 2; }
.hero-section { padding: 150px 0 90px; }
.section-white { background: white; }
.section-page { background: var(--bg-page); }
.section-dark { background: #080f20; }
.section-dark .section-title h2 { color: white; }
.section-dark .section-eyebrow { color: #38bdf8; }
.section-dark .section-title p { color: #94a3b8; }
.rgpd-card h3 { color: white; font-size: 1.15rem; margin-bottom: 10px; }
.rgpd-card p { color: #94a3b8; font-size: 0.9rem; line-height: 1.7; }
.rgpd-card .rgpd-icon { font-size: 2.2rem; margin-bottom: 14px; }
.rgpd-card strong { color: #38bdf8; }
.section-title p { color: var(--text-muted); }
.pricing-card h3 { font-size: 1.3rem; color: var(--navy); }
.pricing-card .plan-sub { color: var(--text-muted); font-size: 0.9rem; }
.pricing-card .btn { width: 100%; }
.footer-brand { color: white; }
.brand-mark { flex-shrink: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .nav-links { gap: 14px; }
  .hero-trust-bar { gap: 20px; }
  .studio-layout { flex-direction: column; height: auto; min-height: 100vh; overflow: visible; }
  .studio-sidebar { width: 100%; }
  .sidebar-scroll { overflow: visible; }
  .studio-main { min-height: 80vh; }
  .canvas-container { padding: 16px; }
}

@media (max-width: 768px) {
  .hero-trust-bar { flex-direction: column; align-items: center; gap: 12px; }
  .footer-inner { flex-direction: column; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card { padding: 28px; }
  .nav-link { display: none; }
  .auth-guest-buttons .btn-ghost { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-container { height: 64px; }
  .user-info-text { display: none; }
  .studio-toolbar { padding: 8px 14px; }
}

/* Barre latérale du studio : logo et boutons d'authentification lisibles sur fond sombre */
.studio-sidebar .brand-logo { color: #ffffff; font-size: 1.15rem; }
.studio-sidebar .brand-logo span { color: var(--sky); }
.sidebar-top .btn-ghost { color: #e2e8f0; }
.sidebar-top .btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--sky); }
.sidebar-top .btn-primary { background: var(--primary); }
.sidebar-top .auth-guest-buttons .btn { padding: 8px 12px; font-size: 0.82rem; white-space: nowrap; }
.footer-brand span { color: var(--sky); }
.brand-logo > span { margin-left: -11px; } /* « Biff » + « Pro » forment un seul mot malgré le gap flex */
section[id] { scroll-margin-top: 84px; } /* l'en-tête fixe ne masque plus les titres d'ancres */

/* Rappel de relecture, centré dans la barre d'outils du studio */
.toolbar-center { flex: 1 1 auto; text-align: center; margin: 0; font-size: 0.82rem; color: #fde68a; background: rgba(253,224,71,0.08); border: 1px solid rgba(253,224,71,0.25); border-radius: 999px; padding: 4px 14px; }
.toolbar-center strong { color: #fcd34d; }
@media (max-width: 1200px) { .toolbar-center { order: 3; flex-basis: 100%; } }


/* ==========================================================================
   Accueil d'un utilisateur connecté (data-session sur <html>, posé par le serveur puis confirmé par landing.js)
   0 = visiteur · 1 = cookie de session présent (à confirmer) · active = connecté
   ========================================================================== */
.member-home { display: none; }
html[data-session="1"] .marketing,
html[data-session="active"] .marketing:not(.pricing-section) { display: none; }
html[data-session="active"][data-tier="paid"] .pricing-section { display: none; }
html[data-session="active"] .member-home { display: block; }
html[data-session="active"] .nav-link { display: none; }
.member-home { padding: 150px 0 70px; background: radial-gradient(ellipse at 50% -10%, rgba(37,99,235,0.10) 0%, transparent 68%), linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%); }
.member-inner { text-align: center; }
.member-inner h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; overflow-wrap: anywhere; }
.member-plan { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 34px; }
.member-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

html[data-session="active"] .footer-links a[href^="#"] { display: none; }

/* Formulaire de contact */
.contact-form { max-width: 560px; margin-top: 18px; }
.form-stack textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.93rem; font-family: inherit; background: white; color: var(--text-main); resize: vertical; }
.form-stack textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* champ piège anti-robots */
