/*
 * POS Suite – Design system du site vitrine.
 * Reprend le thème du desktop (TailAdmin) :
 *   police Outfit, marque #465FFF, gris Untitled,
 *   rayons 8/10/16 px, ombres xs/sm, mode sombre par .dark.
 */

/* ───────────── Tokens (copiés depuis web/src/styles.css) ───────────── */
:root {
    --brand-25: #f2f7ff;
    --brand-50: #ecf3ff;
    --brand-100: #dde9ff;
    --brand-200: #c2d6ff;
    --brand-300: #9cb9ff;
    --brand-400: #7592ff;
    --brand-500: #465fff;
    --brand-600: #3641f5;
    --brand-950: #161950;

    --gray-25: #fcfcfd;
    --gray-50: #f9fafb;
    --gray-100: #f2f4f7;
    --gray-200: #e4e7ec;
    --gray-300: #d0d5dd;
    --gray-400: #98a2b3;
    --gray-500: #667085;
    --gray-600: #475467;
    --gray-700: #344054;
    --gray-800: #1d2939;
    --gray-900: #101828;

    --shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(16, 24, 40, 0.1), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
    --shadow-xl: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03);

    --bg: var(--gray-50);
    --surface: #ffffff;
    --surface-2: var(--gray-50);
    --surface-3: var(--gray-100);
    --line: var(--gray-200);
    --line-soft: var(--gray-100);
    --text: var(--gray-800);
    --text-strong: var(--gray-900);
    --text-2: var(--gray-700);
    --muted: var(--gray-500);
    --faint: var(--gray-400);

    --brand: var(--brand-500);
    --brand-hover: var(--brand-600);
    --brand-soft: var(--brand-50);
    --brand-text: var(--brand-500);

    --ok: #12b76a;
    --ok-soft: #ecfdf3;
    --ok-text: #039855;
    --danger: #f04438;
    --danger-soft: #fef3f2;
    --danger-text: #d92d20;
    --warn: #f79009;
    --warn-soft: #fffaeb;
    --warn-text: #dc6803;
    --purple-soft: #f4f3ff;
    --purple-text: #7a5af8;
    --info-soft: #f0f9ff;
    --info-text: #0086c9;

    --radius-sm: 8px;
    --radius: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    color-scheme: light;
}

:root.dark {
    --bg: var(--gray-900);
    --surface: #171f2e;
    --surface-2: #1b2433;
    --surface-3: var(--gray-800);
    --line: var(--gray-800);
    --line-soft: #222c3c;
    --text: rgba(255, 255, 255, 0.9);
    --text-strong: #ffffff;
    --text-2: var(--gray-300);
    --muted: var(--gray-400);
    --faint: var(--gray-500);

    --brand-soft: rgba(70, 95, 255, 0.12);
    --brand-text: var(--brand-400);

    --ok-soft: rgba(18, 183, 106, 0.15);
    --ok-text: #32d583;
    --danger-soft: rgba(240, 68, 56, 0.15);
    --danger-text: #f97066;
    --warn-soft: rgba(247, 144, 9, 0.15);
    --warn-text: #fdb022;
    --info-soft: rgba(11, 165, 236, 0.15);
    --info-text: #36bffa;
    --purple-soft: rgba(122, 90, 248, 0.15);
    --purple-text: #9b8afb;

    --shadow-xs: none;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 16px -4px rgba(0, 0, 0, 0.3);

    color-scheme: dark;
}

/* ───────────── Reset & base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font: 16px/1.6 "Outfit", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; color: var(--text-strong); letter-spacing: -0.01em; }
h1 { font-size: 56px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 36px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
h4 { font-size: 16px; line-height: 1.5; font-weight: 600; }
p { margin: 0; }
a { color: var(--brand-text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; height: auto; }

::selection { background: var(--brand-100); color: var(--gray-900); }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

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

/* ───────────── En-tête ───────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
:root.dark .site-header {
    background: rgba(23, 31, 46, 0.85);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: none;
}
.brand-mark {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
}
.brand-text {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    color: var(--text-strong);
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.main-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--surface-3); color: var(--text); }
.main-nav a.on { color: var(--brand-text); background: var(--brand-soft); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color 0.15s, background 0.15s;
}
.theme-toggle:hover { background: var(--surface-3); color: var(--text-2); }
.theme-toggle .icon-moon { display: none; }
:root.dark .theme-toggle .icon-sun { display: none; }
:root.dark .theme-toggle .icon-moon { display: block; }

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-2);
    cursor: pointer;
}

/* ───────────── Boutons ───────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-sm { height: 40px; padding: 0 16px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #fff;
}
.btn-secondary {
    background: var(--surface);
    color: var(--text-2);
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
    background: var(--surface-2);
    color: var(--text);
}
.btn-outline {
    background: transparent;
    color: var(--brand-text);
    border-color: var(--brand);
}
.btn-outline:hover {
    background: var(--brand-soft);
}

/* ───────────── Hero ───────────── */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--brand-100) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}
:root.dark .hero::before {
    background: radial-gradient(circle, rgba(70, 95, 255, 0.15) 0%, transparent 70%);
    opacity: 1;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}
.hero h1 {
    margin-bottom: 20px;
}
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 50%, var(--purple-text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-2);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 64px;
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hero-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}
.hero-stat-label {
    font-size: 14px;
    color: var(--muted);
}

/* ───────────── Sections ───────────── */
.section {
    padding: 100px 0;
}
.section-alt {
    background: var(--surface);
}
:root.dark .section-alt {
    background: var(--surface);
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}
.section-header .eyebrow {
    display: inline-block;
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-text);
    margin-bottom: 12px;
}
.section-header h2 {
    margin-bottom: 16px;
}
.section-header p {
    font-size: 18px;
    color: var(--text-2);
}

/* ───────────── Grille de fonctionnalités ───────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-200);
}
:root.dark .feature-card:hover {
    border-color: rgba(70, 95, 255, 0.3);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}
.feature-icon.blue { background: var(--brand-soft); color: var(--brand-text); }
.feature-icon.green { background: var(--ok-soft); color: var(--ok-text); }
.feature-icon.orange { background: var(--warn-soft); color: var(--warn-text); }
.feature-icon.purple { background: var(--purple-soft); color: var(--purple-text); }
.feature-icon.red { background: var(--danger-soft); color: var(--danger-text); }
.feature-icon.info { background: var(--info-soft); color: var(--info-text); }

.feature-card h3 {
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ───────────── Écrans / Captures ───────────── */
.screens-showcase {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.screen-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
}
.screen-item.reverse { direction: rtl; }
.screen-item.reverse > * { direction: ltr; }
.screen-text h3 {
    font-size: 28px;
    margin-bottom: 12px;
}
.screen-text p {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 20px;
}
.screen-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.screen-text li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-2);
}
.screen-text li::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--ok-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23039855' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 12.5 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
:root.dark .screen-text li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2332d583' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 12.5 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E");
}
.screen-mockup {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface-3);
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.screen-mockup-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-soft) 0%, var(--purple-soft) 100%);
    color: var(--brand-text);
    font-size: 48px;
}

/* ───────────── Installation ───────────── */
.install-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}
.install-step {
    position: relative;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    counter-increment: step;
}
.install-step::before {
    content: counter(step);
    position: absolute;
    top: -16px;
    left: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: grid;
    place-items: center;
}
.install-step h3 {
    margin-bottom: 8px;
    margin-top: 8px;
}
.install-step p {
    font-size: 15px;
    color: var(--text-2);
}
.install-step code {
    display: block;
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--gray-900);
    color: var(--gray-300);
    border-radius: var(--radius);
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 13px;
    overflow-x: auto;
}

/* ───────────── Téléchargement ───────────── */
.download-section {
    text-align: center;
}
.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.download-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.download-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--brand-soft);
    color: var(--brand-text);
    display: grid;
    place-items: center;
}
.download-card h3 {
    margin: 0;
}
.download-card .version {
    font-size: 13px;
    color: var(--muted);
}
.download-card .btn {
    width: 100%;
}

/* ───────────── FAQ ───────────── */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-strong);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item .faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ───────────── CTA final ───────────── */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-600) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 52px 52px;
}
.cta-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}
.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}
.cta-section .btn-primary {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}
.cta-section .btn-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
    color: var(--brand-hover);
}

/* ───────────── Footer ───────────── */
.site-footer {
    padding: 80px 0 40px;
    background: var(--surface);
    border-top: 1px solid var(--line);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-desc {
    font-size: 14px;
    color: var(--text-2);
    max-width: 300px;
}
.footer-col h4 {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col a {
    font-size: 14px;
    color: var(--text-2);
    text-decoration: none;
}
.footer-col a:hover { color: var(--brand-text); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.footer-version { font-variant-numeric: tabular-nums; }

/* ───────────── Contact ───────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 64px 0;
}
.contact-info h1 { font-size: 36px; margin-bottom: 16px; }
.contact-info p { font-size: 16px; color: var(--text-2); margin-bottom: 32px; }
.contact-methods { display: flex; flex-direction: column; gap: 20px; }
.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-method-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand-text);
    display: grid;
    place-items: center;
}
.contact-method-text h4 { margin-bottom: 4px; }
.contact-method-text p { font-size: 14px; color: var(--text-2); margin: 0; }

.contact-form-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
.contact-form-card h3 { margin-bottom: 24px; }
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-300);
    box-shadow: 0 0 0 4px rgba(70, 95, 255, 0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-success {
    padding: 16px;
    background: var(--ok-soft);
    color: var(--ok-text);
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}
.form-error {
    padding: 16px;
    background: var(--danger-soft);
    color: var(--danger-text);
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1023px) {
    h1 { font-size: 40px; }
    h2 { font-size: 28px; }
    .section { padding: 64px 0; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .screen-item { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
    .screen-item.reverse { direction: ltr; }
    .install-steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-layout { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
}

@media (max-width: 767px) {
    .container { padding: 0 16px; }
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    .hero { padding: 48px 0 64px; }
    .hero-sub { font-size: 16px; }
    .hero-stats { gap: 24px; margin-top: 48px; }
    .hero-stat-value { font-size: 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .download-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 16px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 16px; }
    .mobile-toggle { display: grid; place-items: center; }
    .header-actions .btn-sm { display: none; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}

/* ───────────── Animations d'apparition ───────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
