/* ============================================
   SEMITT - STYLE CORPORATE INDUSTRIEL
   Couleurs : Orange #F57C00 | Noir #111111
   ============================================ */

/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Variables CSS */
:root {
    --primary-color: #F57C00;
    --primary-dark: #D96B00;
    --primary-light: #FF9800;
    --secondary-color: #111111;
    --gray-color: #6C757D;
    --gray-light: #E9ECEF;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --success: #198754;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #0DCAF0;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    /* Coins arrondis */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.nav-link,
.btn,
.section-title {
    font-family: 'Poppins', sans-serif;
}

/* Typographie */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* =========== NAVBAR =========== */
.navbar {
    background: var(--secondary-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled {
    padding: 0.7rem 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white) !important;
}

.navbar-brand img {
    height: 45px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:before,
.navbar-nav .nav-link.active:before {
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    border-radius: var(--radius-sm);
    padding: 0.4rem 1.2rem !important;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.btn-login:before {
    display: none;
}

/* =========== BOUTONS =========== */
.btn-primary-custom {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-dark-custom {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-dark-custom:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    color: var(--white);
}

/* =========== HERO SECTION =========== */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 120px 0;
    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 1440 320"><path fill="rgba(245,124,0,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* =========== CARDS SERVICES =========== */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* =========== STATS SECTION =========== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: var(--white);
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* =========== PARTENAIRES =========== */
.partenaires-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.client-logo {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.client-logo img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

/* =========== ACTUALITÉS =========== */
.actualite-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.actualite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.actualite-img {
    height: 200px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.actualite-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.actualite-card:hover .actualite-img img {
    transform: scale(1.05);
}

.actualite-content {
    padding: 20px;
}

.actualite-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.actualite-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.actualite-excerpt {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.btn-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-read-more:hover {
    color: var(--primary-dark);
}

/* =========== CTA SECTION =========== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    padding: 70px 0;
    text-align: center;
    color: var(--white);
}

/* =========== FOOTER =========== */
.footer {
    background: var(--secondary-color);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer h4, .footer h5 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer h4 i, .footer h5 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li i {
    margin-right: 10px;
    font-size: 0.8rem;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}

/* =========== WHATSAPP FLOATING =========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* =========== BACK TO TOP =========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    color: white;
}

/* =========== FORMULAIRES =========== */
.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 124, 0, 0.25);
}

/* =========== RESPONSIVE =========== */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: var(--secondary-color);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 15px;
    }
    
    .btn-login {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* =========== ANIMATIONS =========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}


/* Correction bouton menu mobile (hamburger) */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    background: transparent;
    padding: 8px 12px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F57C00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.3);
    outline: none;
}