/* ========================================
   ADCLAIR — CSS PREMIUM DARK
   Mobile-first, responsive, accessible
   ======================================== */

:root {
    --bg-primary: #0A1628;
    --bg-secondary: #111E35;
    --accent-main: #4FFFB0;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-tertiary: rgba(255, 255, 255, 0.30);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --alert-danger: #FF6B6B;
    --alert-warning: #FFB444;
    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== RESET & BASE ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

button {
    font-family: inherit;
    font-size: 1rem;
}

/* ========== TYPOGRAPHIE ========== */

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 3.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--accent-main);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ========== LAYOUT ========== */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ========== NAVIGATION ========== */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    transition: var(--transition);
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-main);
}

.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login {
    color: var(--text-secondary);
    transition: var(--transition);
}

.btn-login:hover {
    color: var(--text-primary);
}

/* Hamburger mobile */
.hamburger {
    display: none;
    width: 24px;
    height: 24px;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        gap: 0.5rem;
        font-size: 0.85rem;
    }
}

/* ========== BOUTONS ========== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-main);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: #2FE5A0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--accent-main);
    background-color: rgba(79, 255, 176, 0.08);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
}

/* ========== HERO SECTION ========== */

.hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(79, 255, 176, 0.08);
    border: 1px solid rgba(79, 255, 176, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-main);
    margin-bottom: 1.5rem;
    width: fit-content;
}

.hero h1 {
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-reassure {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.hero-visual {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.dashboard-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(79, 255, 176, 0.1) 0%, rgba(79, 255, 176, 0.05) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 255, 176, 0.2);
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        min-height: 300px;
    }
}

/* ========== CARDS & GRIDS ========== */

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--accent-main);
    transform: translateY(-4px);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }
}

/* ========== SECTIONS ========== */

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Social proof */
.logos-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-item {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.logo-item:hover {
    color: var(--accent-main);
}

/* ========== FORMULAIRES ========== */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.875rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-main);
    background-color: rgba(79, 255, 176, 0.05);
    box-shadow: 0 0 0 2px rgba(79, 255, 176, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== FOOTER ========== */

footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========== ACCORDÉON FAQ ========== */

.accordion {
    max-width: 700px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0;
}

.accordion-button {
    width: 100%;
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-button:hover {
    color: var(--accent-main);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.accordion-button.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.accordion-content.active {
    display: block;
}

/* ========== BADGES & ALERTS ========== */

.badge {
    display: inline-block;
    background-color: rgba(79, 255, 176, 0.15);
    color: var(--accent-main);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-danger {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: var(--alert-danger);
    color: var(--alert-danger);
}

.alert-warning {
    background-color: rgba(255, 180, 68, 0.1);
    border-color: var(--alert-warning);
    color: var(--alert-warning);
}

.alert-success {
    background-color: rgba(79, 255, 176, 0.1);
    border-color: var(--accent-main);
    color: var(--accent-main);
}

/* ========== ADMIN PANEL ========== */

.admin-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.admin-sidebar {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.admin-sidebar nav ul {
    list-style: none;
}

.admin-sidebar nav ul li {
    margin-bottom: 0.5rem;
}

.admin-sidebar nav a {
    display: block;
    padding: 0.75rem;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: var(--transition);
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background-color: rgba(79, 255, 176, 0.1);
    color: var(--accent-main);
}

.admin-main {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

/* ========== TABLE ========== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

thead {
    background-color: rgba(79, 255, 176, 0.05);
    border-bottom: 1px solid var(--border-subtle);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

tr:hover {
    background-color: rgba(79, 255, 176, 0.05);
}

/* ========== RESPONSIVE UTILITIES ========== */

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* ========== ACCESSIBILITY ========== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== DARK MODE (optionnel) ========== */

@media (prefers-color-scheme: dark) {
    body {
        color-scheme: dark;
    }
}

/* ============================================
   DEMO LIVE SECTION
   ============================================ */

.demo-live-section {
    background: linear-gradient(135deg, #0A1628 0%, #1a2f4d 100%);
    padding: 80px 20px;
    margin: 60px 0;
}

.demo-live-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.demo-header {
    text-align: center;
    margin-bottom: 60px;
}

.demo-header h2 {
    color: #4FFFB0;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.demo-header p {
    color: #ccc;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   DEMO CONTENT GRID
   ============================================ */

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ============================================
   DEMO VISUAL (LEFT)
   ============================================ */

.demo-visual {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.demo-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #4FFFB0;
    box-shadow: 0 20px 60px rgba(79, 255, 176, 0.2);
    transition: all 0.3s;
}

.demo-frame:hover {
    box-shadow: 0 30px 80px rgba(79, 255, 176, 0.3);
    transform: translateY(-5px);
}

.demo-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.demo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4FFFB0;
    color: #0A1628;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(79, 255, 176, 0.1);
    border: 1px solid #4FFFB0;
    border-radius: 8px;
    padding: 12px 18px;
    color: #4FFFB0;
    font-size: 13px;
    font-weight: 600;
}

.feature-item .icon {
    font-size: 18px;
}

/* ============================================
   DEMO CTA (RIGHT)
   ============================================ */

.demo-cta {
    display: flex;
    justify-content: center;
}

.cta-box {
    background: rgba(10, 22, 40, 0.9);
    border: 2px solid #4FFFB0;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(79, 255, 176, 0.15);
}

.cta-box h3 {
    color: #4FFFB0;
    font-size: 24px;
    margin: 0 0 5px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-subtitle {
    color: #888;
    font-size: 13px;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CREDENTIALS BOX
   ============================================ */

.credentials {
    background: rgba(26, 47, 77, 0.8);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.credential-item {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-item label {
    color: #888;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-item code {
    background: #0A1628;
    color: #4FFFB0;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier', monospace;
    font-size: 13px;
    word-break: break-all;
    border: 1px solid #4FFFB0;
}

.copy-btn {
    background: transparent;
    border: 1px solid #4FFFB0;
    color: #4FFFB0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-btn:hover {
    background: #4FFFB0;
    color: #0A1628;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-demo-primary {
    display: block;
    width: 100%;
    padding: 16px;
    background: #4FFFB0;
    color: #0A1628;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-demo-primary:hover {
    background: #3de09c;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 255, 176, 0.3);
}

/* ============================================
   INFO & TRUST SIGNALS
   ============================================ */

.demo-info {
    background: rgba(79, 255, 176, 0.1);
    border-left: 3px solid #4FFFB0;
    padding: 15px;
    border-radius: 6px;
    color: #ccc;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.trust-signals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signal {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4FFFB0;
    font-size: 13px;
    font-weight: 600;
}

.signal span {
    background: #4FFFB0;
    color: #0A1628;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {  /* Passe à 1 colonne seulement sur tablette/mobile */
    .demo-content {
        grid-template-columns: 1fr;
    }
    
    .demo-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .demo-live-section {
        padding: 50px 20px;
        margin: 40px 0;
    }
    
    .demo-header h2 {
        font-size: 22px;
    }
    
    .cta-box {
        padding: 25px;
    }
    
    .demo-features {
        flex-direction: column;
    }
    
    .feature-item {
        width: 100%;
        justify-content: center;
    }
}