/*
   ========================================
   SkillMatch - style.css (FINAL AVEC NOUVEAUX FORMULAIRES & DYNAMIQUES)
   ========================================
*/

/* --- Variables et Style Global --- */
:root {
    --blue: #2563EB;
    --blue-light: #dbeafe;
    --white: #FFFFFF;
    --gray-light: #F3F4F6;
    --gray-med: #9CA3AF;
    --gray-dark: #1F2937; /* Titres et texte principal */
    --green: #22C55E;
    --red: #DC2626;
    --orange: #F97316;
    --text-color: #374151; /* Paragraphes */
    --blue-dark: #1e40af; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    /* --- NOUVEAU : Ajout pour le Sticky Footer --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--blue);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Accessibilité au clavier --- */
:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 90%;
    /* MODIFIÉ : 1100px -> 1400px pour plus de largeur */
    max-width: 1400px; 
    margin: 0 auto;
}

/* --- Styles des Pages (pour la navigation SPA) --- */
.page {
    display: none; /* Caché par défaut */
    animation: fadeIn 0.5s ease-in-out;
}
.page.active {
    display: block; /* Visible si 'active' */
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NOUVEAU : Règle pour que le main s'étire --- */
#main-content {
    flex-grow: 1;
}

/* --- Boutons CTA --- */
.cta {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--blue);
    color: var(--white);
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--blue);
    transition: all 0.3s ease;
    cursor: pointer;
}
.cta:hover {
    background-color: #1D4ED8;
}

/* NOUVEAU : Style pour le bouton désactivé */
.cta:disabled {
    background-color: var(--gray-med);
    border-color: var(--gray-med);
    cursor: not-allowed;
}


.cta-secondary {
    display: inline-block;
    padding: 10px 26px;
    background-color: var(--white);
    color: var(--blue);
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--blue);
    transition: all 0.3s ease;
    cursor: pointer;
}
.cta-secondary:hover {
    background-color: var(--blue-light);
}

/* Style pour les CTA de petite taille (dans le menu ou dashboard) */
.cta-small {
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
}
.cta-full {
    width: 100%;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


/* --- Header / Navigation --- */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    /* MODIFIÉ : 1100px -> 1400px pour plus de largeur */
    max-width: 1400px; 
    margin: 0 auto;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-dark);
}
.logo span {
    color: var(--blue);
}

.nav-menu {
    list-style: none;
    display: none; /* Caché sur mobile */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 73px; /* Hauteur du header */
    left: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 1rem;
}

/* Règle pour MASQUER les boutons Dashboard par défaut */
#dashboard-entreprise-item, #dashboard-candidat-item {
    display: none; 
}


.nav-menu.active {
    display: flex; /* Affiché au clic */
}

.nav-item {
    text-align: center;
    border-top: 1px solid var(--gray-light);
}

.nav-link {
    display: block;
    padding: 1.2rem 1rem;
    font-weight: 500;
    color: var(--gray-dark); 
    transition: color 0.3s ease;
    cursor: pointer;
}
.nav-link:hover, .nav-link.active {
    color: var(--blue);
}

/* Style spécifique pour les boutons CTA dans le menu mobile */
@media (max-width: 767px) {
    .nav-item .cta, .nav-item .cta-secondary {
        margin: 10px auto;
        padding: 8px 15px;
        width: 80%;
        display: block;
    }
}


.hamburger {
    display: block; 
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-dark);
    border: none;
    background: none;
}

/* ========================================
   NOUVEAU DESIGN PAGE D'ACCUEIL (basé sur la capture)
   ======================================== */

.hero-improved {
    padding: 0; 
    overflow: hidden;
}
.hero-visual-container {
    background: var(--gray-dark); 
    position: relative;
    padding: 5rem 0 2rem 0; 
    text-align: center;
}
.hero-text {
    position: relative;
    z-index: 10;
}
.hero-title {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    font-weight: 700;
    color: var(--white); /* Titre en blanc */
}
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--blue-light); /* Sous-titre plus clair */
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

.cta-large {
    padding: 15px 40px !important;
    font-size: 1.2rem !important;
}

.hero-illustration {
    display: none; /* Caché par défaut sur mobile */
}

/* 2. Section Comment ça Marche (Cartes) */
.how-it-works {
    background-color: var(--white); 
    padding: 4rem 0;
}
.steps-improved {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.step-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.step-card .icon {
    font-size: 3.5rem; 
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Sections 'Pour qui' et 'CTA Final' */
.for-who, .final-cta {
    padding: 4rem 0;
}
.final-cta {
    background-color: var(--gray-dark);
    color: var(--white);
    text-align: center; /* Centre le texte */
}
.final-cta h2 {
    color: var(--white);
    margin-bottom: 1.5rem; /* Espace sous le titre */
}

.for-who h3 {
    color: var(--blue);
}
.for-who p {
    color: var(--text-color);
}


/* --- Le reste des styles de pages est conservé... --- */


/* --- Pages de contenu / Formulaires --- */
.page-candidats, .page-a-propos, .page-contact, .page-entreprises, .dashboard-page, .demande-alternant-page {
    padding: 3rem 0;
}
.page-candidats h1, .page-a-propos h1, .page-contact h1, .page-entreprises h1, .demande-alternant-page h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.login-page {
    padding: 5rem 0;
    min-height: 70vh;
    background-color: var(--gray-light);
}
.login-form {
    max-width: 400px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: center;
}
/* 🔑 Le reste des styles de formulaire est conservé... */
.profile-form, .form-full-width { 
    max-width: 700px; 
    margin: 0 auto; 
    background: var(--white); 
    padding: 2rem; 
    border-radius: 12px; 
    border: 1px solid #E5E7EB; 
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="tel"], .form-group input[type="date"], .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #D1D5DB; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 1rem; }
/* NOUVEAU : Style pour le textarea */
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}
.form-group input[type="file"] { font-size: 0.9rem; }
.form-group-inline { display: flex; flex-direction: column; gap: 1rem; }
/* NOUVEAU : Styles pour les fieldsets */
.form-fieldset {
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-fieldset legend {
    font-weight: 600;
    color: var(--gray-dark);
    padding: 0 0.5rem;
    margin-left: 0.5rem;
}
/* NOUVEAU : Style pour les titres dynamiques */
.dynamic-heading {
    font-size: 1.1rem;
    color: var(--blue-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--blue-light);
}

.premium-option { background: var(--blue-light); border: 1px solid var(--blue); padding: 1rem; border-radius: 8px; margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.premium-option label { font-weight: 500; }
.form-submit-btn { width: 100%; font-size: 1.1rem; margin-top: 1rem; }
.login-form h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.login-subtext { margin-top: 1.5rem; font-size: 0.9rem; color: var(--gray-med); }

/* NOUVEAU : Styles pour la page de choix de connexion */
.login-choice-container .cta-full {
    margin-top: 1.25rem;
    font-size: 1.1rem;
}

/* NOUVEAU : Correction pour le texte centré sur les pages "À propos" et "Contact" */
.page-a-propos p,
.page-contact p {
    font-size: 1.1rem;
    line-height: 1.7;
}


/* --- Styles Recherche Candidats --- */
.search-container { max-width: 800px; margin: 0 auto 2.5rem auto; }
.search-bar { display: flex; border: 1px solid #D1D5DB; border-radius: 8px; overflow: hidden; }
.search-bar input { flex: 1; padding: 14px; border: none; font-size: 1rem; outline: none; }
.search-bar button { padding: 0 1.5rem; border: none; background: var(--blue); color: white; font-size: 1.25rem; cursor: pointer; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.filters select, .filters input[type="text"] { padding: 8px 12px; border: 1px solid #D1D5DB; border-radius: 8px; background: var(--gray-light); cursor: pointer; }
.results-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
.no-results-message { text-align: center; margin-top: 4rem; padding: 2rem; background-color: var(--gray-light); border-radius: 12px; }
.no-results-message h3 { color: var(--gray-dark); }
.no-results-message p { color: var(--gray-med); margin-top: 0.5rem; }
.profile-card { border: 1px solid #E5E7EB; border-radius: 12px; background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.03); display: flex; flex-direction: column; overflow: hidden; animation: zoomIn 0.3s ease-out; }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.profile-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.profile-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.profile-card-avatar { width: 60px; height: 60px; border-radius: 50%; background-color: var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--gray-med); overflow: hidden; }
.profile-card-avatar i { line-height: 0; }
.profile-card-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* S'assure que l'image remplit le cercle */
}
.profile-card-info h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.profile-card-info p { color: var(--gray-med); font-size: 0.9rem; }
.profile-card .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.profile-card .tag { background: var(--blue-light); color: var(--blue); font-size: 0.8rem; font-weight: 500; padding: 4px 10px; border-radius: 16px; }
.profile-card-availability { font-size: 0.9rem; color: var(--gray-med); margin-bottom: 1.5rem; flex-grow: 1; }
.profile-card-actions { display: flex; gap: 0.75rem; margin-top: auto; }
.profile-card-actions .cta, .profile-card-actions .cta-secondary { flex: 1; padding: 10px; font-size: 0.9rem; }


/* --- Styles Dashboard (Amélioration) --- */
.dashboard-page h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.dashboard-subtitle { font-size: 1.1rem; color: var(--gray-med); margin-bottom: 3rem; }
.dashboard-grid { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 0; } /* Changement marge */
.dashboard-card { background: var(--white); padding: 2rem; border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); }
.dashboard-card h3 { font-size: 1.25rem; color: var(--gray-dark); margin-bottom: 1.5rem; border-bottom: 1px solid var(--gray-light); padding-bottom: 0.5rem; }
.card-stats .stat-main-text { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.stat-detail { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 1rem; }
.icon-detail { font-size: 1.5rem; color: var(--green); }
.stat-number { font-weight: 700; font-size: 1.2rem; margin-right: 5px; }
.stat-blue { color: var(--blue); }
.stat-red { color: var(--red); }
.stat-green { color: var(--green); }
.stat-orange { color: var(--orange); }
.card-actions { display: flex; flex-direction: column; justify-content: space-between; }


/* Styles du Tableau de bord */
h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.table-container { overflow-x: auto; }
.dashboard-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; background: var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); border-radius: 8px; overflow: hidden; }
.dashboard-table th, .dashboard-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #E5E7EB; }
.dashboard-table th { background-color: var(--gray-light); color: var(--gray-dark); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; }

/* Couleurs des statuts */
.status-attente { color: var(--orange); font-weight: bold; }
.status-accepte { color: var(--green); font-weight: bold; }
.status-refuse { color: var(--red); font-weight: bold; }
.status-publie { color: var(--green); font-weight: bold; }
.status-contacte, .status-contact-achete {
    background-color: var(--blue-light); 
    color: var(--blue-dark); 
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}


/* --- Styles Messagerie Candidat --- */
.message-inbox { display: flex; flex-direction: column; gap: 10px; }
.message-card { background-color: var(--white); padding: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); border-left: 5px solid var(--gray-light); cursor: pointer; transition: all 0.2s ease; }
.message-card:hover { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.message-card.unread { background-color: #f7f9ff; border-left-color: var(--blue); font-weight: 600; }
.message-header { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--gray-med); margin-bottom: 5px; }
.message-subject { font-size: 1.1rem; color: var(--gray-dark); }
.message-body { margin-top: 10px; border-top: 1px solid var(--gray-light); padding-top: 10px; color: var(--text-color); }
.message-body p { margin-bottom: 10px; }


/* --- Style de confirmation (Toast) --- */
.toast-success {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
    pointer-events: none;
}
.toast-success.show {
    opacity: 1;
    bottom: 40px;
}


/* --- NOUVEAU : Styles pour la Modale de Profil --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Changé par JS */
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Permet de scroller si le contenu est trop grand */
    padding: 2rem 0; /* Ajoute de l'espace pour scroller */
}
.modal-overlay.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 700px; /* Élargi pour le nouveau contenu */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    margin: auto; /* Centre la modale verticalement lors du scroll */
}
.modal-overlay.show .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gray-med);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: var(--gray-dark);
}

.profile-modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
/* NOUVEAU : Style pour l'image dans la modale */
.profile-modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-modal-info h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}
.profile-modal-info p {
    font-size: 1.1rem;
    color: var(--gray-med);
    margin: 0;
    text-align: left; /* Correction alignement */
}
.profile-modal-info .profile-modal-email {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}

.profile-modal-body > h4 { /* Cible les titres H4 directs */
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
/* NOUVEAU STYLE : Pour le paragraphe de recherche */
.profile-modal-recherche {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--blue);
    text-align: left; /* Correction alignement */
}
.profile-modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.detail-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-med);
    margin-bottom: 0.25rem;
}
.detail-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* NOUVEAU : Styles pour la chronologie */
.profile-modal-section {
    margin-top: 1.5rem;
}
.profile-modal-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--blue-dark);
}
.timeline-item {
    display: flex;
    gap: 1.5rem; 
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}
.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.timeline-year {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-med);
    flex-basis: 120px; 
    flex-shrink: 0;
}
.timeline-details strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-dark);
}
.timeline-details p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    text-align: left; /* Correction alignement */
}


/* NOUVEAU : Styles pour la Modale de Messagerie */
#message-modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}
.message-modal-history {
    background: var(--gray-light);
    border-radius: 8px;
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.message-bubble {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.5;
}
.message-bubble.from-them {
    background: var(--white);
    border: 1px solid #E5E7EB;
    align-self: flex-start;
}
.message-bubble.from-me {
    background: var(--blue-light);
    color: var(--blue-dark);
    align-self: flex-end;
}
/* NOUVEAU : Style pour le message système */
.message-bubble-system {
    font-size: 0.9rem;
    color: var(--gray-med);
    text-align: center;
    width: 100%;
}
.message-reply-form {
    display: flex;
    flex-direction: column; 
    gap: 0.75rem;
}
.message-reply-form input[type="text"] {
    padding: 10px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}
.message-reply-form textarea {
    flex-grow: 1;
    height: 80px; 
    padding: 10px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    resize: none;
}
.message-reply-form button {
    flex-shrink: 0;
}


/* --- AMÉLIORATION VISUELLE PAGE CONTACT --- */

.contact-page {
    background-color: #f7f9fd; 
    padding: 4rem 0;
}
.contact-page .form-container {
    background-color: var(--white);
    border: 1px solid var(--blue-light);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.contact-page .form-fieldset {
    border: 1px solid #d1d5db; 
}
.contact-page legend {
    color: var(--blue-dark);
}
/* FIN AMÉLIORATION VISUELLE PAGE CONTACT */


/* --- STYLES POUR LA SUPPRESSION DE COMPTE --- */
.cta-danger {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.cta-danger:hover {
    background-color: #b91c1c; 
    border-color: #b91c1c;
}

.delete-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
    padding-top: 1.5rem;
}

.delete-account-link {
    color: var(--gray-med);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1.5rem;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}
.delete-account-link:hover {
    color: var(--red);
    text-decoration: underline;
}
/* --- FIN DES STYLES DE SUPPRESSION --- */


/* ========================================
   BLOC FOOTER MODIFIÉ (Comme demandé)
   ========================================
*/
.footer {
    background: var(--gray-dark);
    color: var(--gray-med);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem; 
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem; 
}

.footer-links a {
    color: var(--gray-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem; 
    transition: color 0.3s ease;
}

/* CORRECTION ALIGNEMENT CONTACT */
.footer-links a.nav-link {
    display: inline-block; 
    padding: 0.5rem; 
    color: var(--gray-light); 
    font-weight: 500; 
}

.footer-links a:hover,
.footer-links a.nav-link:hover {
    color: var(--white); 
    text-decoration: underline;
}

.socials a {
    font-size: 1.75rem; 
    color: var(--gray-light);
    transition: color 0.3s ease, transform 0.3s ease;
}

.socials a:hover {
    color: var(--white);
    transform: scale(1.1); 
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--gray-med);
    margin-top: 1rem;
}

/* Responsive Footer */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-copy {
        margin-top: 0;
        order: 1; 
    }
    .footer-links {
        order: 2; 
    }
    .socials {
        order: 3; 
    }
}

/* ========================================
   AJOUT POUR LES CARTES DASHBOARD PLEINE LARGEUR
   ========================================
*/

/* Ce wrapper ajoute un espace vertical entre les cartes */
.dashboard-card-fullwidth {
    margin-top: 2rem;
}

/* Annule la marge par défaut du tableau quand il est dans une carte */
.dashboard-card .table-container {
    margin-top: 0;
}

/* Style le message "Vous n'avez encore..." à l'intérieur de la carte */
.dashboard-card .table-container p {
    font-size: 1rem;
    color: var(--gray-med);
    margin-top: 0.5rem;
}


/* ========================================
   MEDIA QUERIES (Responsive)
   ========================================
*/

/* --- Tablette (min-width: 768px) --- */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background: none;
        border-bottom: none;
        padding-bottom: 0;
    }
    .nav-item {
        border-top: none;
    }
    .nav-link {
        padding: 0.5rem 1.5rem;
    }
    
    .nav-item .cta, .nav-item .cta-secondary {
        margin-left: 10px;
        padding: 8px 15px;
        display: inline-block !important; 
        width: auto !important;
    }

    .hero-visual-container {
        padding: 5rem 0 8rem 0; 
        display: flex;
        align-items: center;
        text-align: left;
        background: var(--gray-dark); 
    }
    .hero-text {
        text-align: left;
        width: 55%; 
        margin: 0; 
        padding-left: 5%; 
    }
    .hero-title {
        font-size: 4rem; 
        margin-left: 0;
    }
    .hero-illustration {
        display: block; 
        position: absolute;
        right: 0;
        top: 0; 
        width: 45%; 
        height: 100%; 
        background-color: var(--blue);
        clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    .steps-improved {
        flex-direction: row;
        justify-content: space-between;
    }
    .step-card {
        flex: 1;
    }
    .audience-wrapper {
        display: flex; 
        flex-direction: row;
        gap: 2rem; 
    }
    .audience {
        flex: 1; 
        text-align: left; 
    }

    .form-group-inline {
        flex-direction: row;
    }
    .form-group-inline .form-group {
        flex: 1;
    }
    
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-grid {
        flex-direction: row;
    }
    .dashboard-card {
        flex: 1;
    }
}

/* --- Desktop (min-width: 1024px) --- */
@media (min-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    #dashboard-entreprise-item, #dashboard-candidat-item {
        order: 99; 
        margin-left: auto; 
    }
    
    #dashboard-admin-item {
        order: 100;
        margin-left: 10px;
    }
}

/* Responsive Table (Dashboard) */
@media (max-width: 600px) {
    .dashboard-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .dashboard-table, .dashboard-table thead, .dashboard-table tbody, .dashboard-table th, .dashboard-table td, .dashboard-table tr { 
		display: block; 
	}
	.dashboard-table thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	.dashboard-table td { 
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
	}
	
	.dashboard-table td:before { 
		position: absolute;
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
		content: attr(data-label);
		font-weight: bold;
	}
}


/* --- NOUVEAU : Styles Améliorés pour la Page À Propos --- */

.page-a-propos {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative; 
}

.about-title {
    font-size: 2.8rem !important; 
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 3.5rem !important;
    text-align: center;
}

.mission-statement {
    max-width: 850px;
    margin: 0 auto 4rem auto;
    text-align: center;
    padding: 2.5rem;
    background: var(--blue-light);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}
.mission-statement h2 {
    color: var(--blue-dark);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.mission-statement p {
    font-size: 1.15rem;
    line-height: 1.8;
}
.mission-icon {
    font-size: 3rem;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}
.about-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.about-card h3 {
    font-size: 1.5rem;
    color: var(--gray-dark);
    border-bottom: 2px solid var(--blue);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.about-card h3 i {
    color: var(--blue);
    font-size: 1.5rem;
    margin-right: 10px;
}
.about-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}
.about-card li {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.about-card li::before {
    content: "•";
    color: var(--green);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Styles pour les chiffres clés */
.key-figures h2 {
    text-align: center;
    color: var(--gray-dark);
    font-size: 2rem;
    margin-bottom: 3rem;
}
.figures-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}
.figure-item {
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 12px;
    filter: blur(8px); /* Applique un flou de 8px */
    transition: filter 0.3s ease;
    user-select: none;
    pointer-events: none;
}
/* Fin du floutage des cartes */

.figure-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.figure-item p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    font-weight: 500;
}

/* --- MEDIA QUERIES pour Desktop --- */
@media (min-width: 768px) {
    .about-grid {
        flex-direction: row;
    }
    .about-card {
        flex: 1;
    }
    .figures-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur desktop */
        max-width: 1000px;
        margin: 0 auto;
    }
}
/*
   ========================================
   CORRECTIF TAILLE BOUTON "DEMANDE"
   ========================================
*/

.demande-alternant-cta {
    /* Définit une largeur maximale pour le conteneur du bouton */
    max-width: 450px; 
    
    /* Centre le conteneur (et donc le bouton) sur la page */
    margin-left: auto;
    margin-right: auto;
}