/* =================================================================
   NOUVELLE PALETTE DE COULEURS ET STYLES JOBKORA
   ================================================================= */
:root {
  /* Couleurs inspirées de la Côte d'Ivoire */
  --primary: #FF7A00;      /* Orange vibrant */
  --secondary: #00B050;    /* Vert nature */
  --accent: #FFD700;       /* Or précieux */

  /* Couleurs neutres */
  --dark: #1A1A1A;
  --light: #F8F9FA;

  /* Couleurs fonctionnelles */
  --info-blue: #0D6EFD;

  /* Ombres & Effets */
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(255,122,0,0.3);

  /* Typographie */
  --font-primary: 'Inter', 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', sans-serif; /* Police pour les titres et boutons */
}

/* =================================================================
   STYLES GLOBAUX
   ================================================================= */
body {
    font-family: var(--font-primary);
    background-color: var(--light);
    color: var(--dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Amélioration des styles pour les coins arrondis */
.btn, .card, .form-control, .alert, .modal-content, .list-group-item, .nav-pills .nav-link, .dropdown-menu {
    border-radius: 0.375rem !important;
}

/* =================================================================
   NOUVEAU HEADER & HERO SECTION
   ================================================================= */

/* Barre de contact supérieure */
.top-bar {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    background-color: var(--dark) !important;
}
.top-bar-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}
.top-bar-link:hover {
    color: #ffffff;
}
.top-bar .social-icons i {
    font-size: 1.1rem;
}

/* Barre de navigation principale */
.navbar {
    transition: padding 0.3s ease;
}
.navbar .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #555;
    margin: 0 0.8rem;
    position: relative;
    transition: color 0.3s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--primary);
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after {
    width: 100%;
}

/* Boutons de la Nav */
.navbar .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.5rem 1.5rem;
}
.navbar .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
}
.navbar .btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Section Héro */
.hero-section {
    background: linear-gradient(rgba(13, 47, 107, 0.7), rgba(13, 47, 107, 0.7)), url('/assets/images/hero-background.jpg');
    background-size: cover;
    background-position: center center;
    padding: 120px 0;
    color: #ffffff;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.25rem;
    margin: 1.5rem auto;
    max-width: 600px;
    opacity: 0.9;
}
.hero-cta-buttons .btn {
    margin: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.hero-cta-buttons .btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.hero-cta-buttons .btn-light:hover {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

/* Ajustements pour le layout */
.main-content {
    padding-top: 0;
}
body > .main-content.container {
    max-width: 100%;
    padding: 0;
}
.main-content > section > .container {
    max-width: 1140px;
    padding: 0 15px;
}

/* =================================================================
   MISES À JOUR DES COMPOSANTS EXISTANTS
   ================================================================= */

/* Boutons utilisant les nouvelles couleurs */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
}
.btn-primary:hover {
    opacity: 0.9;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}
.btn-secondary:hover {
    opacity: 0.9;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-success {
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.btn-success:hover {
    opacity: 0.9;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }

/* Effets de survol sur les cartes */
.job-card,
.candidate-card,
.agent-card,
.hover-lift,
.candidate-card-admin,
.client-card,
.candidate-portfolio-card,
.application-card,
.job-card-my-offers {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.job-card:hover,
.candidate-card:hover,
.agent-card:hover,
.hover-lift:hover,
.candidate-card-admin:hover,
.client-card:hover,
.candidate-portfolio-card:hover,
.application-card:hover,
.job-card-my-offers:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
}

/* Autres styles */
.feature-icon-small {
    width: 3rem;
    height: 3rem;
}

.footer a:hover {
    text-decoration: underline !important;
}

h2.fw-bold {
    color: var(--dark);
}

.badge.bg-success {
    font-size: 0.8em;
    vertical-align: middle;
}

.audio-recorder-container audio {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}





/* ==================================================================
   STYLES POUR LE NOUVEAU FOOTER
   ================================================================== */

.main-footer {
    background-color: var(--dark);
    color: #aab1b7;
}

.footer-widget-title {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary); /* La couleur orange */
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-contact a {
    color: #aab1b7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--primary); /* La couleur orange au survol */
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    margin-top: 5px;
    color: var(--primary);
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.copyright-area {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #aab1b7;
}






/* ==================================================================
   STYLES POUR LES NOUVELLES SECTIONS (ACCUEIL)
   ================================================================== */

/* Titres de section unifiés */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Section : Trois Solutions */
.solutions-section {
    background-color: #FFFFFF;
}
.solution-card {
    background: #FFFFFF;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.solution-icon {
    font-size: 2.5rem;
    color: var(--info-blue);
    margin-bottom: 1rem;
}
.solution-title {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}
.solution-text {
    color: #6c757d;
}

/* Section : Comment ça marche ? */
.step-item {
    transition: transform 0.3s ease;
}
.step-item:hover {
    transform: scale(1.05);
}
.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #E7F0FE; /* Bleu très clair */
    color: var(--info-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.1);
}
.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Section : Compteur de Statistiques */
.stats-counter-section {
    background: linear-gradient(rgba(13, 47, 107, 0.8), rgba(13, 47, 107, 0.8)), url('/assets/images/hero-background.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: #fff;
}
.counter-box i {
    font-size: 3rem;
    color: var(--primary);
}
.counter-box h3.counter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}
.counter-box p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Section : Pourquoi nous choisir ? */
.why-us-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}
.why-us-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.why-us-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background-color: var(--icon-bg);
    color: var(--icon-color);
}
.why-us-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}





/* ==================================================================
   STYLES POUR LA NEWSLETTER DU FOOTER
   ================================================================== */
.newsletter-form {
    position: relative;
    max-width: 100%;
}
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.8rem 3.5rem 0.8rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-primary);
}
.newsletter-form input[type="email"]::placeholder {
    color: #aab1b7;
}
.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.5);
}
.newsletter-form button {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.newsletter-form button:hover {
    background-color: #fff;
    color: var(--primary);
}


/* ==================================================================
   HEADER FINAL - PRO, ALIGNÉ & RESPONSIVE
   ================================================================== */

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}
.navbar-nav .nav-link i {
    margin-right: 0.4rem;
    font-size: 1.1em;
}

/* Style pour les icônes seules (notif, message) */
.nav-link.nav-icon {
    font-size: 1.4rem;
    line-height: 1;
}
.nav-link.nav-icon i {
    margin-right: 0;
}
.nav-link.nav-icon .notification-badge {
    position: absolute;
    top: 5px;
    right: 0px;
    font-size: 0.6em;
    padding: 0.3em 0.5em;
    font-weight: bold;
    border: 1.5px solid #fff;
}

/* Groupe d'actions utilisateur (icônes + menu) */
.user-actions-group {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Espace entre les icônes et le bouton */
}

/* Nouveau style pour le bouton du menu utilisateur */
.btn.user-menu-button {
    background-color: #f1f3f5;
    border: 1px solid #dee2e6;
    color: var(--dark);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}
.btn.user-menu-button:hover, .btn.user-menu-button.show {
    background-color: #e9ecef;
    border-color: #ced4da;
    box-shadow: none;
}
.btn.user-menu-button i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}
/* Chevron du bouton */
.btn.user-menu-button::after {
    margin-left: 0.5rem;
}

/* =======================================
   MEDIA QUERIES POUR LA RESPONSIVITÉ
   ======================================= */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        margin-top: 0.5rem;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 0; /* Espacement vertical pour le menu mobile */
    }
    /* Aligner le groupe d'actions sur mobile */
    .user-actions-group {
        flex-direction: row;
        flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si besoin */
        gap: 1rem;
        margin-top: 0.5rem;
    }
}



/* ANIMATION D'ÉCRITURE POUR LE TITRE HERO */
.hero-title .cursor {
    display: inline-block;
    background-color: var(--primary);
    margin-left: 0.1rem;
    width: 4px;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { background-color: transparent; }
    50% { background-color: var(--primary); }
}




/* ANIMATION POUR LES BOUTONS HERO */
.hero-cta-buttons .btn {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}
.hero-cta-buttons .btn:nth-child(1) { animation-delay: 0.8s; }
.hero-cta-buttons .btn:nth-child(2) { animation-delay: 1s; }
.hero-cta-buttons .btn:nth-child(3) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}




/* =================================================================
   AMÉLIORATIONS POUR LA PAGE DE RECHERCHE D'OFFRES
   ================================================================= */

/* Section Hero de recherche */
.search-hero {
    background: linear-gradient(rgba(13, 47, 107, 0.85), rgba(13, 47, 107, 0.85)), url('../images/hero-background.jpg'); /* Assurez-vous d'avoir cette image */
    background-size: cover;
    background-position: center;
}
.search-hero .input-group-text {
    background-color: transparent;
    border: none;
    color: #6c757d;
}
.search-hero .form-control-lg, .search-hero .form-select-lg {
    padding-left: 0;
}
.search-hero .form-control-lg:focus, .search-hero .form-select-lg:focus {
    box-shadow: none;
}

/* Conteneur de la liste des offres avec spinner */
#jobs-list-container {
    min-height: 300px; /* Hauteur minimale pour que le spinner soit visible */
}
.loading-spinner {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none; /* Caché par défaut */
}
#jobs-list-container.loading .loading-spinner {
    display: block;
}
#jobs-list-container.loading #jobs-grid {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Carte d'offre améliorée */
.job-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}
.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
.job-card .company-logo-wrapper {
    flex-shrink: 0;
}
.job-card .company-logo-default {
    width: 50px;
    height: 50px;
    background-color: #f1f3f5;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #adb5bd;
}
.job-card .company-name {
    font-weight: 600;
    color: #343a40;
}
.job-card .job-title {
    font-weight: 700;
    color: var(--primary); /* Utilise votre couleur primaire */
}
.job-card .job-description-truncate {
    font-size: 0.9rem;
    color: #6c757d;
    min-height: 60px; /* Assure une hauteur minimale pour l'alignement */
}
.job-card .job-tags .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.7em;
}
.job-card .stretched-link::after {
    border-radius: 0.375rem; /* Assure que le lien étiré a les mêmes coins arrondis */
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}







/* =================================================================
   AMÉLIORATIONS POUR LA PAGE DE DÉTAIL D'OFFRE (SHOW)
   ================================================================= */

.job-show-page .job-header-bar {
    background-color: #f8f9fa; /* Fond légèrement gris pour l'en-tête */
}

.job-show-page .job-title-main {
    font-weight: 700;
    color: var(--primary); /* Utilise votre couleur orange */
}

.job-show-page .job-meta-info i {
    color: var(--secondary); /* Utilise votre couleur verte */
}

.job-show-page .section-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-light, #ffe8d1); /* Souligné subtil */
    display: inline-block;
}

.job-show-page .description-text {
    line-height: 1.8;
    color: #495057;
}

.job-show-page .skills-tags .skill-badge {
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.9rem;
    padding: 0.5em 1em;
    margin: 0.25rem;
    border: 1px solid #dee2e6;
    border-radius: 20px;
}

/* Carte latérale de résumé */
.job-summary-card {
    top: 100px; /* Pour l'effet sticky, s'arrête sous le menu */
    background: #fff;
    border: 1px solid #e9ecef;
}

.job-summary-card .job-summary-list li {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f5;
}
.job-summary-card .job-summary-list li:last-child {
    border-bottom: none;
}

.job-summary-card .job-summary-list i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.job-summary-card .job-summary-list div {
    display: flex;
    flex-direction: column;
}

.job-summary-card .job-summary-list strong {
    font-weight: 600;
    font-size: 0.9rem;
    color: #6c757d;
}

.job-summary-card .job-summary-list span {
    font-size: 1rem;
    color: #212529;
}

/* Boîte de présentation audio */
.audio-presentation-box {
    background-color: var(--primary-light, #fff3e6);
    border-left: 5px solid var(--primary);
}
.audio-presentation-box h4 {
    color: var(--dark);
}






/* =================================================================
   AMÉLIORATIONS POUR ANNUAIRES (AGENTS & CANDIDATS)
   ================================================================= */

/* Carte de profil unifiée */
.profile-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
.profile-card .profile-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.profile-card .profile-name {
    font-weight: 700;
    color: var(--primary);
}
.profile-card .profile-location {
    font-size: 0.9rem;
}
.profile-card .profile-contact-person {
    min-height: 20px; /* Pour éviter les sauts de layout si le nom du contact est absent */
}
.profile-card .profile-tags .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.7em;
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* Conteneur pour le chargement AJAX */
#agents-list-container, #candidates-list-container {
    min-height: 300px;
}
#agents-list-container.loading #agents-grid,
#candidates-list-container.loading #candidates-grid {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}
#agents-list-container.loading .loading-spinner,
#candidates-list-container.loading .loading-spinner {
    display: block;
}






/* =================================================================
   AMÉLIORATIONS POUR LES PAGES DE PROFIL PUBLIC
   ================================================================= */

.profile-page-container .profile-header {
    background-color: #f8f9fa;
    padding: 3rem 0;
    border-bottom: 1px solid #dee2e6;
}

.profile-page-container .profile-main-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.profile-page-container .profile-name-main {
    font-weight: 700;
    font-size: 2.5rem;
}

.profile-page-container .profile-contact-person-main {
    font-size: 1.2rem;
}

.profile-page-container .verification-badge {
    font-size: 1rem;
    padding: 0.5em 1em;
}

.profile-page-container .profile-social-links .social-icon {
    font-size: 1.75rem;
    margin-right: 1rem;
    color: #6c757d;
    transition: color 0.2s ease-in-out;
}

.profile-page-container .profile-social-links .social-icon:hover {
    color: var(--primary);
}

.profile-page-container .profile-section .section-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-light, #ffe8d1);
    display: inline-block;
}

.profile-page-container .profile-section-content {
    line-height: 1.8;
    color: #495057;
}

/* Carte de contact latérale */
.contact-card {
    top: 100px; /* Pour l'effet sticky */
    border: 1px solid #e9ecef;
}

.contact-card .contact-list li {
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.contact-card .contact-list i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.2rem;
    width: 25px;
}




/* =================================================================
   COMPLÉMENTS POUR PROFIL PUBLIC CANDIDAT (TIMELINE)
   ================================================================= */

.timeline {
    position: relative;
    padding-left: 3rem;
    border-left: 3px solid #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 40px;
    height: 40px;
    margin-left: -18.5px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 3px solid #f8f9fa;
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}
.timeline-content p {
    margin-bottom: 0;
}



/* =================================================================
   CORRECTION POUR LES COMPÉTENCES SUR PROFIL CANDIDAT
   ================================================================= */

.profile-page-container .skills-tags .skill-badge {
    background-color: #e9ecef; /* Un fond gris clair */
    color: #495057;           /* Un texte gris foncé pour un bon contraste */
    font-size: 0.9rem;
    padding: 0.5em 1em;
    margin: 0.25rem;
    border: 1px solid #dee2e6;
    border-radius: 20px;
}



/* =================================================================
   STYLE POUR LA CARTE GOOGLE MAPS (PAGE CONTACT)
   ================================================================= */

.map-container {
    overflow: hidden;
    border-radius: 0.75rem; /* Bords arrondis comme le reste du site */
    border: 1px solid #dee2e6;
}

.map-container iframe {
    border: 0; /* On retire la bordure par défaut de l'iframe */
    display: block; /* Évite un petit espace blanc en dessous */
}





/* =================================================================
   AMÉLIORATIONS RESPONSIVE POUR LA SECTION HÉRO (MOBILE)
   ================================================================= */

/* Pour les écrans de taille tablette (largeur maximale de 992px) */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 80px 0; /* Réduire la hauteur de la section */
    }

    .hero-title {
        font-size: 2.8rem; /* Réduire la taille du titre principal */
    }

    .hero-subtitle {
        font-size: 1.1rem; /* Réduire la taille du sous-titre */
    }
}

/* Pour les écrans de taille mobile (largeur maximale de 768px) */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0; /* Réduire encore plus la hauteur */
    }

    .hero-title {
        font-size: 2.2rem; /* Titre encore plus petit et lisible */
        line-height: 1.2;  /* Améliorer l'espacement entre les lignes */
    }

    .hero-subtitle {
        font-size: 1rem; /* Sous-titre adapté au mobile */
        margin: 1rem auto;
    }

    .hero-cta-buttons .btn {
        /* Rendre les boutons plus petits et les empiler verticalement */
        display: block;
        width: 80%;
        max-width: 300px; /* Largeur maximale pour ne pas être trop étiré */
        margin-left: auto;
        margin-right: auto;
        padding: 0.7rem 1rem; /* Réduire la taille interne du bouton */
        font-size: 0.9rem;    /* Réduire la taille du texte du bouton */
    }
}