/* ===========================================
   AXITAM - Main Stylesheet
   =========================================== */

/* Variables CSS */
:root {
    --axitam-navy: #1E3A8A;
    --axitam-blue: #3B82F6;
    --axitam-green: #10B981;
    --axitam-orange: #F97316;
    --gray-dark: #64748B;
    --gray-light: #E2E8F0;
    --white: #FFFFFF;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2937;
    scroll-behavior: smooth;
}

/* ===========================================
   Header Navigation
   =========================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--axitam-navy);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--axitam-navy);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--axitam-blue);
}

/* Language Switcher */
.lang-switch {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--gray-light);
}

.lang-switch a {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lang-switch a.active {
    background: var(--axitam-navy);
    color: white !important;
}

.lang-switch a:hover:not(.active) {
    background: var(--gray-light);
}

/* ===========================================
   Hero Section avec Animation
   =========================================== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--axitam-navy) 0%, var(--axitam-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cubes" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0,0 L10,0 L10,10 L0,10 Z M5,5 L15,5 L15,15 L5,15 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23cubes)"/></svg>') repeat;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideUp 1s ease-out 0.5s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-button {
    background: var(--axitam-green);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cta-button:hover {
    background: var(--axitam-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===========================================
   Sections communes
   =========================================== */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--axitam-navy);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--axitam-green);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ===========================================
   Forces - Visualisation avec icônes
   =========================================== */
.forces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.force-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.force-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--axitam-blue), var(--axitam-green));
}

.force-card:hover {
    transform: translateY(-10px);
}

.force-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--axitam-blue), var(--axitam-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.force-card h3 {
    font-size: 1.5rem;
    color: var(--axitam-navy);
    margin-bottom: 1rem;
}

/* ===========================================
   Valeur Ajoutée avec métaphores visuelles
   =========================================== */
.value-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 2rem;
    margin: 3rem 0;
    border-radius: 20px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    position: relative;
}

.value-visual {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}

.value-visual::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: conic-gradient(from 0deg, var(--axitam-blue), var(--axitam-green), var(--axitam-orange), var(--axitam-blue));
    border-radius: 50%;
    z-index: -1;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.value-emoji {
    font-size: 3rem;
}

/* ===========================================
   Processus avec Timeline
   =========================================== */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--axitam-blue), var(--axitam-green));
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.process-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: calc(50% - 30px);
    position: relative;
}

.process-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    border: 4px solid var(--axitam-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--axitam-navy);
}

/* ===========================================
   Technologies avec animation
   =========================================== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.tech-item {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

/* ===========================================
   Contact Section
   =========================================== */
.contact-section {
    background: var(--axitam-navy);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto;
}

.contact-item {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--axitam-green);
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    background: #0F172A;
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--axitam-blue);
    text-decoration: none;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .process-timeline::before {
        left: 20px;
    }

    .process-step {
        flex-direction: row !important;
        text-align: left !important;
    }

    .process-content {
        width: calc(100% - 60px);
        margin-left: 40px;
    }

    .process-number {
        left: 20px;
        transform: translateY(-50%);
    }
}

/* ===========================================
   Animations d'entrée
   =========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
