/* Variables de base pour le thème TB Maestro × Ammco */
:root {
    --tb-maestro-color: #ff3c00;
    --ammco-color: #007bc8;
    --primary-gradient: linear-gradient(135deg, var(--tb-maestro-color), var(--ammco-color));
    --secondary-gradient: linear-gradient(135deg, var(--ammco-color), var(--tb-maestro-color));
    --accent-gradient: linear-gradient(135deg, #FF9800, #E91E63);
    --text-gradient: linear-gradient(135deg, var(--text-color), var(--tb-maestro-color));
    
    /* Couleurs de base - thème clair */
    --light-bg: #ffffff;
    --off-white-bg: #f8f9fa;
    --lighter-bg: #f0f2f5;
    --text-color: rgba(33, 37, 41, 0.9);
    --secondary-text: rgba(108, 117, 125, 0.8);
    --accent-color: var(--tb-maestro-color);
    --border-color: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --modal-overlay: rgba(0, 0, 0, 0.5);
}

/* Mode sombre - Redéfinition complète des variables */
[data-theme="dark"] {
    --light-bg: #2e2d2c;
    --off-white-bg: #2b2a2a;
    --lighter-bg: #363636;
    --text-color: #e0e0e0;
    --secondary-text: #b0b0b0;
    --accent-color: var(--tb-maestro-color);
    --border-color: rgba(255, 255, 255, 0.15);
    --hover-bg: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(45, 45, 45, 0.9);
    --card-shadow: rgba(0, 0, 0, 0.6);
    --modal-overlay: rgba(0, 0, 0, 0.8);
    
    /* Gradients adaptés pour le mode sombre */
    --primary-gradient: linear-gradient(135deg, var(--tb-maestro-color), var(--ammco-color));
    --hero-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --section-gradient: linear-gradient(135deg, #2d2d2d 0%, #363636 100%);
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--light-bg);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.landing-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.landing-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--light-bg);
}

#particles-container {
    width: 100%;
    height: 100%;
}

/* Company logos styling */
.company-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-logo {
    height: 40px;
    max-width: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.company-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.logo-separator {
    font-size: 1.5rem;
    color: var(--secondary-text);
    margin: 0 0.3rem;
    font-weight: 300;
}

/* Footer logo variations */
.tb-logo-small,
.ammco-logo-small {
    height: 25px;
    max-width: 80px;
}

/* Header */
.landing-header {
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .landing-header {
    background: rgba(26, 26, 26, 0.95);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.landing-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--tb-maestro-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--tb-maestro-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 4rem 6rem;
    min-height: 70vh;
    position: relative;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--off-white-bg) 100%);
    transition: background 0.3s ease;
}

[data-theme="dark"] .hero-section {
    background: var(--hero-gradient);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleFadeIn 1.2s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--secondary-text);
    max-width: 90%;
    animation: subtitleFadeIn 1.2s ease-out 0.3s forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: buttonsFadeIn 1.2s ease-out 0.6s forwards;
    opacity: 0;
}

.cta-button {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 0.5s ease;
}

.cta-button.primary {
    color: white;
}

.cta-button.primary::before {
    background: var(--primary-gradient);
}

.cta-button.primary:hover::before {
    filter: brightness(1.2);
}

.cta-button.secondary {
    color: var(--tb-maestro-color);
    border: 2px solid var(--tb-maestro-color);
    background: transparent;
}

.cta-button.secondary:hover {
    background: rgba(255, 60, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-element {
    position: absolute;
    font-size: 2.5rem;
    color: var(--tb-maestro-color);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite alternate;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 15%;
    animation-delay: 0.5s;
}

.floating-element:nth-child(3) {
    top: 25%;
    right: 10%;
    animation-delay: 1s;
}

.floating-element:nth-child(4) {
    top: 70%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-element:nth-child(5) {
    top: 40%;
    left: 40%;
    animation-delay: 0.7s;
    font-size: 3rem;
}

.floating-element:nth-child(6) {
    top: 20%;
    right: 30%;
    animation-delay: 1.2s;
    font-size: 3.2rem;
}

/* Features Section */
.features-section {
    padding: 8rem 4rem;
    background: var(--off-white-bg);
    transition: background-color 0.3s ease;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--card-shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--tb-maestro-color);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-icon.websearch {
    background: rgba(255, 60, 0, 0.1);
    color: var(--tb-maestro-color);
}

.feature-icon.discover {
    background: rgba(0, 123, 200, 0.1);
    color: var(--ammco-color);
}

.feature-icon.focus {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.feature-icon.deepin {
    background: rgba(233, 30, 99, 0.1);
    color: #E91E63;
}

[data-theme="dark"] .feature-icon.websearch {
    background: rgba(255, 60, 0, 0.2);
}

[data-theme="dark"] .feature-icon.discover {
    background: rgba(0, 123, 200, 0.2);
}

[data-theme="dark"] .feature-icon.focus {
    background: rgba(255, 152, 0, 0.2);
}

[data-theme="dark"] .feature-icon.deepin {
    background: rgba(233, 30, 99, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--secondary-text);
    line-height: 1.6;
}



/* Contact Section */
.contact-section {
    padding: 8rem 4rem;
    background: var(--off-white-bg);
    transition: background-color 0.3s ease;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-method {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 350px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 4px 6px var(--card-shadow);
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--tb-maestro-color);
}

[data-theme="dark"] .contact-method:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    background: rgba(255, 60, 0, 0.1);
    color: var(--tb-maestro-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .contact-icon {
    background: rgba(255, 60, 0, 0.2);
}

.contact-method h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-method p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--tb-maestro-color);
    text-decoration: none;
    font-weight: 300;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.contact-link:hover {
    color: #ff6633;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-link:hover::after {
    transform: scaleX(1);
}

.contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social-links .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hover-bg);
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-social-links .social-link:hover {
    background: var(--tb-maestro-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
.landing-footer {
    background: var(--lighter-bg);
    padding: 4rem 4rem 2rem;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 300;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 150px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.footer-column a {
    display: block;
    color: var(--secondary-text);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--tb-maestro-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--secondary-text);
    font-size: 1.2rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--tb-maestro-color);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scrollbar général */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--off-white-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 60, 0, 0.4);
}




/* Responsive Styles - Mobile First Approach */
@media (max-width: 480px) {
    /* Header mobile */
    .landing-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        position: sticky;
        top: 0;
        background: var(--light-bg);
        border-bottom: 2px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    [data-theme="dark"] .landing-header {
        background: var(--light-bg);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .logo-container {
        /* Garde les logos en ligne mais centrés */
        align-items: center;
        gap: 0.5rem;
        text-align: center;
    }
    
    .company-logos {
        /* Garde les logos parallèles (côte à côte) */
        flex-direction: row;
        gap: 0.8rem;
        align-items: center;
    }
    
    .company-logo {
        height: 30px;
        max-width: 100px;
    }
    
    /* Masquer la navigation en mobile */
    .landing-nav {
        display: none;
    }
    
    /* Hero section mobile */
    .hero-section {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem 3rem;
        text-align: center;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
        order: 1;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-top: 1.5rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        justify-content: center;
        font-size: 1rem;
    }
    
    /* Masquer complètement la section visuelle avec les emojis en mobile */
    .hero-visual {
        display: none;
    }
    
    /* Features section mobile - Réorganisation verticale */
    .features-section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        order: 1;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: var(--text-color);
        font-weight: 300;
        order: 2;
        width: 100%;
        text-align: center;
    }
    
    .feature-card p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        text-align: left;
        order: 3;
        width: 100%;
        text-align: center;
    }
    
    .feature-card p:last-child {
        margin-bottom: 0;
    }
    
        /* Contact section mobile - Structure uniforme avec les agents IA */
    .contact-section {
        padding: 4rem 1rem;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .contact-method {
        max-width: 100%;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Structure uniforme: icône d'abord, titre ensuite, contenu en dernier */
    .contact-icon {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        order: 1;
    }
    
    .contact-method h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: var(--text-color);
        font-weight: 300;
        order: 2;
        width: 100%;
        text-align: center;
    }
    
    .contact-method p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: center;
        order: 3;
        width: 100%;
    }
    
    /* Emails avec style uniforme */
    .contact-method.email .contact-link {
        display: block;
        margin: 0.8rem 0;
        font-size: 1rem;
        font-weight: 300;
        padding: 0.8rem 1.2rem;
        background: var(--off-white-bg);
        border-radius: 12px;
        border: 2px solid var(--border-color);
        transition: all 0.3s ease;
        word-break: break-all;
        text-align: center;
        order: 4;
        width: 100%;
    }
    
    .contact-method.email .contact-link:hover {
        background: var(--tb-maestro-color);
        color: white;
        border-color: var(--tb-maestro-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 60, 0, 0.3);
    }
    
    .contact-social-links {
        order: 4;
        margin-top: 1rem;
        gap: 1.5rem;
    }
    
    .contact-social-links .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    /* Tablet styles */
    .landing-header {
        padding: 1.5rem 2rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .company-logo {
        height: 35px;
        max-width: 110px;
    }
    
    .hero-section {
        flex-direction: column;
        gap: 3rem;
        padding: 3rem 2rem 4rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        justify-content: center;
        gap: 1.2rem;
    }
    
    .features-section,
    .contact-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Features cards pour tablette */
    .feature-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        font-weight: 300;
    }
    
    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: left;
    }
    
    /* Contact methods pour tablette */
    .contact-methods {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .contact-method {
        flex: 1;
        max-width: 300px;
    }
}