/* === PRODUITS CSS === */
/* Variables CSS */
:root{--primary-color:#2c5aa0;--secondary-color:#f8f9fa;--accent-color:#ffd700;--text-dark:#2d3748;--text-light:#718096;--border-color:#e2e8f0;--shadow-light:0 2px 4px rgba(0,0,0,0.1);--shadow-medium:0 4px 12px rgba(0,0,0,0.15);--shadow-heavy:0 8px 25px rgba(0,0,0,0.15);--border-radius:12px;--transition:all 0.3s cubic-bezier(0.4,0,0.2,1);}

/* Reset et base */
*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;line-height:1.6;color:var(--text-dark);background-color:#fff;}
.container{max-width:1200px;margin:0 auto;padding:0 20px;}

/* === HERO SECTION === */
.hero-section{background:linear-gradient(135deg,var(--primary-color) 0%,#1a365d 100%);color:white;padding-top:40px;padding-bottom:80px;position:relative;overflow:hidden;}
.hero-section::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 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');opacity:0.1;}
.hero-content{text-align:center;position:relative;z-index:2;}.hero-title{font-size:3.5rem;font-weight:700;margin-bottom:1rem;text-shadow:0 2px 4px rgba(0,0,0,0.3);}.hero-subtitle{font-size:1.3rem;opacity:0.9;max-width:600px;margin:0 auto;}
.hero-decoration{position:absolute;bottom:-1px;left:0;right:0;height:60px;background:white;clip-path:polygon(0 100%,100% 100%,100% 60%,0 100%);}

/* === PRODUCTS SECTION === */
.products-section{padding:100px 0;background:linear-gradient(180deg,#ffffff 0%,var(--secondary-color) 100%);}
.product-item{display:flex;align-items:center;justify-content:space-between;gap:60px;margin-bottom:120px;opacity:0;transform:translateY(30px);transition:var(--transition);flex-wrap:wrap;}
.product-item.animate-in{opacity:1;transform:translateY(0);}
.product-item.right{flex-direction:row-reverse;}
.product-item .product-images,.product-item .product-content{flex:1 1 45%;}
.product-images{display:flex;flex-direction:column;position:relative;}
.main-image{position: relative; z-index:1; overflow:hidden;}
.main-image img{width:100%; height:auto;display:block;}
.main-image.left{border-radius:var(--border-radius);overflow:hidden;box-shadow:var(--shadow-heavy);transform:perspective(1000px) rotateY(5deg);transition:var(--transition);}
.main-image.right{border-radius:var(--border-radius);overflow:hidden;box-shadow:var(--shadow-heavy);transform:perspective(1000px) rotateY(-5deg);transition:var(--transition);}
.main-image:hover{transform:perspective(1000px) rotateY(0deg) scale(1.02);box-shadow:0 12px 35px rgba(0,0,0,0.2);}
.main-image img{width:100%;height:auto;display:block;transition:var(--transition);}
.secondary-image{position: absolute; bottom: -20px; z-index:2;border-radius:8px;overflow:hidden;box-shadow:var(--shadow-medium);border:4px solid white;transform:rotate(3deg);transition:var(--transition);width:40%;align-self:flex-end;}
.product-item.right .secondary-image{align-self:flex-start;transform:rotate(-3deg);}
.secondary-image img{width:100%;height:auto;display:block;}
.secondary-image:hover{transform:rotate(0deg) scale(1.05);}
.product-item.right .secondary-image:hover{transform:rotate(0deg) scale(1.05);}
.product-content{padding:20px;}
.product-title{font-size:2.5rem;font-weight:700;color:var(--primary-color);margin-bottom:1.5rem;position:relative;}
.product-title::after{content:'';position:absolute;bottom:-10px;left:0;width:60px;height:4px;background:var(--accent-color);border-radius:2px;}
.product-description{font-size:1.1rem;color:var(--text-light);margin-bottom:2rem;line-height:1.7;}
.product-features h3{font-size:1.2rem;color:var(--text-dark);margin-bottom:1rem;font-weight:600;}
.product-actions{margin-top:2.5rem;display:flex;gap:1rem;flex-wrap:wrap;}
.product-video{margin-top:2.5rem; width:100%; aspect-ratio: 4/3;}
.product-video iframe{width:100%; height:100%;}
.features-list{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0.8rem;}
.features-list li{display:flex;align-items:center;font-size:0.95rem;color:var(--text-light);padding:0.5rem 0;}
.feature-icon{background:var(--primary-color);color:white;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:0.8rem;font-weight:bold;margin-right:0.8rem;flex-shrink:0;}
.btn{padding:12px 24px;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;transition:var(--transition);position:relative;overflow:hidden;}
.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;}
.btn:hover::before{left:100%;}
.btn-primary{background:var(--primary-color);color:white;box-shadow:var(--shadow-light);}
.btn-primary:hover{background:#1a365d;transform:translateY(-2px);box-shadow:var(--shadow-medium);}
.btn-secondary{background:white;color:var(--primary-color);border:2px solid var(--primary-color);}
.btn-secondary:hover{background:var(--primary-color);color:white;transform:translateY(-2px);}
.btn-outline{background:transparent;color:white;border:2px solid white;}
.btn-outline:hover{background:white;color:var(--primary-color);}
.btn-large{padding:16px 32px;font-size:1.1rem;}

/* === CTA SECTION === */
.cta-section{background:linear-gradient(135deg,var(--primary-color) 0%,#1a365d 100%);color:white;padding:80px 0;text-align:center;}
.cta-content h2{font-size:2.5rem;font-weight:700;margin-bottom:1rem;}
.cta-content p{font-size:1.2rem;opacity:0.9;margin-bottom:2.5rem;}
.cta-buttons{display:flex;gap:1.5rem;justify-content:center;flex-wrap:wrap;}

/* Alertes flash */
.alert{padding:15px;border-radius:5px;margin:15px 20px 15px;border:1px solid transparent;}
.alert-success{background-color:#d4edda;color:#155724;border-color:#c3e6cb;}
.alert-error{background-color:#f8d7da;color:#721c24;border-color:#f5c6cb;}

/* === MODAL === */
.modal{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,0.5);backdrop-filter:blur(4px);}
.modal-content{background-color:white;margin:5% auto;padding:10px;border-radius:var(--border-radius);width:90%;max-width:500px;box-shadow:var(--shadow-heavy);position:relative;animation:modalSlideIn 0.3s ease;}
@keyframes modalSlideIn{from{opacity:0;transform:translateY(-30px);}to{opacity:1;transform:translateY(0);}}
.close{color:#aaa;float:right;font-size:28px;font-weight:bold;cursor:pointer;line-height:1;}
.close:hover{color:var(--primary-color);}
.form-group{margin-bottom:1.5rem;}
.form-group label{display:block;margin-bottom:0.5rem;font-weight:600;color:var(--text-dark);}
.form-group input,.form-group textarea{width:100%;padding:12px;border:2px solid var(--border-color);max-width: 100%;min-width: 100%;border-radius:8px;font-size:1rem;transition:var(--transition);}
.form-group input:focus,.form-group textarea:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px rgba(44,90,160,0.1);}

/* === RESPONSIVE === */
@media(max-width:768px){
    .hero-title{font-size:2.5rem;}
    .hero-subtitle{font-size:1.1rem;}
    .product-item{flex-direction:column !important;gap:30px;margin-bottom:80px;}
    .product-item .product-images,.product-item .product-content{flex:1 1 100%;}
    .main-image{transform:none !important;}.secondary-image{position:static;width:60%;margin:20px auto 0;transform:none !important;}
    .product-title{font-size:2rem;}.features-list{grid-template-columns:1fr;}.product-actions{flex-direction:column;}
    .cta-content h2{font-size:2rem;}.cta-buttons{flex-direction:column;align-items:center;}.modal-content{margin:10% auto;width:95%;padding:20px;}
}
@media(max-width:480px){
    .hero-title{font-size:2rem;}
    .hero-subtitle{font-size:1.1rem;}
    .products-section{padding:60px 0;}
    .container{padding:0 15px;}
    .product-content{padding:10px;}
    .btn{width:100%;justify-content:center;}
}
