:root {
    --primary-color: #ff2800;
    --primary-light: #ff4d33;
    --primary-dark: #cc1f00;
    --secondary-color: #0a0a0a;
    --accent-color: #ffd700;
    --accent-light: #ffe033;
    --text-color: #ffffff;
    --text-muted: #b0b0b0;
    --background-color: #000000;
    --background-gradient: linear-gradient(135deg, #000000 0%, #1a0a0a 50%, #000000 100%);
    --card-background: linear-gradient(145deg, #111111, #0a0a0a);
    --card-border: rgba(255, 40, 0, 0.1);
    --hover-color: #ff4d00;
    --shadow-primary: 0 8px 32px rgba(255, 40, 0, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Animation du menu hamburger */
.menu-toggle {
    position: relative;
    transition: var(--transition);
}

.menu-toggle.active {
    transform: rotate(90deg);
}

.menu-toggle i {
    transition: var(--transition);
}

.menu-toggle.active i::before {
    content: '\f00d';
}

/* Animation de chargement */
body:not(.loaded) {
    /* overflow: hidden; - Supprimé pour permettre le scroll */
}

body:not(.loaded) .hero-content {
    opacity: 0;
    transform: translateY(50px);
}

body.loaded .hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

/* Navbar avec transition fluide */
nav {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

body {
    background: var(--background-gradient);
    color: var(--text-color);
    line-height: 1.7;
    padding-top: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 0, 0, 0.9) 100%),
        radial-gradient(circle at 20% 50%, rgba(255, 40, 0, 0.1) 0%, transparent 50%);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 40, 0, 0.3);
    transition: var(--transition);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

nav.scrolled {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(15, 0, 0, 0.95) 100%),
        radial-gradient(circle at 30% 50%, rgba(255, 40, 0, 0.15) 0%, transparent 60%);
    box-shadow:
        0 12px 60px rgba(255, 40, 0, 0.25),
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(255, 40, 0, 0.6);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    transition: var(--transition);
    gap: 4rem;
    position: relative;
}

.nav-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 40, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

nav:hover .nav-content::before {
    opacity: 1;
}

.nav-content::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled .nav-content::after {
    width: 90%;
}

nav.scrolled .nav-content {
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.03em;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(255, 40, 0, 0.3));
}

.logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.logo:hover::before {
    opacity: 0.2;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 12px rgba(255, 40, 0, 0.4));
    transition: var(--transition);
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 16px rgba(255, 40, 0, 0.6));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 0.2rem; /* Reduced from 0.3rem */
    margin: 0;
    padding: 0;
    list-style: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 40, 0, 0.05) 100%);
    border-radius: 60px;
    padding: 0.6rem; /* Reduced from 0.8rem */
    backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 40, 0, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 2s ease;
}

.nav-links:hover::before {
    left: 100%;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 1rem; /* Significantly reduced padding */
    border-radius: 30px;
    position: relative;
    font-weight: 600;
    font-size: 0.85rem; /* Reduced from 0.95rem */
    letter-spacing: 0.01em;
    background: transparent;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 40, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 30px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 40, 0, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    border-radius: 50%;
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100px;
    height: 100px;
}

.nav-links a:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 12px 30px rgba(255, 40, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 8px rgba(255, 40, 0, 0.5);
}

.nav-links a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 50%, #ff6b35 100%);
    box-shadow:
        0 8px 25px rgba(255, 40, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.nav-links a.active::after {
    display: none;
}

/* Reverting dropdown changes as per user request */


/* Menu burger pour mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

/* CTA Buttons Alignement */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 800px;
    padding: 0 1rem;
}

.cta-primary,
.cta-secondary {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: var(--text-color);
    border: none;
    box-shadow: var(--shadow-primary);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 40, 0, 0.4);
}

.cta-secondary {
    background: rgba(255, 40, 0, 0.05);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 40, 0, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 40, 0, 0.25);
    border-color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
    }

    .nav-content {
        padding: 0.8rem 1rem;
        gap: 0;
        background: none;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }

    .nav-content::before,
    .nav-content::after {
        display: none;
    }

    .menu-toggle {
        display: block;
        background: var(--primary-color);
        border: none;
        color: white;
        padding: 0.6rem;
        border-radius: 6px;
        font-size: 1rem;
    }

    .logo {
        font-size: 1.2rem;
        filter: none;
    }

    .logo::before,
    .logo::after {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        padding: 0.8rem;
        border-top: 1px solid var(--primary-color);
        flex-direction: column;
        gap: 0.3rem;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-links::before {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 0.8rem;
        background: rgba(255, 40, 0, 0.1);
        border: 1px solid var(--primary-color);
        border-radius: 6px;
        text-align: center;
        color: white;
        display: block;
        width: 100%;
        font-size: 0.9rem;
    }

    .nav-links a::before,
    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: var(--primary-color);
        transform: none;
        box-shadow: none;
    }

    .nav-links a.active {
        background: var(--primary-color);
        transform: none;
        box-shadow: none;
    }

    .cta-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .cta-primary,
    .cta-secondary,
    .cta-open-webapp {
        width: 100%;
        margin: 0.5rem 0;
        min-width: auto;
    }

    /* Styles mobile pour le hero */
    .hero {
        padding: 4rem 1rem;
        min-height: auto;
        text-align: center;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    /* Styles mobile pour les features */
    .features {
        padding: 3rem 1rem;
    }

    .features h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .feature-card {
        margin-bottom: 1rem;
    }

    /* Styles mobile pour le téléchargement */
    .download {
        padding: 3rem 1rem;
    }

    .download h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .download-options {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .download-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    /* Styles mobile pour la section À propos */
    .about {
        padding: 3rem 1rem;
    }

    .about h2 {
        font-size: 2rem;
    }

    /* Styles mobile pour le footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .legal-links,
    .community-link {
        justify-content: center;
    }

    .footer-bottom {
        padding: 1rem;
        text-align: center;
    }
}

@media screen and (max-width: 1200px) {
    .roadmap-container {
        max-width: 98vw;
        padding: 1.2rem;
    }
}

@media screen and (max-width: 900px) {
    .roadmap-container {
        max-width: 100vw;
        padding: 0.7rem;
    }

    .timeline {
        padding-top: 1rem;
    }

    .timeline-item {
        width: 100%;
        padding: 0.7rem 0.5rem;
    }

    .content {
        padding: 1rem 0.7rem;
    }
}

@media screen and (max-width: 600px) {

    html,
    body {
        font-size: 14px;
        margin: 0;
        padding: 0;
        width: 100vw;
        overflow-x: hidden;
    }

    nav {
        position: relative;
        top: unset;
        left: unset;
        width: 100%;
        z-index: 1000;
        background: var(--background-color, #fff);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    }

    body {
        padding-top: 0;
    }

    .nav-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.2rem;
    }

    .logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .logo-img {
        width: 48px;
        height: 48px;
        margin: 0 auto 0.2rem auto;
        display: block;
    }

    .logo span {
        font-size: 1.1rem;
        font-weight: bold;
        text-align: center;
        display: block;
        margin: 0 auto;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.2rem;
        align-items: flex-start;
        padding-left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .roadmap-container,
    .releases-container {
        max-width: 100vw;
        margin: 70px 0 0 0;
        padding: 0.5rem 0.1rem;
        box-sizing: border-box;
    }

    .roadmap-header h1,
    .releases-header h1 {
        font-size: 1.1rem;
        text-align: center;
    }

    .roadmap-header p,
    .releases-header p {
        font-size: 0.9rem;
        text-align: center;
    }

    .timeline,
    .releases-list {
        padding: 0;
        margin: 0;
    }

    .timeline-item,
    .releases-list li {
        padding: 0.3rem 0.1rem;
        margin: 0.2rem 0;
        width: 100%;
        box-sizing: border-box;
    }

    .content {
        padding: 0.5rem 0.2rem;
        font-size: 0.97em;
        margin: 0;
    }

    .btn-main,
    .back-link {
        font-size: 1em;
        padding: 0.5em 1em;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    img,
    svg {
        max-width: 95vw;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    section,
    .section {
        margin: 0.5em 0;
        padding: 0.2em 0.1em;
    }
}

/* Ajustements pour le contenu sous la navbar */
main {
    padding-top: 80px;
}

body {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling amélioré */
html {
    scroll-behavior: smooth;
}

/* Sélection de texte personnalisée */
::selection {
    background: rgba(255, 40, 0, 0.2);
    color: var(--text-color);
}

::-moz-selection {
    background: rgba(255, 40, 0, 0.2);
    color: var(--text-color);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--hover-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--hover-color), var(--primary-color));
}

@media (max-width: 768px) {
    main {
        padding-top: 50px;
    }

    .hero {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .download-section {
        padding: 2rem 1rem;
    }

    .download-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .download-card {
        padding: 1rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 40, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        var(--background-gradient);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 40, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    margin: 0 auto;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
    font-weight: 800;
    text-shadow: 0 0 40px rgba(255, 40, 0, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 40, 0, 0.3));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(255, 40, 0, 0.5));
    }
}

.tagline {
    font-size: 2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 800px;
}

.cta-primary,
.cta-secondary,
.cta-open-webapp {
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    text-align: center;
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cta-open-webapp {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.cta-open-webapp:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
}

/* Section Nouveautés */
.news-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 40, 0, 0.05), rgba(255, 40, 0, 0.02));
    border-top: 2px solid rgba(255, 40, 0, 0.1);
    border-bottom: 2px solid rgba(255, 40, 0, 0.1);
}

.news-banner {
    max-width: 1200px;
    margin: 0 auto;
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 40, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.news-header i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.news-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-item {
    background: var(--card-background);
    border: 2px solid rgba(255, 40, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 40, 0, 0.2);
    border-color: var(--primary-color);
}

.news-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 40, 0, 0.3));
}

.news-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.news-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item li {
    padding: 0.5rem 0;
    color: var(--text-color);
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 40, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item li:last-child {
    border-bottom: none;
}

.news-item li:hover {
    color: var(--primary-color);
    padding-left: 1rem;
}

.news-cta {
    text-align: center;
    margin-top: 3rem;
}

.news-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 40, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.news-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.news-download-btn:hover::before {
    left: 100%;
}

.news-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 40, 0, 0.4);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
    .news-section {
        padding: 2rem 1rem;
    }
    
    .news-header h2 {
        font-size: 1.8rem;
    }
    
    .news-header {
        flex-direction: column;
        gap: 0.5rem;
        top: 60px;
        padding: 0.8rem 1rem;
        margin: 0 1rem 2rem 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-item {
        padding: 1.5rem;
    }
    
    .news-download-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background:
        linear-gradient(180deg, var(--background-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 40, 0, 0.5));
}

/* Download Section */
.download {
    padding: 8rem 2rem;
    background:
        radial-gradient(ellipse at center, rgba(255, 40, 0, 0.05) 0%, transparent 70%),
        var(--background-gradient);
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.download h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -1px;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.download-card {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.download-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 40, 0, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.download-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-color);
}

.download-card:hover::after {
    opacity: 1;
}

.download-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-card.windows i {
    color: #00a4ef;
}

.download-card.linux i {
    color: #f7b93e;
}

.download-card.macos i {
    color: #a2aaad;
}

.download-card.android i {
    color: #3DDC84;
}

.download-card.android .download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 100%;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-button:hover::before {
    left: 100%;
}

.download-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 40, 0, 0.4);
}

.download-button.playstore {
    background: #3DDC84;
}

.download-button.playstore:hover {
    background: #32b76e;
}

.download-button.apk {
    background: var(--primary-color);
    font-weight: bold;
}

.download-button.qr {
    background: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.download-button.qr:hover {
    background: var(--secondary-color);
    border-color: var(--hover-color);
}

.coming-soon-label {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: var(--text-color);
    border-radius: 5px;
    opacity: 0.7;
}

/* About Section */
.about {
    padding: 8rem 2rem;
    background:
        linear-gradient(180deg, var(--secondary-color) 0%, var(--background-color) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

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

.about h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
}

.manifesto {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
}

.manifesto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.manifesto h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.manifesto ul {
    list-style: none;
}

.manifesto li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.manifesto li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Footer */
footer {
    background:
        linear-gradient(180deg, var(--background-color) 0%, var(--secondary-color) 100%);
    padding: 6rem 2rem 3rem;
    position: relative;
    border-top: 1px solid var(--card-border);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.legal-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.legal-link i {
    color: var(--primary-color);
}

.legal-link:hover {
    color: var(--primary-color);
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 3rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.gdpr-notice {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.gdpr-notice a {
    color: var(--primary-color);
    text-decoration: none;
}

.gdpr-notice a:hover {
    text-decoration: underline;
}

/* Protection des données section */
.footer-section ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.download-card,
.about-content {
    animation: fadeIn 1s ease-out forwards;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

@media screen and (max-width: 1100px) {
    .download-options {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .download-card {
        min-width: 260px;
        max-width: 100%;
        flex: 1 1 320px;
    }
}

@media screen and (max-width: 800px) {
    .download-options {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .download-card {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 600px) {
    .download-options {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 0.2em;
    }

    .download-card {
        width: 100%;
        min-width: 0;
        max-width: 100vw;
        box-sizing: border-box;
        padding: 1em 0.3em;
    }

    .download-card h3 {
        font-size: 1.1em;
    }

    .download-card p {
        font-size: 0.98em;
    }

    .download-buttons {
        flex-direction: column;
        gap: 0.5em;
    }
}

/* Style pour le lien d'annonce vidéo */
.video-announcement {
    background: linear-gradient(135deg, #ff2800 0%, #cc1f00 100%) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 8px 15px !important;
    font-weight: 600 !important;
    position: relative !important;
    overflow: hidden !important;
    animation: glow 2s ease-in-out infinite alternate !important;
}

.video-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s;
}

.video-announcement:hover::before {
    left: 100%;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 40, 0, 0.5);
    }

    to {
        box-shadow: 0 0 20px rgba(255, 40, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

.video-announcement i {
    margin-right: 5px;
}