@charset "UTF-8";

/*!
 * Version - 1.1.1
 * Copyright (c) 2025
*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Slab:wght@100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css');
@import url('color.css');
@import url('typography.css');
@import url('../vendor/bootstrap/css/bootstrap.min.css');

/*  ==========================================
*   ================= GENERAL ================
*/
* {
    font-family: var(--ff-source);
    font-weight: 400;
    color: var(--dark);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* General */

a {
    text-decoration: none;
}

/* ======= STYLE GLOBAL ======= */

/* 1. Header */
header {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7em 1em;
    width: 100%;
    gap: 15px;
}

header .topbar .search {
    border: 1px solid #545454;
    font-size: 13px;
}

header .nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav-scroller .nav .nav-link {
    --nv-link: var(--dark);
    position: relative;
    color: var(--nv-link) !important;
    font-size: 0.875rem;
    transition: color 0.3s ease-in;
    padding-bottom: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

.nav-scroller .nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
    transition: width 0.3s ease-in-out;
}

.nav-scroller .nav .nav-link.active {
    --nv-link: var(--primary-dark);
}

.nav-scroller .nav .nav-link.active::after {
    width: 50%;
}

/* End header */

/* Body */
body {
    margin: 0;
    background: #faf8f8;
    height: 100%;
    overflow-x: hidden;
}

main {
    flex: 1;
    position: relative;
    height: calc(90vh - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ======= CONTENU ======= */
#refreshIndicator {
    text-align: center;
    padding: 10px;
    background-color: #f1f1f1;
    font-size: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.content {
    flex: 1;
    padding: .5rem 0;
    padding-bottom: calc(var(--bottom-nav-height) - 2rem);
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-wrap: wrap;
    white-space: normal;
    -webkit-overflow-scrolling: touch;
    position: relative;
    transition: transform 0.3s ease;
}

.content.pulling {
    transform: translateY(50px);
}


/* End body */

.menu-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #333;
    cursor: pointer;
}

/* ======= MENU LATÉRAL ======= */
.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 220px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 9999;
    padding-top: 20px;
}

.side-menu.open {
    left: 0;
}

.side-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu li a {
    display: block;
    padding: 1em 1.5em;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.side-menu li a:hover {
    background: #f0f0f0;
}

.side-menu li a.active {
    color: var(--primary-dark) !important;
    font-weight: 500;
}

/* Overlay sombre quand le menu est ouvert */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ======= NAVIGATION BASSE ======= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.9em 0;
    z-index: 1000;
}

/* Élément du menu */
.bottom-nav .item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    color: #444;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Icône et titre */
.bottom-nav .item i {
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.bottom-nav .item .title {
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.bottom-nav .item.active {
    color: var(--primary-dark);
}

.bottom-nav .item.active i,
.bottom-nav .item.active .title {
    color: var(--primary-dark);
    font-weight: 700;
}

.bottom-nav .item.active i {
    transform: translateY(-4px) scale(1.1);
}

@keyframes bounce {
    0% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-5px) scale(1.1);
    }

    70% {
        transform: translateY(-3px) scale(1.05);
    }

    100% {
        transform: translateY(-4px) scale(1.1);
    }
}

.bottom-nav .item.active i {
    animation: bounce 0.4s ease;
}

/* ======= RESPONSIVE ======= */

/* 6. skeleton */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 8px;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Variation pour simuler des images */
.skeleton-image {
    width: 100px;
    height: 100px;
    background-color: #e0e0e0;
}

/* Animation de pulsation */
@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }

    50% {
        background-color: #c1c1c1;
    }

    100% {
        background-color: #e0e0e0;
    }
}

/* End skeleton */

@media (min-width: 768px) {
    .side-menu {
        width: 250px;
    }

    .content {
        max-width: 600px;
        margin: auto;
    }
}

:root {
    --primary: #ea1e2c;
    --primary-dark: #b7000d;
    --secondary: #d19f3c;
    --secondary-dark: #86621a;
    --dark: #000000;
    --light: #ffffff;
    --gray: #d7d7d7;
    --blue: #005483;
    --sky-blue: #009ee3;
    --green: #40ae49;
    --purple: #713896;
    --orange: #db4c12;
    --red: #e2000b;
    --light-blue: #DFF7FF;
    --yellow: #F4C542;
    --dark-blue: #1E2A38;

    --ff-source: "Poppins", sans-serif;
    --ff-title: "Roboto Slab", serif;
    --bottom-nav-height: 60px;
}