/* ============================================
   SENTRION Landing Design System
   Shared across all 9 public pages
   Fonts Inter self-hébergés via <link rel="stylesheet" href="/static/fonts/inter.css">
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0A6DFF;
    --primary-dark: #0956d3;
    --primary-light: #3b82f6;
    --secondary: #00e5ff;
    --accent: #7c3aed;
    --accent-light: #8b5cf6;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #556072;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --border: #e2e8f0;
    --success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --shadow-primary: 0 4px 15px rgba(10,109,255,0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
    --nav-height: 80px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a[href^="tel:"] { color: inherit; text-decoration: none; pointer-events: none; }
.no-autolink { color: inherit !important; text-decoration: none !important; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation (Glassmorphism) --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-container {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--text-medium);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

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

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(10, 109, 255, 0.08);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(10, 109, 255, 0.1);
    font-weight: 600;
}

/* --- Hamburger Button --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: white;
    z-index: 1060;
    padding: 5rem 1.5rem 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    transition: right 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 1rem;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: #064ab1;
    background: rgba(10, 109, 255, 0.12);
    font-weight: 600;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

.mobile-menu-nav .mobile-menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 1rem 0;
}

.mobile-menu-contact {
    margin-top: 1rem;
}

.mobile-menu-contact a.btn {
    width: 100%;
    justify-content: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 109, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-medium);
    padding: 12px 16px;
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(10, 109, 255, 0.05);
}

/* --- Section Layout --- */
.section {
    padding: 6rem 2rem;
}

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

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-title p {
    font-size: 1.25rem;
    color: var(--text-medium);
}

/* --- Feature Cards --- */
.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Text Gradient Utility --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-col h3 {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 400;
    padding: 0.25rem 0;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: white;
    padding-left: 4px;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.footer-brand-desc {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-contact-email {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.footer-contact-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-container {
        width: 48px;
        height: 48px;
        padding: 6px;
    }

    .logo-title {
        font-size: 1.25rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    footer {
        padding: 2.5rem 1rem 1rem;
    }
}

/* --- Screenshot Frames --- */
.screenshot-frame {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: block;
}

.screenshot-frame-mobile {
    width: auto;
    max-width: 280px;
    max-height: 500px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
}

.screenshot-mobile-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
}

.screenshot-mobile-grid img {
    width: auto;
    max-width: 180px;
    max-height: 380px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.screenshot-mobile-grid .screenshot-caption {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 500;
}

.screenshot-mobile-grid figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .screenshot-mobile-grid {
        flex-wrap: wrap;
    }
    .screenshot-mobile-grid img {
        max-width: 140px;
        max-height: 300px;
    }
}

.screenshot-frame-dark {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    display: block;
}

/* --- Step Screenshot (rondes.html) --- */
.step-screenshot {
    margin-top: 1.25rem;
}

.step-screenshot img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
}
