:root {
    --color-primary: #4e6e85;
    --color-primary-hover: #3b576c;
    --color-primary-light: #e8eef3;
    --color-dark: #1e252b;

    --color-bg-page: #f2f5f8;
    --color-bg-card: #ffffff;
    --color-border: #d2dcde;

    --color-text-main: #1e252b;
    --color-text-body: #3a4651;
    --color-text-muted: #6b7a88;

    --tag-blue: #4c8cbf;
    --tag-green: #46a284;
    --tag-orange: #e69d45;
    --tag-pink: #e05a67;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 12px rgba(30, 37, 43, 0.05);
    --shadow-md: 0 8px 24px rgba(30, 37, 43, 0.08);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-page);
    color: var(--color-text-body);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}


header {
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

.logo-brand {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text-main);
}

.logo-brand img {
    width: 50px;
    height: 50px;
}

.logo-brand h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 20px 0 30px;
}

.hero-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 800;
    line-height: 1.25;
}

.hero-title span {
    color: var(--color-text-main);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 15px auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.robot-illustration {
    display: none;
    justify-content: center;
    margin-bottom: 24px;
}

.robot-illustration-mobile {
    display: block;
    justify-content: center;
}

.robot-illustration-mobile img {
    width: 110px;
    height: auto;
}

.robot-illustration img {
    width: 300px;
    height: auto;
}

/* --- Download Section --- */
.download-section {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.download-title {
    font-size: 1.2rem;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.download-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: var(--color-primary-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.select-wrapper select:focus {
    border-color: var(--color-primary);
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--color-primary);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.btn-download {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: var(--shadow-sm);
}

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

.btn-download:active {
    transform: scale(0.99);
}

.download-details {
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.88rem;
    color: var(--color-text-body);
    text-align: left;
}

.download-details h4 {
    font-size: 0.9rem;
    color: var(--color-text-main);
    margin-bottom: 6px;
}

.download-details ul {
    list-style: none;
    margin-bottom: 12px;
    padding-left: 20px;
}

.download-details ul li {
    list-style-type: disc;
}

/* --- Features Section --- */
.features-section {
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
}

.features-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.feature-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background-color: var(--color-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.1rem;
    color: var(--color-text-main);
    font-weight: 700;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.app-mockup-frame {
    width: 100%;
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* --- App Previews Section --- */
.previews-section {
    margin-bottom: 50px;
}

.desktop-preview-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
}




/* --- Footer --- */
footer {
    margin-top: auto;
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    background-color: var(--color-bg-card);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-logo {
    display: inline-block;
    width: 60px;
    height: 60px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- Content Pages (Mentions Légales, Privacy) --- */
.legal-page {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 20px 20px;
    margin: 20px 0 40px;
    box-shadow: var(--shadow-sm);
}

.legal-page h2 {
    color: var(--color-text-main);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 10px;
}

.legal-page h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin: 20px 0 10px;
}

.legal-page p, .legal-page ul {
    margin-bottom: 12px;
    color: var(--color-text-body);
    font-size: 0.95rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
}

.back-link:hover {
    background-color: var(--color-primary-light);
    border: 1px solid var(--color-border);
}

/* 
    ==========================================================================
    Responsive Media Queries (Tablet & Desktop)
    ========================================================================== 
*/

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .download-box {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .features-cards {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .feature-card {
        max-width: 340px;
    }
}

@media (min-width: 1024px) {
    .overlay {
        position: absolute;
        top: -30px;
        left: 5%;
        width: 90%;
        height: 600px;
        background: linear-gradient(135deg, rgba(242, 245, 248, 0.9) 0%, rgba(242, 245, 248, 0.9) 100%);
        border-radius: 20px;
        z-index: -10;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .hero {
        padding: 30px 0 40px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .robot-illustration-mobile {
        display: none;
    }

    .robot-illustration {
        display: block;
    }

    .download-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }

    .download-title {
        grid-column: 1 / -1;
        text-align: left;
        margin-bottom: 10px;
    }

    .features-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-card:last-child {
        grid-column: span 1;
    }

    .legal-page {
        padding: 30px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1100px;
    }
}