/* =========================
   MAIN STYLESHEET - ISOQUALTECH
   Organizational structure with modular imports
========================= */

/* Import GLOBAL stylesheets */
@import url('./header.css');
@import url('./footer.css');
@import url('./responsive.css');
/* Import PAGE-SPECIFIC stylesheets */
@import url('./pages/produits.css');
@import url('./pages/applications.css');
@import url('./pages/articles.css');
@import url('./pages/produit-details.css');
@import url('./pages/logiciels.css');
@import url('./pages/contact.css');
/*@import url('./pages/admin.css');*/

/* Import HOME PAGE CSS (index.php uses 'accueil' and doesn't load page CSS separately) */
@import url('./pages/index.css');

/* Other page-specific CSS (produits, services, contact, etc.) is loaded separately in header.php to avoid duplication */

/* =========================
   RESET / BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #2f9e44;
    --green-dark: #25853a;
    --green-soft: #edf7ee;
    --text: #2f2f2f;
    --text-light: #6f6f6f;
    --bg-light: #f7f7f7;
    --border: #e7e7e7;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Global container constraints */
.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Ensure all images are responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================
   KEYFRAMES & ANIMATIONS GLOBALES
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    }
    50% {
        box-shadow: 0 12px 35px rgba(47, 158, 68, 0.15);
    }
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--green);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(47, 158, 68, 0.3);
}

#scrollToTop:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(47, 158, 68, 0.4);
}