:root {
    --green: #85BE55;
    --green-dark: #6aa344;
    --green-light: #9ed06e;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #e8e8e8;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--black);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    font-variant-ligatures: common-ligatures;
}

/* Header */
header {
    background: var(--white);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--black);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--green);
}

nav a.btn-assistance {
    background: #e53935;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
}

nav a.btn-assistance:hover {
    background: #c62828;
    color: var(--white);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--black);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.menu-toggle span:nth-child(1) {
    top: 10px;
}

.menu-toggle span:nth-child(2) {
    top: 18px;
}

.menu-toggle span:nth-child(3) {
    top: 26px;
}

/* Menu toggle active state - transforms to X */
.menu-toggle.active span {
    background: var(--black);
}

.menu-toggle.active span:nth-child(1) {
    top: 18px;
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    top: 18px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    opacity: 1;
}

/* Hero Section - Clean White Design with subtle gradient */
.hero {
    background: linear-gradient(to bottom, #e8f5e0 0%, #f4faf0 50%, #ffffff 100%);
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--green);
}

.title-legend {
    font-size: 0.65rem;
    color: #999;
    margin-bottom: 1.5rem !important;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
}

.hero-text p {
    color: #666;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.7;
}

/* Service Badges */
.service-badges {
    display: inline-flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gray);
    border-radius: 50px;
    font-size: 0.8rem;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}

.service-badge:hover {
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(133, 190, 85, 0.15);
}

.service-badge .badge-abbr {
    font-weight: 700;
    color: var(--green);
}

.service-badge .badge-label {
    color: #666;
    font-weight: 400;
}

@media (max-width: 600px) {
    .service-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

.hero-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-top: 1rem;
    font-weight: 400;
}

/* Hero Devices - Visible Display */
.hero-devices {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

.device {
    position: relative;
}

.device img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 5px 20px rgba(0, 0, 0, 0.1);
}

.device-desktop {
    width: 320px;
}

.device-mobile {
    width: 75px;
    margin-bottom: 10px;
}

.device-mobile img {
    border-radius: 14px;
}

@media (max-width: 968px) {
    .hero-devices {
        margin: 2rem 0;
    }

    .device-desktop {
        width: 260px;
    }

    .device-mobile {
        width: 60px;
    }
}

@media (max-width: 600px) {
    .hero-devices {
        margin: 1.5rem 0;
    }

    .device-desktop {
        width: 200px;
    }

    .device-mobile {
        width: 50px;
    }
}

/* Download Box - Ultra Modern Glassmorphism Design */
.download-box {
    background: transparent;
    padding: 0;
}

.download-box-header {
    text-align: center;
    margin-bottom: 2rem;
}

.download-box h2 {
    color: var(--black);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.download-box-subtitle {
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.create-account-link {
    margin-top: 1.5rem;
    text-align: center;
}

.create-account-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
}

.create-account-link a:hover {
    color: var(--green);
}

.platform-cross-link {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

.platform-cross-link a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.platform-cross-link a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.download-btn:hover::before {
    opacity: 1;
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.02);
}

.download-btn.primary {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 6px 20px rgba(133, 190, 85, 0.2), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.download-btn.primary:hover {
    box-shadow: 0 12px 32px rgba(133, 190, 85, 0.28), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-btn.secondary {
    background: rgba(255, 255, 255, 0.85);
    color: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
}

.download-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--green);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(133, 190, 85, 0.12);
}

.download-btn svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.download-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.download-btn .btn-text small {
    font-size: 0.65rem;
    opacity: 0.7;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn .btn-text span {
    font-size: 0.95rem;
    font-weight: 600;
}

.web-link {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(133, 190, 85, 0.12) 0%, rgba(133, 190, 85, 0.18) 100%);
    color: var(--black);
    border: 1px solid rgba(133, 190, 85, 0.3);
    flex-direction: row;
    gap: 0.65rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 6px 20px rgba(133, 190, 85, 0.1), 0 2px 4px rgba(0, 0, 0, 0.03);
}

.web-link:hover {
    border-color: var(--green);
    background: linear-gradient(135deg, rgba(133, 190, 85, 0.2) 0%, rgba(133, 190, 85, 0.28) 100%);
    box-shadow: 0 12px 32px rgba(133, 190, 85, 0.16), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.web-link svg {
    color: var(--green);
    width: 24px;
    height: 24px;
}

.web-link .btn-text {
    gap: 0;
}

.web-link .btn-text span {
    font-size: 0.9rem;
}

/* Hide download buttons based on device */
@media (min-width: 969px) {
    .hide-desktop {
        display: none !important;
    }
}

@media (max-width: 968px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Visual Section */
.visual-section {
    background: var(--gray-light);
    padding: 4rem 2rem;
}

.visual-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.visual-content img {
    width: 100%;
    max-width: 800px;
    height: auto;
}

@media (max-width: 768px) {
    .visual-section {
        padding: 2rem 1rem;
    }

    .visual-content img {
        max-width: 100%;
    }
}

/* Sections */
section {
    padding: 5rem 2rem;
}

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

.section-header h2 {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Section header pour Modes d'échanges - texte justifié et plus large */
.communication-modes .section-header {
    max-width: 1000px;
}

.communication-modes .section-header p {
    text-align: justify;
}

/* About Section */
.about {
    background: var(--white);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray);
    text-align: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 1px solid var(--gray);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--green);
}

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

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

.feature-link {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.feature-link:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

/* Téléexpertise Card - Special Yellow Style */
.feature-card.teleexpertise {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #F2C100 0%, #D9AD00 100%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.feature-card.teleexpertise .teleexpertise-visual {
    flex-shrink: 0;
    width: 140px;
}

.feature-card.teleexpertise .teleexpertise-visual img {
    width: 100%;
    height: auto;
}

.feature-card.teleexpertise .feature-card-content {
    flex: 1;
}

.feature-card.teleexpertise h3 {
    color: var(--white);
}

.feature-card.teleexpertise p {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card.teleexpertise .feature-link {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 0.5rem;
}

.feature-card.teleexpertise .feature-link:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.teleexpertise {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }

    .feature-card.teleexpertise .teleexpertise-visual {
        width: 120px;
    }
}

/* Communication Modes Section */
.communication-modes-section {
    background: var(--white);
    padding: 5rem 2rem;
}

.communication-modes {
    max-width: 1200px;
    margin: 0 auto;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.mode-card {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--gray);
    transition: all 0.3s ease;
    text-align: center;
}

.mode-card:hover {
    border-color: var(--green);
}

.mode-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mode-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--gray);
}

.mode-icon svg {
    width: 28px;
    height: 28px;
    color: var(--green);
}

.mode-card h4 {
    font-size: 1.4rem;
    color: var(--black);
    font-weight: 600;
    margin: 0;
}

.mode-card>p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    text-align: justify;
}

.mode-card ul {
    list-style: none;
    display: grid;
    gap: 0.4rem;
    text-align: left;
}

.mode-card li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.mode-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

/* Versions Section */
.versions {
    background: var(--white);
}

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

.version-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.version-card {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray);
}

.version-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 1px solid var(--gray);
}

.version-icon svg {
    width: 28px;
    height: 28px;
    color: var(--green);
}

.version-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--black);
    font-weight: 600;
}

.version-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer Section */
.footer {
    background: var(--gray-light);
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--gray);
}

.footer p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--green);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .download-box-header {
        flex-direction: column;
        text-align: center;
    }

    .version-cards,
    .modes-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Slide Menu */
    nav ul {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }

    nav ul.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav ul.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    nav ul.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    nav ul.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    nav ul.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    nav ul.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    nav ul a {
        color: var(--black);
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        transition: background 0.3s;
    }

    nav ul a:hover {
        background: var(--gray-light);
        color: var(--green);
    }

    nav ul a.btn-assistance {
        margin-top: 1rem;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .menu-overlay {
        display: block;
        pointer-events: none;
    }

    .menu-overlay.active {
        pointer-events: auto;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

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

    .download-box {
        padding: 1.5rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}
