/* main.css - Styles principaux du site OpenGraphy */

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--primary-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    /* Supprime la hauteur minimale qui causait le problème */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   GLOBAL PARTICLES SYSTEM
   ========================================== */
.global-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.global-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Particules de différentes tailles et couleurs */
.global-particle.size-small {
    width: 1px;
    height: 1px;
    background: radial-gradient(circle, rgba(55, 208, 126, 0.8) 0%, rgba(55, 208, 126, 0.2) 100%);
    box-shadow: 0 0 4px rgba(55, 208, 126, 0.6);
}

.global-particle.size-medium {
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0.2) 100%);
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

.global-particle.size-large {
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, rgba(139, 92, 246, 0.2) 100%);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.global-particle.size-xl {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.8) 0%, rgba(245, 158, 11, 0.2) 100%);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* Animations de particules */
@keyframes particleFloat1 {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) rotate(36deg) scale(1);
    }
    50% {
        transform: translateY(50vh) translateX(-20px) rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    90% {
        transform: translateY(10vh) translateX(15px) rotate(324deg) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(0) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes particleFloat2 {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.3);
        opacity: 0;
    }
    15% {
        opacity: 0.8;
        transform: translateY(85vh) translateX(-15px) rotate(54deg) scale(1.1);
    }
    60% {
        transform: translateY(40vh) translateX(25px) rotate(216deg) scale(1.3);
        opacity: 1;
    }
    85% {
        transform: translateY(15vh) translateX(-10px) rotate(306deg) scale(0.9);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-5vh) translateX(0) rotate(360deg) scale(0.2);
        opacity: 0;
    }
}

@keyframes particleFloat3 {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.4);
        opacity: 0;
    }
    20% {
        opacity: 0.9;
        transform: translateY(80vh) translateX(20px) rotate(72deg) scale(1.2);
    }
    70% {
        transform: translateY(30vh) translateX(-30px) rotate(252deg) scale(1.4);
        opacity: 0.9;
    }
    90% {
        transform: translateY(10vh) translateX(5px) rotate(324deg) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-15vh) translateX(0) rotate(360deg) scale(0.1);
        opacity: 0;
    }
}

/* Animation de pulsation pour les particules */
@keyframes particlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Animation de rotation lente */
@keyframes particleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Optimisations pour les performances */
.global-particles {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.global-particle {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Responsive - Réduire les particules sur mobile */
@media (max-width: 768px) {
    .global-particles .global-particle.size-xl {
        width: 5px;
        height: 5px;
    }
    
    .global-particles .global-particle.size-large {
        width: 4px;
        height: 4px;
    }
    
    .global-particles .global-particle.size-medium {
        width: 3px;
        height: 3px;
    }
    
    .global-particles .global-particle.size-small {
        width: 2px;
        height: 2px;
    }
}

/* Désactiver les particules sur les appareils très petits */
@media (max-width: 480px) {
    .global-particles {
        display: none;
    }
}

/* Mode économie d'énergie - réduire les animations */
@media (prefers-reduced-motion: reduce) {
    .global-particle {
        animation-duration: 20s !important;
        animation-timing-function: linear !important;
    }
}

/* ==========================================
   CLASSE POUR ÉLÉMENTS AU-DESSUS DES PARTICULES
   ========================================== */
.above-particles {
    position: relative;
    z-index: 10;
}

/* Variante avec z-index plus élevé pour les éléments critiques */
.above-particles-high {
    position: relative;
    z-index: 20;
}

/* Variante pour les modales et overlays */
.above-particles-modal {
    position: relative;
    z-index: 50;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.95) 100%),
        url('../assets/hero-bg.webp') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}


.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-black);
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 32px;
    animation: heroFadeIn 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: heroFadeIn 1s ease-out 0.4s both;
}

.hero-visual {
    position: relative;
    animation: fadeIn 1.5s ease-out;
}

/* Hero Card Flip Container */
.hero-card-flip {
    background: transparent;
    width: 100%;
    height: 450px;
    perspective: 1000px;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
}

.hero-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-card-flip:hover .hero-card-inner {
    transform: rotateY(180deg);
    transition-delay: 0.1s;
}

.hero-card-front, .hero-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
}

.hero-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('../assets/hero-bg.webp');
    background-size: cover;
    background-position: center;
}

.hero-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Suppression des règles qui bloquent les animations */
}

.hero-card-back .hero-card {
    background: transparent;
    box-shadow: none;
}

.flip-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(39, 174, 95, 0.1);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-green);
    transition: all 0.3s ease; 
}

.hero-card-flip:hover .flip-indicator {
    background: rgba(39, 174, 95, 0.2);
    transform: scale(1.05);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
}

.odoo-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* Trust Badges */
.trust-badges {
    padding: 80px 0;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */

}

.badges-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 32px 24px;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Section générale */
.section {
    padding: 100px 0;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-description {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Process Section */
.process {
    padding: 100px 0;
    background: white;
}

/* Results Section */
.results {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.result-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-description {
    color: var(--text-gray);
    font-size: 14px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: white;
}

/* ==========================================
   SECTION ÉVALUATION DES BESOINS ODOO
   ========================================== */
.odoo-evaluation-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}


.evaluation-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.evaluation-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(39, 174, 95, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.evaluation-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(39, 174, 95, 0.3);
    z-index: 3;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.evaluation-content {
    flex: 1;
}

.evaluation-header {
    margin-bottom: 40px;
}

.evaluation-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.evaluation-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.5;
    max-width: 600px;
}

.evaluation-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(39, 174, 95, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(39, 174, 95, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(39, 174, 95, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 95, 0.15);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.benefit-text {
    font-weight: 500;
    color: var(--primary-black);
}

.evaluation-cta {
    margin-bottom: 40px;
}

.btn-evaluation {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(39, 174, 95, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-evaluation::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 ease;
}

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

.btn-evaluation:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(39, 174, 95, 0.4);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-duration {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-evaluation:hover .btn-arrow {
    transform: translateX(4px);
}

.evaluation-trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.trust-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
    width: 80px;

}

.counter-text {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 500;
}

.trust-badges {
    display: flex;
    gap: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(39, 174, 95, 0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-green);
}

.trust-badge svg {
    width: 16px;
    height: 16px;
}

.evaluation-visual {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60px;
    right: 40px;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 40px;
    left: 40px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.odoo-logo-illustration {
    position: relative;
    z-index: 2;
   
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.odoo-logo-illustration svg {
    width: 80px;
    height: 80px;
    max-width: 100%;
    max-height: 100%;
}

.evaluation-testimonial {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: center;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-size: 18px;
    font-style: italic;
    color: var(--primary-black);
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.author-avatar svg {
    width: 24px;
    height: 24px;
}

.author-name {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 4px;
}

.author-role {
    font-size: 14px;
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .evaluation-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .evaluation-visual {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .evaluation-title {
        font-size: 36px;
    }
    
    .evaluation-benefits {
        grid-template-columns: 1fr;
    }
    
    .evaluation-trust {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .odoo-evaluation-cta {
        padding: 80px 0;
    }
    
    .evaluation-card {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .evaluation-title {
        font-size: 28px;
    }
    
    .evaluation-subtitle {
        font-size: 18px;
    }
    
    .btn-evaluation {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .evaluation-visual {
        width: 200px;
        height: 200px;
    }
    
    .odoo-logo-illustration {
        width: 100px;
        height: 100px;
    }
    
    .odoo-logo-illustration svg {
        width: 60px;
        height: 60px;
    }
    
    .trust-badges {
        flex-direction: row;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .evaluation-card {
        padding: 80px 16px;
    }
    
    .evaluation-title {
        font-size: 24px;
    }
    
    .evaluation-subtitle {
        font-size: 16px;
    }
    
    .benefit-item {
        padding: 12px;
    }
    
    .btn-evaluation {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .odoo-logo-illustration {
        width: 80px;
        height: 80px;
        padding: 15px;
    }
    
    .odoo-logo-illustration svg {
        width: 50px;
        height: 50px;
    }
}

