/* VARIABLES ET RESET */
:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --bg: #f4f7f6;
    --white: #ffffff;
    --text: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: 70px; /* Espace pour la mobile nav */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.main-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo span { color: var(--accent); }

.top-nav-desktop a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

.lang-switch {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* HERO */
.hero {
    background: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 { font-size: 2.2rem; margin-bottom: 10px; }

/* LAYOUT */
.main-layout {
    display: flex;
    gap: 30px;
}

.content-area { flex: 3; }
.sidebar { flex: 1; }

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.card-icon { font-size: 3rem; margin-bottom: 15px; }

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* SIDEBAR WIDGETS */
.widget {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.widget-tmm {
    background: #2c3e50;
    color: white;
    text-align: center;
}

.tmm-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f1c40f;
}

.mini-rates { list-style: none; margin: 15px 0; }
.mini-rates li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px inset #eee;
    padding: 5px 0;
}

.widget-humour {
    border-left: 4px solid var(--accent);
    font-style: italic;
}

/* MOBILE NAV (Hidden on Desktop) */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #ddd;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* RESPONSIVE */
@media (max-width: 850px) {
    .main-layout { flex-direction: column; }
    .top-nav-desktop { display: none; }
    .mobile-nav { display: flex; }
    .sidebar { position: static; }
}