/* 
 * HEXELYS - CSS Personnalisé
 * Surcharge des styles du thème pour correspondre au design souhaité
 * Police exclusive : Roboto
 */

/* ===== VARIABLES ===== */
:root {
    --primary-color: #D8A700;
    --primary-dark: #b89000;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --border-radius: 0;
    --tag-radius: 15px;
    --font-family: 'Roboto', sans-serif;
}

/* ===== LIENS - COULEUR JAUNE HEXELYS ===== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ===== RÈGLE UNIVERSELLE - ROBOTO PARTOUT ===== */
*, *::before, *::after {
    font-family: 'Roboto', sans-serif !important;
}

/* Exception pour les icônes Font Awesome */
.fa, .fas, .far, .fab, .fal, .fad,
[class^="fa-"], [class*=" fa-"],
.fa::before, .fas::before, .far::before, .fab::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
}

/* ===== ANGLES DROITS - PARTOUT SAUF TAGS ===== */
.card,
.alert,
.form-control,
.input-group,
.modal-content,
.dropdown-menu,
.pagination .page-link,
.breadcrumb,
.badge:not(.tag-item),
img:not(.rounded-circle) {
    border-radius: 0 !important;
}

/* ===== TYPOGRAPHIE GLOBALE ===== */
body {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
}

h1, .h1 { font-weight: 700 !important; font-size: 5rem !important; }
h2, .h2 { font-weight: 700 !important; font-size: 4rem !important; }
h3, .h3 { font-weight: 600 !important; font-size: 1.5rem !important; }
h4, .h4 { font-weight: 600 !important; font-size: 1.25rem !important; }
h5, .h5 { font-weight: 500 !important; font-size: 1.125rem !important; }
h6, .h6 { font-weight: 500 !important; font-size: 1rem !important; }

p { font-weight: 400; line-height: 1.7; }
.lead { font-weight: 400 !important; font-size: 1.3rem !important; }
strong, b { font-weight: 700 !important; }

/* Liens */
a { font-weight: 300; }

/* Boutons */
.btn, button, input[type="submit"], input[type="button"] {
    font-weight: 300 !important;
}

/* Navigation */
.nav-link, .navbar-nav .nav-link, .nav-item a {
    font-weight: 300 !important;
}

/* Formulaires */
input, textarea, select, .form-control {
    font-weight: 300 !important;
}

/* Badges et labels */
.badge, .tag, .category-badge {
    font-weight: 500 !important;
}

.display-1 { font-weight: 300 !important; font-size: 4rem !important; }
.display-2 { font-weight: 300 !important; font-size: 3.5rem !important; }
.display-3 { font-weight: 300 !important; font-size: 3rem !important; }
.display-4 { font-weight: 300 !important; font-size: 2.5rem !important; }

/* ===== LOADER ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s, visibility 0.3s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 80px;
    height: 80px;
}

/* ===== HEADER ===== */
header.main-header {
    background: #fff;
    padding: 0;
    position: relative;
}

.header-main {
    padding: 15px 0;
    background: #fff;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-link {
    display: block;
}

.header-logo {
    max-width: 220px;
    height: auto;
}

.header-contact {
    text-align: right;
}

.header-contact a {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.header-contact a:last-child {
    margin-bottom: 0;
}

.header-contact a:hover {
    color: var(--primary-color);
}

.header-contact i {
    margin-right: 6px;
    width: 14px;
    color: var(--primary-color);
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--dark-bg);
    padding: 0;
}

.main-nav .navbar {
    padding: 0;
    min-height: 56px;
}

.main-nav .navbar-nav {
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* Masquer le toggler en desktop */
.main-nav .navbar-toggler {
    display: none;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 12px;
    background: transparent;
    border-radius: 4px;
    align-items: center;
    gap: 8px;
}

.main-nav .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 22px;
    height: 22px;
    display: block;
}

/* Label "Menu" — masqué en desktop */
.main-nav .navbar-toggler-label {
    display: none;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav .nav-link {
    color: #fff !important;
    padding: 18px 25px !important;
    font-size: 12px !important;
    font-weight: 300 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    height: 56px;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 80%;
}

/* Séparateurs entre liens (points) - Desktop uniquement */
.main-nav .nav-item:not(:last-child)::after {
    content: '•';
    color: rgba(255,255,255,0.3);
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    padding: 0 20px;
    width: 100%;
}

.hero-banner h1 {
    font-size: 5rem !important;
    font-weight: 900;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: none;
    text-transform: uppercase;
    transform: scaleY(1.25);
    transform-origin: bottom;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-banner p {
    font-size: 3rem;
    font-weight: 300;
   
    margin-bottom: 30px;
}

.page-hero {
    height: 350px;
}

.page-hero h1 {
    font-size: 3.5rem;
}
.fade.show { opacity: 1; }
.collapse.show { display: block; }
/* ===== BOUTONS ===== */
.btn-primary {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216, 167, 0, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    border-radius: 0 !important;
}

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

.btn-light,
.btn-secondary,
.btn-outline-secondary {
    border-radius: 0 !important;
}

/* Bouton blanc sur fond jaune */
.btn-white {
    background: #fff !important;
    color: var(--primary-color) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 35px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-white:hover {
    background: #f0f0f0 !important;
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

/* ===== LAYOUT MASONRY FORMATIONS ===== */
.masonry-grid {
    column-count: 3;
    column-gap: 25px;
}

.masonry-grid .masonry-item {
    break-inside: avoid;
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* ===== CARTES FORMATIONS ===== */
.course-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    background: white;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.course-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Cartouche titre sur l'image */
.course-card-title-overlay {
    position: absolute;
    bottom: 50%;
    left: 0;
    background: #1a1a1a;
    color: #fff;
    width: 70%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
}

/* Image cliquable */
.course-card-image-link {
    display: block;
    height: 100%;
    width: 100%;
}

.course-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.course-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
}

.course-card-text {
    color: #555;
    margin-bottom: 15px;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

/* Lien discret "Consulter" en bas à droite */
.course-card-more {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 10px;
}

.course-card-more a {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.course-card-more a:hover {
    color: var(--primary-color);
}

.course-card-more a i {
    font-size: 10px;
}

/* Description cliquable */
.course-card-text-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.course-card-text-link:hover {
    color: inherit;
}

/* ===== BLOC INFO FILTRE ===== */
.filter-info-block {
    background: var(--dark-bg);
    color: white;
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-info-block .filter-label {
    color: rgba(255,255,255,0.7);
}

.filter-info-block .filter-value {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-info-block .filter-count {
    color: rgba(255,255,255,0.6);
    margin-left: 10px;
}

.filter-info-block .btn-reset {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 13px;
    transition: all 0.3s;
}

.filter-info-block .btn-reset:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* ===== TAGS SUR CARTES DE FORMATION ===== */
.course-card-tags {
    margin: 10px 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.course-tag-link {
    display: inline-block;
    background: rgba(216, 167, 0, 0.1);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: var(--tag-radius) !important;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(216, 167, 0, 0.3);
}

.course-tag-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.course-tag-more {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: var(--tag-radius) !important;
    font-size: 11px;
    font-weight: 500;
}

/* ===== TAGS FICHE FORMATION ===== */
.formation-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 0;
}

.formation-tags .tags-label {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
}

.formation-tag-link {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--tag-radius) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.formation-tag-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(216, 167, 0, 0.3);
}

/* ===== NUAGE DE TAGS ===== */
.tags-cloud {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: var(--tag-radius) !important;
    font-size: 14px;
    margin: 5px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.tag-item .tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.1);
    color: inherit;
    min-width: 22px;
    height: 22px;
    border-radius: 50% !important;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tag-item:hover .tag-count {
    background: rgba(255,255,255,0.2);
}

.tag-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag-item.active .tag-count {
    background: rgba(255,255,255,0.2);
}

/* ===== ONGLETS FICHE FORMATION ===== */
.course-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.course-tabs .nav-tabs {
    border: none;
}

.course-tabs .nav-link {
    border: none;
    color: #666;
    padding: 15px 30px;
    font-weight: 500;
    font-size: 16px;
    margin-right: 10px;
    border-radius: 0;
    position: relative;
    transition: all 0.3s;
}

.course-tabs .nav-link:hover {
    color: var(--primary-color);
    background: transparent;
}

.course-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border: none;
}

.course-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    padding: 30px 0;
}

.course-details-sidebar {
    background: #f8f9fa;
    padding: 30px;
    position: sticky;
    top: 20px;
}

.course-info-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.course-info-item:last-child {
    border-bottom: none;
}

.course-info-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.course-info-value {
    color: #666;
}

/* ===== SYSTÈME DE TAGS ===== */
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.course-tags .tag-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-tags .tag-item:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
}

.course-tags .tag-item.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.course-tags .tag-item:not(.tag-sm) {
    padding: 5px 12px;
    font-size: 11px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-bg);
    color: #aaa;
    padding: 60px 0 20px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

footer ul {
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.qualiopi-logo {
    max-height: 100px;
    margin-top: 20px;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.bg-light-section {
    background: var(--light-bg);
    padding: 60px 0;
}

/* ===== PAGE FORMATEURS ===== */

/* Stats Box */
.stats-box {
    background: var(--dark-bg);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background-color: #fff;
}

.stat-item {
    text-align: center;
    padding: 30px 15px;
    background: var(--dark-bg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Approach Section */
.trainers-approach-section {
    background: transparent;
    color: var(--text-color);
    padding-top: 0;
}

.trainers-approach-section > .container > .row {
    display: flex;
    flex-wrap: wrap;
}

.trainers-approach-section .col-lg-4 {
    display: flex;
}

.trainers-approach-section .col-lg-4 .approach-card {
    height: 100%;
}

.approach-card {
    background: var(--dark-bg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    width: 100%;
}

.approach-card:hover {
    background: #252525;
}

.approach-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.approach-icon i {
    font-size: 24px;
    color: white;
}

.approach-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    flex-shrink: 0;
}

.approach-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
    line-height: 1.7;
    flex-grow: 1;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.expertise-item {
    background: white;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.expertise-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.expertise-item span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

/* Sectors Grid */
.sectors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.sector-tag {
    display: inline-block;
    background: var(--dark-bg);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.sector-tag:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Trainers Gallery */
.trainers-gallery-section {
    background: var(--light-bg);
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trainer-card {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.trainer-photo {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f0f0f0;
    overflow: hidden;
}

.trainer-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4A6572; /* Fallback si pas de style inline */
}

.trainer-placeholder i {
    font-size: 80px;
    color: #bbb;
}

.trainer-initials {
    font-family: 'Poppins', 'Roboto', sans-serif !important;
    font-weight: 300 !important;
    font-size: 8rem !important;
    color: var(--primary-color);
    letter-spacing: 2px;
    user-select: none;
}

.trainer-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trainer-info {
    padding: 18px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.trainer-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-color);
}

.trainer-title {
    font-size: 12.5px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

.trainer-short-desc {
    font-size: 12.5px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    text-align: left;
}

.trainer-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    max-height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: left;
}

.trainer-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.specialty-tag {
    display: inline-block;
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
    padding: 2px 8px;
    border-radius: var(--tag-radius) !important;
    font-size: 10px;
    font-weight: 400;
}

.specialty-more {
    display: inline-block;
    background: #f0f0f0;
    color: #999;
    padding: 4px 8px;
    border-radius: var(--tag-radius) !important;
    font-size: 11px;
}

.trainer-linkedin {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
    color: #0077b5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s;
}

.trainer-linkedin:hover {
    color: #005885;
}

.trainer-linkedin i {
    font-size: 18px;
}

/* ===== VIGNETTE DÉPLIABLE (EXPANDED) ===== */

/* Toggle visibilité compact / expanded */
.trainer-compact { display: block; }
.trainer-expanded { display: none; opacity: 0; }

.trainer-card.is-expanded .trainer-compact { display: none; }
.trainer-card.is-expanded .trainer-expanded { 
    display: block; 
    opacity: 1;
    animation: trainerFadeIn 0.3s ease;
}

@keyframes trainerFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Carte dépliée — span 2 colonnes */
.trainer-card.is-expanded {
    grid-column: span 2;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    cursor: default;
    transform: none !important;
    height: auto;
}

/* Pas de hover lift quand dépliée */
.trainer-card.is-expanded:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Header dépliée : photo + identité côte à côte */
.trainer-expanded-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px 25px 0 25px;
    margin-bottom: 20px;
}

.trainer-expanded-photo {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    overflow: hidden;
    background: #f0f0f0;
}

.trainer-expanded-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-placeholder-expanded {
    position: relative;
    width: 130px;
    height: 130px;
}

.trainer-placeholder-expanded .trainer-initials {
    font-size: 5rem !important;
}

.trainer-expanded-identity {
    flex: 1;
    min-width: 0;
    padding-top: 5px;
}

.trainer-expanded-identity .trainer-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
}

.trainer-expanded-title {
    font-size: 13.5px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

.trainer-expanded-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0077b5;
    text-decoration: none;
}

.trainer-expanded-linkedin:hover {
    color: #005885;
    text-decoration: underline;
}

/* Bio dépliée */
.trainer-expanded-bio {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    padding: 0 25px;
    margin-bottom: 20px;
    text-align: justify;
}

/* Sections spécialités / secteurs */
.trainer-expanded-section {
    padding: 0 25px;
    margin-bottom: 15px;
}

.trainer-expanded-section:last-child {
    padding-bottom: 25px;
}

.trainer-expanded-section h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 8px;
}

.trainer-expanded-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sector-tag-sm {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.contact-box {
    background: white;
    padding: 35px 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.contact-intro {
    padding-right: 30px;
    padding-top: 10px;
}

.contact-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-intro p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.contact-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-box > p {
    margin-bottom: 25px;
    color: #666;
}

.contact-box .form-group {
    margin-bottom: 15px;
}

.contact-box label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    color: var(--text-color);
    font-size: 14px;
}

.contact-box .form-control {
    border-radius: 0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.contact-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(216, 167, 0, 0.1);
}

.contact-box textarea.form-control {
    min-height: 100px;
}

.contact-box .btn-primary {
    padding: 12px 35px;
}

/* ===== CONTACT INFO SIDEBAR ===== */
.contact-info-sidebar {
    background: white;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.contact-info-sidebar h4 {
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-color);
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-info-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-info-item a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

/* ===== HERO HOME - PUNCHLINE ===== */
.hero-home {
    height: 500px;
}

.hero-punchline {
    font-size: 3.5rem !important;
    font-weight: 300 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* ===== SECTION CHOISIR HEXELYS ===== */
.choose-hexelys-section {
    background: #fff;
    padding: 80px 0;
}

.section-title-main {
    font-size: 4rem !important;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 50px;
}

.choose-card {
    background: #fafafa;
    padding: 40px 30px;
    height: 100%;
    text-align: center;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.choose-card:hover {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-bottom-color: var(--primary-color);
    transform: translateY(-5px);
}

.choose-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.choose-icon i {
    font-size: 32px;
    color: #fff;
}

.choose-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.choose-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 0;
}

/* ===== VERBATIM / CITATION ===== */
.verbatim-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    position: relative;
}

.verbatim-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.verbatim-quote {
    position: relative;
    padding: 0 40px;
}

.verbatim-quote::before {
    content: '"';
    font-size: 120px;
    font-family: Georgia, serif !important;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -40px;
    left: 0;
    line-height: 1;
}

.verbatim-text {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(255,255,255,0.95);
    font-style: italic;
    margin-bottom: 40px;
    text-align: center;
}

.verbatim-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.verbatim-line {
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.verbatim-authors {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-align: center;
}

.verbatim-role {
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    margin-top: 5px;
    font-weight: 300;
    text-align: center;
}

/* ===== ABOUT PAGE IMPROVED ===== */
.about-intro-section {
    padding: 80px 0;
}

.about-mission-box {
    background: var(--primary-color);
    padding: 40px;
    color: #fff;
    text-align: center;
}

.about-mission-box h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-mission-box p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.95;
}

.about-approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.about-approach-item {
    background: #fff;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.about-approach-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-approach-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-approach-item h4 i {
    color: var(--primary-color);
}

.about-approach-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.7;
}

.qualiopi-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.qualiopi-box {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.qualiopi-box img {
    max-height: 120px;
    flex-shrink: 0;
}

.qualiopi-box h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.qualiopi-box p {
    margin-bottom: 0;
    color: #666;
}

/* ===== TAGS COMPACTS - FORMATIONS PAGE ===== */
.filter-label-sm {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    display: block;
    margin-bottom: 6px;
}

.tags-compact {
    gap: 3px !important;
    line-height: 1.4;
}

.tag-item.tag-sm {
    padding: 3px 8px !important;
    font-size: 10px !important;
    line-height: 1.2;
    margin: 1px;
    font-weight: 400;
}

.tag-count-sm {
    display: inline-block;
    background: rgba(0,0,0,0.06);
    padding: 0px 4px;
    border-radius: 6px;
    font-size: 8px;
    margin-left: 2px;
    font-weight: 500;
}

.tag-item.tag-sm.active .tag-count-sm {
    background: rgba(255,255,255,0.25);
}

.tags-cloud.tags-compact {
    line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trainers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stats-box {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Menu mobile - toggler visible dès 992px (navbar-expand-lg) */
    .main-nav .navbar {
        min-height: 50px;
        position: relative;
    }

    .main-nav .navbar-toggler {
        display: flex;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .main-nav .navbar-toggler-label {
        display: inline;
    }

    .main-nav .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        z-index: 1000;
        padding: 20px;
    }

    .main-nav .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav .nav-item {
        width: 100%;
    }

    .main-nav .nav-item::after {
        display: none;
    }

    .main-nav .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        height: auto;
    }

    .main-nav .nav-link::after {
        display: none;
    }

    /* Hero padding mobile */
    .hero-content {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    /* Header responsive */
    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .header-contact {
        text-align: center;
    }
    
    .header-logo {
        max-width: 180px;
    }
    
    /* Hero mobile */
    .hero-home {
        height: 400px;
    }
    
    .hero-punchline {
        font-size: 2rem !important;
    }
    
    .hero-banner {
        height: 300px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-banner h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .hero-banner p {
        font-size: 1.3rem;
    }
    
    /* Sections */
    .section {
        padding: 20px 0;
    }
    
    .section-title h2 {
        font-size: 4rem;
    }
    
    /* About */
    .about-approach-grid {
        grid-template-columns: 1fr;
    }
    
    .qualiopi-box {
        flex-direction: column;
        text-align: center;
    }
    
    .verbatim-text {
        font-size: 1.2rem;
    }
    
    .verbatim-quote::before {
        font-size: 80px;
        top: -20px;
    }
    
    /* Trainers */
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .trainers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .trainer-info {
        padding: 12px 10px;
    }
    
    .trainer-name {
        font-size: 0.9rem;
    }
    
    .trainer-short-desc {
        font-size: 11px;
    }
    
    .trainer-linkedin {
        font-size: 11px;
        gap: 5px;
        padding-top: 10px;
    }
    
    .trainer-linkedin i {
        font-size: 15px;
    }
    
    /* Expanded card mobile */
    .trainer-expanded-header {
        gap: 15px;
        padding: 20px 18px 0 18px;
    }
    
    .trainer-expanded-photo {
        width: 90px;
        height: 90px;
    }
    
    .trainer-placeholder-expanded {
        width: 90px;
        height: 90px;
    }

    .trainer-placeholder-expanded .trainer-initials {
        font-size: 1.8rem !important;
    }
    
    .trainer-expanded-identity .trainer-name {
        font-size: 1.1rem;
    }
    
    .trainer-expanded-title {
        font-size: 12.5px;
    }
    
    .trainer-expanded-bio {
        font-size: 13px;
        padding: 0 18px;
        line-height: 1.65;
    }
    
    .trainer-expanded-section {
        padding: 0 18px;
    }
    
    .trainer-expanded-section:last-child {
        padding-bottom: 18px;
    }
    
    .course-card-title-overlay {
        font-size: 1.3rem;
        width: 75%;
        height: 50px;
        padding: 0 10px;
    }
    
    .formation-detail-header h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .contact-box {
        padding: 25px 20px;
    }
    
    .contact-intro {
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    
    .stats-box {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===== TEXTE JUSTIFIÉ ===== */
p {
    text-align: justify;
}

.lead {
    font-size: 1.3rem !important;
}

/* Override pour éléments centrés */
.hero-banner p,
.text-center p,
.section-title p {
    text-align: center;
}

/* ===== FORMATION DETAIL HEADER ===== */
.formation-detail-header {
    padding: 40px 0 20px;
}

.formation-detail-header h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 15px;
}

.formation-detail-header .course-category {
    margin-bottom: 20px;
    padding: 3px 10px;
    font-size: 10px;
}

/* ===== ADMIN STYLES ===== */
.admin-header {
    background: var(--dark-bg) !important;
}

.admin-sidebar .nav-link {
    color: #333;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

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

.admin-content .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.admin-content .btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.admin-content .badge-primary {
    background: var(--primary-color) !important;
}

.admin-content .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.CTA-Formations{
    position: relative;
    margin-top:20px;
}

/* --- Recherche formations --- */
.formations-search-box {
    position: relative;
    max-width: 480px;
}
.formations-search-box .form-control {
    padding-left: 36px;
    padding-right: 36px;
    height: 40px;
    font-size: 13.5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.2s;
}
.formations-search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(216, 167, 0, 0.12);
}
.formations-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}
.formations-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    line-height: 1;
}
.formations-search-clear:hover {
    color: #333;
}