/* Reset & Root Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #0f172a;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-gray: #64748b;
    --text-gray-dark: #475569;
    --text-light: #f1f5f9;
    
    --red: #ef4444;
    --red-dark: #b91c1c;
    --red-light: #fef2f2;
    --orange: #f59e0b;
    --orange-dark: #b45309;
    --orange-light: #fffbeb;
    --green: #10b981;
    --green-dark: #047857;
    --green-light: #ecfdf5;
    --purple: #8b5cf6;
    --purple-light: #f5f3ff;
    
    --font-inter: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 900px;
}

.section-padding {
    padding: 6rem 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Espacement vertical entre enfants (équivalent tailwind space-y-6) */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-8 { padding-bottom: 2rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-gray { color: var(--text-gray); }
.text-gray-dark { color: var(--text-gray-dark); }
.text-gray-light { color: #cbd5e1; }
.text-white { color: #ffffff; }

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--secondary); }
.bg-white { background-color: var(--bg-white); }
.bg-red { background-color: var(--red); }
.text-red { color: var(--red); }
.bg-orange { background-color: var(--orange); }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.right-0 { right: 0; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.h-full { height: 100%; }
.h-1 { height: 0.25rem; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }

.w-24 { width: 6rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }

.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.-translate-y-1\/2 { --tw-translate-y: -50%; }

.border { border: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-orange { border-color: var(--orange); }
.border-green { border-color: var(--green); }
.border-red { border-color: var(--red); }

/* Extended colour backgrounds */
.bg-secondary        { background-color: var(--secondary); }
.bg-primary          { background-color: var(--primary); }
.bg-primary-light    { background-color: rgba(37, 99, 235, 0.12); }
.bg-green            { background-color: var(--green); }
.bg-green-light      { background-color: var(--green-light); }
.bg-red-light        { background-color: var(--red-light); }
.bg-orange-light     { background-color: var(--orange-light); }
.bg-blue-light       { background-color: #eff6ff; }
.bg-gray-dark        { background-color: rgba(255,255,255,0.08); }

/* Extended colour text */
.text-green          { color: var(--green); }
.text-green-dark     { color: var(--green-dark); }
.text-orange         { color: var(--orange); }
.text-orange-dark    { color: var(--orange-dark); }
.text-red-dark       { color: var(--red-dark); }
.text-primary-light  { color: var(--primary-light); }

/* Extended border colours */
.border-l-green      { border-left-color: var(--green); }
.border-l-red        { border-left-color: var(--red); }
.border-l-primary    { border-left-color: var(--primary); }
.border-green        { border-color: var(--green); }
.border-green-light-border { border-color: #a7f3d0; }
.border-orange       { border-color: var(--orange); }
.border-red          { border-color: var(--red); }
.border-gray-dark    { border-color: rgba(255,255,255,0.12); }
.border-gray-light   { border-color: #e2e8f0; }

/* Progress bar */
.progress-bar-bg {
    background-color: #e2e8f0;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
}

/* Pulse dot */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Notify dot */
.notify-dot {
    display: block;
}

/* Dropdown helpers */
.mt-2 { margin-top: 0.5rem; }
.max-h-64 { max-height: 16rem; }

/* Drop shadow helper */
.hover-text-secondary:hover { color: var(--secondary); }

/* Badge critical */
.badge-critical {
    display: inline-flex;
    align-items: center;
    background: var(--red-light);
    color: var(--red-dark);
    border: 1px solid #fecaca;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.625rem;
}

/* Buttons & Badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary);
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: #f1f5f9;
}

.btn-success {
    background-color: var(--green);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-success:hover {
    background-color: var(--green-dark);
}

.badge-pill {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray-dark);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, var(--primary), #8b5cf6);
}

.bg-gradient {
    background-image: linear-gradient(to right, var(--primary), #8b5cf6);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 1000;
}

.navbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.navbar .logo-icon {
    color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(203, 213, 225, 0.9);
}

.nav-lang-select {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray-dark);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 2rem 0.4rem 0.65rem;
    cursor: pointer;
    min-width: 8.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.nav-lang-select:hover {
    border-color: #cbd5e1;
}

.nav-lang-select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray-dark);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, var(--bg-light));
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: rgba(96, 165, 250, 0.3);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.2);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-graphics {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-mockup {
    width: 420px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.mockup-main {
    width: 340px;
    padding: 1.5rem;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: mockup-float 6s ease-in-out infinite;
}

.dashboard-mockup:hover .mockup-main {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-dot 2s infinite;
}

.bg-green { background-color: var(--green); }
.bg-bg-light { background-color: #f1f5f9; }

.grid-cols-2 { grid-template-columns: 1fr 1fr; }

.progress-bar-bg { width: 100%; background-color: #e2e8f0; }

.progress-bar-fill {
    width: 0%;
    transition: width 0.1s linear;
}

.mockup-float {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card-1 {
    top: 60px;
    right: 10px;
    animation: float-card-1 5s ease-in-out infinite 0.5s;
}

.card-2 {
    bottom: 50px;
    left: -20px;
    animation: float-card-2 5.5s ease-in-out infinite 1s;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes scanning-bar {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes float-card-1 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-12px) translateX(5px); }
}

@keyframes float-card-2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(15px) translateX(-5px); }
}

@keyframes mockup-float {
    0%, 100% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg); }
    50% { transform: translateY(-15px) rotateY(-2deg) rotateX(3deg); }
}

/* Sections General */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: left;
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card .icon-wrap svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-gray-dark);
    font-size: 0.95rem;
}

.text-blue { color: var(--primary); }
.bg-blue-light { background-color: #eff6ff; }
.text-green { color: var(--green-dark); }
.bg-green-light { background-color: var(--green-light); }
.text-purple { color: #7c3aed; }
.bg-purple-light { background-color: var(--purple-light); }

/* Report Section */
.report-window {
    overflow: hidden;
    text-align: left;
}

.window-header {
    background-color: #f1f5f9;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
    margin-right: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.window-body {
    padding: 2.5rem;
    background-color: white;
}

.badge-critical {
    background-color: var(--red-light);
    color: var(--red-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    border: 1px solid #fca5a5;
    letter-spacing: 0.05em;
}

.detail-box {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left-width: 4px;
    border-left-style: solid;
}

.bg-red-light { background-color: #fef2f2; }
.border-l-red { border-left-color: var(--red); }
.text-red-dark { color: #7f1d1d; }

.bg-orange-light { background-color: #fffbeb; }
.border-l-orange { border-left-color: var(--orange); }
.text-orange-dark { color: #78350f; }

.border-l-green { border-left-color: var(--green); }
.border-green-light-border { border-color: #a7f3d0; }
.text-green-dark { color: #064e3b; }

.step-num {
    background-color: var(--green);
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Pricing Section */
.pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
    gap: 2rem;
}

.price-card {
    padding: 3rem 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 320px;
    max-width: 380px;
}

.price-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 5;
}

.features-list {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.features-list svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer-links a:hover {
    color: var(--primary-light);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.4s;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Scroll Revel Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Responsive Data */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta-group { display: none; }
    .navbar { height: 76px; }
    .navbar-inner { gap: 1rem; }
    .navbar-actions { gap: 0; flex: 0 0 auto; }
    .nav-lang-select { min-width: 7.25rem; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .hero h1 { font-size: 2.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .price-card.popular { transform: scale(1); }
    .flex-wrap { flex-direction: column; align-items: center; }
    
    .auth-layout { flex-direction: column; }
    .auth-sidebar { display: none; }
    .hidden-desktop { display: block; }
}

/* Auth Pages Styling */
.auth-body {
    background-color: var(--bg-white);
    height: 100vh;
    overflow: hidden;
}

.auth-layout {
    display: flex;
    height: 100%;
}

.auth-layout-reverse {
    flex-direction: row-reverse;
}

.auth-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

/* Colonne gauche login / register : alignement vertical cohérent */
.auth-sidebar-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 0;
    padding: clamp(1.75rem, 5vw, 3rem);
}

.auth-sidebar-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
}

.auth-sidebar-logo {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.auth-sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Carte statut : même largeur que le bloc texte (plus de décalage inline-block) */
.auth-status-card {
    width: 100%;
    max-width: 24rem;
    display: block;
    box-sizing: border-box;
}

.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.auth-form-container {
    width: 100%;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
}

.auth-form .btn-block {
    width: 100%;
    box-sizing: border-box;
}

/* Register : panneau orange / bleu */
.bg-primary-dark {
    background: linear-gradient(165deg, #1e3a8a 0%, #1d4ed8 50%, #172554 100%);
}

.auth-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 24rem;
}

.auth-benefits li:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Empêche le fond jaune « autofill » du navigateur sur les champs clairs */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--text-main);
    caret-color: var(--text-main);
    transition: background-color 99999s ease-out;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #fff;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Connexion / inscription : même toile de fond que le hero de la landing */
.auth-page {
    position: relative;
    min-height: 100vh;
    padding: 7rem 1.5rem 4rem;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, var(--bg-light));
}

.auth-page .hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.auth-card-inner {
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 6rem 1rem 3rem;
    }
    .auth-card-inner {
        padding: 1.75rem;
    }
}

.nav-links a.nav-link-active {
    color: var(--primary);
    font-weight: 600;
}

.hover-text-primary-dark:hover {
    color: var(--primary-dark);
}

.hidden-desktop {
    display: none;
}

.icon-wrap-sm {
    display: inline-flex;
}

/* Dashboard App Shell Layout */
.dashboard-body {
    background-color: var(--bg-light);
    height: 100vh;
    overflow: hidden;
}

.app-shell {
    display: flex;
    height: 100vh;
}

.app-sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-link.active {
    background-color: var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.sidebar-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
}

.app-content {
    flex: 1;
}

.dashboard-grid {
    grid-template-columns: 2fr 1fr;
}

.col-span-2 { grid-column: span 2 / span 2; }
.col-span-1 { grid-column: span 1 / span 1; }

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden { display: none !important; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bg-opacity-50 { background-color: rgba(15, 23, 42, 0.6); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.border-light { border-color: #f1f5f9; }
.hover-bg-light:hover { background-color: #f8fafc; }
.w-80 { width: 20rem; }
.border-l-primary { border-left-color: var(--primary); }

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .col-span-2 { grid-column: span 1 / span 1; }
}

@media (max-width: 768px) {
    .app-sidebar { display: none; }
    .hidden-mobile { display: none; }
}

/* Integration Cards (Settings) */
.integration-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}

.integration-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.integration-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.integration-card .card-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.integration-card .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.integration-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.125rem;
}

.integration-card .card-desc {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.integration-card .card-body {
    padding-top: 1.25rem;
    border-top: 1px dashed #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.integration-card .card-body.hidden {
    display: none;
}

.ds-toggle-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
