/* ============================================
   JBOXMINE - Feuille de style principale
   ============================================ */

/* --- Variables CSS --- */
:root {
    --primary: #1e40af;
    --primary-dark: #1e40af;
    --primary-light: #1e40af;
    --secondary: #c8a415;
    --secondary-light: #e6c619;
    --accent: #f0a500;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --dark: #1a1a2e;
    --text: #2c3e50;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--light);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Barre supérieure --- */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-left span i {
    margin-right: 6px;
    color: var(--secondary);
}

.top-right a {
    color: var(--white);
    margin-left: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.top-right a:hover { color: var(--secondary); }

/* --- Navigation --- */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(26, 92, 58, 0.3);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 700; font-size: 1.3rem; color: var(--primary); }
.logo-sub { font-size: 0.7rem; color: var(--gray); font-weight: 400; text-transform: uppercase; letter-spacing: 2px; }

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary);
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,164,21,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--secondary-light);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Boutons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,164,21,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-green {
    background: var(--primary);
    color: var(--white);
}

.btn-green:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* --- Section Titre --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 15px auto;
    border-radius: 2px;
}

/* --- Cartes / Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--primary);
}

.feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--white);
}

.feature-icon.green { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.feature-icon.gold { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); }
.feature-icon.blue { background: linear-gradient(135deg, #1e40af, #60a5fa); }
.feature-icon.red { background: linear-gradient(135deg, #dc2626, #f87171); }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Section Stats --- */
.stats {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary-light);
}

.stat-item p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 5px;
}

/* --- Section Page --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
}

.page-header .breadcrumb {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Crédits Page --- */
.credits-section { padding: 80px 0; }

.credit-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.credit-header {
    padding: 30px 25px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
}

.credit-header.green-bg { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.credit-header.gold-bg { background: linear-gradient(135deg, var(--secondary), #d4a017); }
.credit-header.blue-bg { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.credit-header.red-bg { background: linear-gradient(135deg, #991b1b, #dc2626); }
.credit-header.teal-bg { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.credit-header.purple-bg { background: linear-gradient(135deg, #6b21a8, #a855f7); }
.credit-header.orange-bg { background: linear-gradient(135deg, #c2410c, #f97316); }

.credit-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.credit-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.credit-body {
    padding: 25px;
    flex: 1;
}

.credit-body p {
    color: var(--gray);
    font-size: 0.92rem;
    margin-bottom: 18px;
    line-height: 1.7;
}

.credit-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.credit-detail {
    background: var(--light);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.credit-detail span {
    display: block;
    color: var(--gray);
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.credit-detail strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.credit-footer {
    padding: 0 25px 25px;
    text-align: center;
}

/* --- Services Page --- */
.services-section { padding: 80px 0; }

.schedule-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.schedule-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.schedule-card i.clock-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.schedule-table th, .schedule-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.schedule-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.schedule-table td {
    font-size: 0.95rem;
}

.schedule-table tr:last-child td { border-bottom: none; }

.schedule-table tr:hover td { background: var(--light); }

.status-open {
    color: var(--primary);
    font-weight: 600;
}

.status-closed {
    color: #dc2626;
    font-weight: 600;
}

/* --- Transfert Page --- */
.transfert-section { padding: 80px 0; }

.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.province-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 18px;
    border-left: 4px solid var(--primary);
}

.province-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--secondary);
}

.province-card .province-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.province-info h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.province-info .province-ville {
    font-size: 0.85rem;
    color: var(--gray);
}

.province-info .province-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.8rem;
}

.province-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 500;
}

/* --- Formulaire Contact --- */
.contact-section { padding: 80px 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-radius: var(--radius);
    padding: 45px 35px;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-info-card p {
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.info-item i {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-item .info-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.info-item .info-text p {
    font-size: 0.88rem;
    opacity: 0.8;
    margin: 0;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 45px 35px;
    box-shadow: var(--shadow);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.15);
    background: var(--white);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- Alert Messages --- */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-logo .logo-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-col p {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--secondary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.8;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    opacity: 0.8;
}

.contact-info li i {
    color: var(--secondary);
    margin-top: 4px;
    width: 18px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--dark);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    font-size: 0.88rem;
    opacity: 0.6;
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 15px 20px;
        box-shadow: var(--shadow);
        gap: 5px;
    }

    .nav-menu.active { display: flex; }

    .nav-toggle { display: flex; align-items: center; justify-content: center; }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .section-title h2 { font-size: 1.7rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .credit-details { grid-template-columns: 1fr; }
    .top-bar-content { flex-direction: column; text-align: center; }
    .top-left { flex-direction: column; gap: 5px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .btn { padding: 12px 20px; font-size: 0.85rem; }
    .province-grid { grid-template-columns: 1fr; }
}