/* Styles personnalisés pour ADDBOX - Design Moderne et Épuré */

/* ===== ANIMATIONS PREMIUM HAUT DE GAMME ===== */

/* Animation de révélation progressive */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de pulsation premium */
@keyframes premium-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 168, 89, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(0, 168, 89, 0.4);
    }
}

/* Animation de brillance traversante */
@keyframes shine-sweep {
    0% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
        opacity: 0;
    }
}

/* Classes utilitaires premium */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.premium-pulse {
    animation: premium-pulse 3s ease-in-out infinite;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s;
}

.shine-effect:hover::before {
    animation: shine-sweep 1.2s ease-out;
}

/* Cartes premium avec morphing */
.premium-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 168, 89, 0.1);
}

.premium-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 168, 89, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
}

/* Boutons premium avec effets avancés */
.btn-premium {
    position: relative;
    background: linear-gradient(135deg, #00A859 0%, #10B981 50%, #059669 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 16px rgba(0, 168, 89, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

.btn-premium:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 12px 24px rgba(0, 168, 89, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.15);
}

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

/* Sections avec révélation progressive */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Styles pour les compteurs animés */
.counter {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

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

/* Variables CSS */
:root {
    --primary: #00A859;
    --secondary: #E30613;
    --dark: #1a1a1a;
    --light: #f8fafc;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #00A859 0%, #008a4a 100%);
    --gradient-secondary: linear-gradient(135deg, #E30613 0%, #c5050f 100%);
}

/* Reset et base */
* {
    box-sizing: border-box;
}

body {
    background: #f8fafc;
    min-height: 100vh;
}

/* Animations simples */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Accordéon 3D */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

/* Cartes simples */
.device-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 168, 89, 0.1);
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.device-card img {
    transition: transform 0.3s ease;
}

.device-card:hover img {
    transform: scale(1.05);
}

/* Cartes d'intégration */
.integration-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(227, 6, 19, 0.1);
}

.integration-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Cartes chariots */
.chariot-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 168, 89, 0.1);
    overflow: hidden;
}

.chariot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.chariot-card img {
    transition: transform 0.3s ease;
}

.chariot-card:hover img {
    transform: scale(1.03);
}

.logo-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid #00A859;
}

/* Animations supplémentaires */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Styles pour le menu mobile */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block;
}

/* Boutons simples */
.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Styles pour les formulaires */
.form-input:focus {
    border-color: #00A859;
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}

/* Sections */
section {
    scroll-margin-top: 80px;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid rgba(0, 168, 89, 0.1);
    box-shadow: var(--shadow);
}

/* Hero Section */
#accueil {
    background: #f8fafc;
}

/* Titres */
h1, h2, h3 {
    color: var(--dark);
    font-weight: 700;
}

h1 {
    color: var(--primary);
}

/* Images */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Styles pour les images */
img {
    max-width: 100%;
    height: auto;
}

/* Styles spécifiques pour le logo ADDBOX */
img[src*="logo-addbox"] {
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal;
}

/* Styles pour le logo dans le footer */
footer img[src*="logo-addbox"] {
    background: transparent !important;
    background-color: transparent !important;
    filter: none;
}

/* Styles pour les cartes */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Styles pour les icônes */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00A859 0%, #008a4a 100%);
    color: white;
    font-size: 24px;
}

/* Styles pour les badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #00A859;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Styles pour les alertes */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Styles pour les tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Styles pour les loaders */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00A859;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-hover);
}

/* Formulaires */
input, textarea, select {
    background: white;
    border: 2px solid rgba(0, 168, 89, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}

/* Labels */
label {
    font-weight: 600;
    color: var(--dark);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

/* Styles responsives */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .text-4xl {
        font-size: 2.5rem;
    }
    
    .text-3xl {
        font-size: 2rem;
    }
    
    .py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 480px) {
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-3xl {
        font-size: 1.75rem;
    }
    
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-3 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Styles pour l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles pour l'accessibilité */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #00A859;
    outline-offset: 2px;
}

/* Classes d'animation simples */
.fade-in-up {
    animation: slideUp 0.6s ease-out;
}

.slide-in-left {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-right {
    animation: fadeIn 0.6s ease-out;
}

.scale-in {
    animation: pulse 0.6s ease-out;
}

/* Icônes mathématiques modernes */
.plus-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #008a4a 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 168, 89, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.plus-horizontal {
    position: absolute;
    width: 30px;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.plus-vertical {
    position: absolute;
    width: 4px;
    height: 30px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.plus-icon:hover .plus-horizontal {
    transform: scale(1.1);
}

.plus-icon:hover .plus-vertical {
    transform: scale(1.1);
}

.arrow-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #c5050f 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.arrow-line {
    position: absolute;
    width: 30px;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.arrow-head {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    right: 8px;
    transition: all 0.3s ease;
}

.arrow-icon:hover .arrow-line {
    transform: scale(1.1);
}

.arrow-icon:hover .arrow-head {
    transform: scale(1.1);
}

/* Animation pour les icônes */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 168, 89, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(0, 168, 89, 0.4);
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .plus-icon, .arrow-icon {
        display: none;
    }
    
    .flex-col {
        flex-direction: column;
        gap: 2rem;
    }
    
    .device-card {
        margin-bottom: 1rem;
        max-width: 100%;
    }
}

/* Styles pour l'impression */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
}
