/*
Theme Name: CAM Company Theme
Description: Thème B2B Logistique et Transport pour CAM Company
Author: Reda Mettioui
Version: 1.0
*/

/* --- CAM COMPANY - GLOBAL THEME --- */
:root {
    /* Colors */
    --primary-red: #D61C2C;
    --primary-red-gradient: linear-gradient(135deg, #D61C2C 0%, #8a121e 100%);
    --dark-bg: #0f1115;
    --text-dark: #1f2937;
    --text-grey: #4b5563;
    --white-alpha-10: rgba(255, 255, 255, 0.1);
    --white-alpha-20: rgba(255, 255, 255, 0.2);
    
    /* Glassmorphism Variables */
    --glass-bg-dark: rgba(20, 20, 25, 0.85);
    --glass-bg-card: rgba(22, 24, 29, 0.85);
    --glass-blur: 20px;
    --glass-border: 1px solid var(--white-alpha-10);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Layout & Typos */
    --radius-lg: 16px;
    --radius-xl: 30px;
    --radius-full: 50px;
    --font-main: 'Outfit', sans-serif;
    --max-width: 1240px;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-main);
    background-color: #f3f4f6;
    color: var(--text-dark);
    line-height: 1.7;
    display: flex; flex-direction: column; min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
strong { color: var(--primary-red); }

/* --- UTILITY CLASSES --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gap-20 { gap: 20px; }
.mt-40 { margin-top: 30px; }
.mb-20 { margin-bottom: 15px; }
.mb-30 { margin-bottom: 25px; }

/* Wrapper for main content */
.content-wrapper {
    width: 95%; max-width: var(--max-width); margin: 0 auto;
    display: flex; flex-direction: column; gap: 40px; padding-bottom: 60px;
}

/* --- COMPONENTS: BUTTONS --- */
.btn {
    padding: 12px 28px; border-radius: var(--radius-full);
    font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
    display: inline-block; border: none; cursor: pointer; transition: 0.3s;
}
.btn-red { background: var(--primary-red-gradient); color: white; box-shadow: 0 10px 25px rgba(214, 28, 44, 0.3); }
.btn-red:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(214, 28, 44, 0.4); }
.btn-outline-white { border: 1px solid rgba(255,255,255,0.3); color: white; background: rgba(255,255,255,0.05); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* --- COMPONENTS: CARDS --- */
.card-white {
    background: white; border-radius: var(--radius-xl);
    padding: 40px 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.card-dark {
    background: var(--dark-bg); color: white; text-align: center;
    border-radius: var(--radius-xl); padding: 50px 30px;
}

.glass-panel {
    background: #f8f9fa; border-radius: var(--radius-lg); padding: 25px;
}

.glass-float-card {
    position: relative; z-index: 2;
    background: var(--glass-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    padding: 40px; border-radius: var(--radius-xl);
    max-width: 800px; width: 90%; text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}
.glass-float-card h1 { font-size: 2.5rem; color: white; font-weight: 800; line-height: 1.2; margin-bottom: 15px; }
.glass-float-card p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.8); font-weight: 300; margin-bottom: 30px; }

/* STATS BAR */
.stats-bar {
    width: 100%;
    padding: 23px 40px;
    margin-top: -50px;
    margin-bottom: 10px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Badges & Icons */
.badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white-alpha-10); border: 1px solid var(--white-alpha-10);
    padding: 6px 16px; border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.85rem; color: white; margin-bottom: 20px;
}
.icon-circle {
    min-width: 40px; height: 40px;
    background: rgba(214,28,44,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.icon-circle i { color: var(--primary-red); }

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    margin-bottom: 0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 1;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 20px; left: 0; right: 0;
    width: 92%; max-width: var(--max-width); margin: 0 auto; z-index: 1000;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border); border-radius: var(--radius-full);
    box-shadow: var(--glass-shadow);
    padding: 10px 25px; display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; color: white; }
.logo img {
    height: 32px; width: auto; background-color: white;
    padding: 4px; border-radius: 6px; display: block;
}
.logo span { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.5px; text-transform: uppercase; }

.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: rgba(255,255,255,0.7); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; position: relative; }
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--primary-red); }

.lang-switch { display: flex; gap: 10px; padding-left: 20px; border-left: 1px solid var(--white-alpha-20); }
.lang-switch a { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.5); }
.lang-switch a:hover, .lang-switch a.active { color: white; }

@media (min-width: 993px) {
    .nav-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}

/* --- FOOTER --- */
footer {
    margin-top: auto; background: var(--dark-bg); color: white;
    padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-col h3 { font-size: 1.2rem; margin-bottom: 20px; color: white; }
.footer-col p, .footer-col ul li { color: #9ca3af; font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--primary-red); }
.footer-bottom { border-top: 1px solid var(--white-alpha-10); padding-top: 20px; text-align: center; color: #6b7280; margin-top: 40px;}

/* --- RESPONSIVE --- */
.nav-toggle, .nav-toggle-label { display: none; }
@media(max-width: 992px) {
    .navbar { padding: 12px 20px; width: 95%; }
    .nav-toggle-label { display: block; width: 30px; height: 30px; position: relative; cursor: pointer; z-index: 1001; }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { display: block; width: 100%; height: 2px; background: white; position: relative; transition: 0.3s; top: 14px; }
    .nav-toggle-label span::before { content: ''; position: absolute; top: -8px; }
    .nav-toggle-label span::after { content: ''; position: absolute; top: 8px; }
    
    .nav-right {
        position: absolute; top: 110%; left: 0; right: 0;
        background: var(--glass-bg-dark); backdrop-filter: blur(15px);
        flex-direction: column; padding: 30px; gap: 20px;
        display: none; border-radius: 20px; text-align: center; border: var(--glass-border);
    }
    .nav-toggle:checked ~ .nav-right { display: flex; }
    .nav-links { position: static; transform: none; flex-direction: column; width: 100%; }
    .lang-switch { border: none; border-top: 1px solid var(--white-alpha-20); padding: 15px 0 0; width: 100%; justify-content: center; }
    
    .grid-2, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .glass-float-card { padding: 30px; margin-top: 80px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -85px; padding: 25px; }
    .glass-float-card h1 { font-size: 1.8rem; }
    .content-wrapper { width: 100%; padding: 0 15px 40px; gap: 30px; }
    .card-white, .card-dark { padding: 30px 20px; }
}