/* Front site theme */
:root {
    --color-primary: #4F46E5;
    --color-secondary: #FEC90C;
    --color-tertiary: #1E1E1E;
    --color-text: #4B5563;
    --color-muted: #6B7280;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9FAFB;
}

body {
    font-family: 'Inter', 'Poppins', 'Roboto', sans-serif;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1E1E1E;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* Home page heading sizes */
.front-home h2 {
    font-size: 2rem;
}

.front-home h3 {
    font-size: 1.75rem;
}

h5 {
    color: var(--color-primary);
}

small,
.small {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.front-navbar {
    background-color: #fff;
    border-bottom: 2px solid var(--color-primary);
}

.front-navbar .nav-link {
    color: #1E1E1E;
}

.front-navbar .nav-link:hover,
.front-navbar .nav-link:focus {
    color: var(--color-primary);
}

.front-navbar .nav-item.dropdown > .d-flex {
    align-items: center;
}

.front-navbar .mobile-submenu-toggle {
    border: none;
    background: none;
    color: var(--color-primary);
    font-size: 1.25rem;
    line-height: 1;
}

.front-navbar .mobile-submenu-toggle:focus {
    outline: none;
}

.front-navbar .mobile-submenu-toggle .chevron {
    display: inline-block;
    transition: transform 0.3s;
}

.front-navbar .nav-item.dropdown.show .mobile-submenu-toggle .chevron {
    transform: rotate(90deg);
}

@media (min-width: 992px) {
    .front-navbar .mobile-submenu-toggle {
        display: none;
    }
}

@media (min-width: 992px) {
    .front-navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.front-footer {
    background-color: var(--color-tertiary);
    color: #fff;
}

.front-footer a {
    color: #fff;
    text-decoration: none;
}

.front-footer a:hover {
    color: var(--color-secondary);
}

.footer-logos img {
    max-width: 250px;
    height: auto;
}

.qualiopi-mention {
    font-size: 0.875rem;
    margin-left: 27px;
}

.section {
    padding: 2rem 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-gray {
    background-color: #e7e7e7;
}

.section-featured {
    background-color: #feb30c;
}

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

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-category-card {
    width: 368px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: #4338CA;
    border-color: #4338CA;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.formation-header-section {
    background-color: #333;
    color: #fff;
}

.formation-header-section h1 {
    color: #fff;
}

.formation-header-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
}

.formation-header-meta .icon {
    margin-right: 0.25rem;
}

.formation-header-img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
}

.category-header-section {
    background-color: #feb30c;
    color: #000;
}

.category-header-section h1 {
    color: #000;
}

.category-header-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
}

.category-header-meta .icon {
    margin-right: 0.25rem;
}

.category-header-img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
}

.front-navbar .container {
    align-items: flex-start;
}

.front-navbar .navbar-brand {
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: wrap;
    white-space: normal;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1E1E1E;
}

@media (max-width: 576px) {
    .front-navbar .navbar-brand {
        font-size: 1rem;
    }
}

.formation-card-title {
    font-weight: bold;
    color: #feb30c;
}

.formation-card-title a {
    color: inherit;
    text-decoration: none;
}

.category-card-title {
    font-weight: bold;
    color: #3c2ca6;
}

.programme-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.programme-popup {
    background: #fff;
    padding: 1.5rem;
    position: relative;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.programme-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: #fff;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 1;
    cursor: pointer;
}

.programme-instruction {
    color: var(--color-primary);
}

.programme-title {
    color: #000;
}
.page-header-section {
    background-color: #4f46e5;
    color: #fff;
}

.page-header-section h1 {
    color: #fff;
}

.page-header-img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
}
