/* --- 1. VARIABLES ET BASE --- */
:root {
    --primary: #6699ff;
    --primary-hover: #3366ff;
    --dark-text: #0f172a;
    --body-text: #475569;
    --bg-site: #f8fafc;
    --card-bg: #ffffff;
    --success: #5d71e2;
}

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

html, body {
    scroll-behavior: auto !important;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'inter', 'Poppins', 'Open Sans', arial, sans-serif;
    background-color: var(--bg-site);
    color: var(--body-text);
    line-height: 1.5;
    padding-bottom: 60px;
}

.page-wrapper {
    flex: 1 0 auto;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    width: 100%;
}

/* --- 2. HEADER --- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area { display: flex; align-items: center; }

.site-logo {
    max-height: 45px;
    width: auto;
    display: block;
}

.menu-list { display: flex; gap: 15px; list-style: none; }

.menu-list a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.menu-list a.active { background-color: #f1f5f9; color: var(--primary); }

.menu-list a.btn-profil { color: #4b5563; font-weight: 700; }
.menu-list a.btn-profil:hover { background-color: #f5f3ff; color: #4b5563; }

/* --- 3. LAYOUT ET ADSENSE --- */
.header-section { text-align: center; margin-bottom: 30px; }
.header-section h1 { color: #0f172a; font-family: Poppins, marianne, arial, sans-serif; font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; margin-top: 10px; }
.header-section p { color: #64748b; font-size: 1.1rem; }

.adsense-horizontal {
    background-color: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    min-height: 90px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.main-layout-columns {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin-bottom: 40px;
}

.content-column-left { display: table-cell; width: 75%; padding-right: 40px; vertical-align: top; }
.sidebar-column-right { display: table-cell; width: 25%; vertical-align: top; }

.adsense-vertical-sticky { position: sticky; top: 90px; }
.adsense-vertical-box {
    background-color: #ffffff;
    border: 1px dashed #cbd5e1;
    height: 600px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* --- 4. COMPOSANTS (CARDS, QUIZ, RÉSULTATS) --- */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
	position: relative;
        overflow: hidden;
}
.card h3 { color: var(--dark-text); font-size: 1.2rem; font-weight: 700; margin: 25px 0 12px 0; }
.card h2 { color: var(--dark-text); font-size: 1.4rem; font-weight: 700; margin: 25px 0 12px 0; font-weight: bold;}
.card h2:first-of-type { margin-top: 0; }
.card p { margin-bottom: 10px; color: var(--body-text); font-size: 1rem; text-align: left !important; text-justify: inter-word !important; hyphens: auto;}
.card a { color: var(--dark-text); }

.option-btn {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 20px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.option-btn:hover { border-color: #4f46e5; background-color: #f5f3ff; color: #4f46e5; }
.options-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sector { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; margin-bottom: 15px; }
.sector h3 { color: #0f172a; margin-bottom: 10px; font-size: 1rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 5px; }
.btn-all-letters { background-color: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; padding: 10px 15px; border-radius: 6px; cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 600; margin-top: 15px; }

.job-link { color: #475569; text-decoration: none; font-weight: 500; transition: all 0.2s ease; border-bottom: 1px dashed transparent; }
.job-link:hover { color: #4f46e5; border-bottom-color: #4f46e5; padding-left: 4px; }

.tag.cliquable { background-color: #f1f5f9; border: 1px solid #cbd5e1; padding: 8px 16px; border-radius: 6px; font-weight: 700; cursor: pointer; display: inline-block; margin-right: 5px; }

/* --- 5. MODALE, LOADER ET FOOTER --- */
#loader { display: none; text-align: center; padding: 30px; }
.spinner { border: 4px solid rgba(0,0,0,0.1); width: 36px; height: 36px; border-radius: 50%; border-left-color: #4f46e5; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.6); align-items: center; justify-content: center; }
.modal-content { background-color: #ffffff; padding: 30px; border-radius: 12px; max-width: 500px; width: 90%; position: relative; }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #94a3b8; }
.modal-btn-close { background-color: #4f46e5; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; width: 100%; margin-top: 20px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.adsense-modal { background-color: #f8fafc; border: 1px dashed #cbd5e1; padding: 15px; text-align: center; margin: 15px 0; color: #94a3b8; font-size: 0.8rem; }

.site-footer { background-color: #ffffff !important; border-top: 1px solid #e2e8f0 !important; padding: 40px 20px !important; margin-top: 40px !important; width: 100% !important; display: block !important; clear: both !important; flex-shrink: 0; }
.footer-links-inline { list-style: none; padding: 0; margin: 0 auto 20px auto; display: flex; justify-content: center; gap: 15px 35px; flex-wrap: wrap; }
.footer-links-inline li a { color: #334155 !important; text-decoration: none !important; font-size: 0.9rem !important; font-weight: 600 !important; }
.footer li a { color: var(--body-text); text-decoration: none !important; }


   /* Styles pour le contenu interne des cartes de modules */
   	.module-card {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 14px;
    margin-bottom: 20px;
    
	}
    .module-badge {
        position: absolute;
        top: 0;
        left: 0;
        background-color: #5d71e2;
        color: #fff;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 4px 14px;
        border-bottom-right-radius: 12px;
        letter-spacing: 0.5px;
    }

    .module-title {
        color: var(--dark-text);
        font-size: 1.3rem;
        font-weight: 700;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .module-desc {
        color: #64748b;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .module-footer {
        display: flex;
        align-items: center;
		width: 100%;
		justify-content: flex-end;
	    border-top: 1px solid #f1f5f9;
        padding-top: 15px;
    }

    .btn-start a {
		color: #ffffff;
	}
		
    .btn-start {
        display: inline-block;
        background-color: var(--primary);
        color: #ffffff;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        padding: 8px 18px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }

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

.fil-ariane {
    text-align: left;
    padding: 10px 20px 20px 20px;   
	color: var(--body-text);
    border-bottom: 1px solid #eee; /* Optionnel : une ligne pour séparer visuellement */
    font-family: sans-serif;
  }
  
  .fil-ariane a {
	text-align: left !important;
    text-decoration: none;
	color: var(--body-text);
  }
  
  .fil-ariane a:hover {
    text-decoration: underline;
  }

  .fil-ariane .courant {
    color: #2c3e50;
    font-weight: bold;
  }
	.img-responsive {
	max-width: 100%;
	height: auto;
	display: block;   /* Important pour que margin fonctionne */
	margin: 0 auto;  /* Le "0" c'est pour le haut/bas, "auto" centre la gauche/droite */
	}
	.conseils-box {
		background-color: #f9f9f9;
		border-left: 4px solid #000091; /* Une petite touche de couleur bleue */
		padding: 20px;
		margin: 20px 0;
		border-radius: 5px;
		line-height: 1.6;
	}
	.conseils-box h3 {
		margin-top: 0;
		font-size: 1.2rem;
	}
.popup-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Fond légèrement plus clair pour ne pas trop masquer */
    z-index: 9999;
}

.popup-content {
    position: absolute;
    top: 50%;         /* Aligné verticalement au milieu */
    left: 20px;       /* Distance par rapport au bord gauche */
    transform: translateY(-50%); /* Ajustement pour un centrage vertical parfait */
    background: #ffffff;
    width: 350px;     /* Largeur standard pour un popup latéral */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    font-family: sans-serif;
}

.close-btn {
    position: absolute; 
    top: 10px; right: 15px; 
    cursor: pointer; 
    font-size: 24px;
    color: #999;
}
/* --- 6. RESPONSIVE --- */
@media (max-width: 992px) {
    .main-layout-columns, .content-column-left, .sidebar-column-right { display: block; width: 100%; padding-right: 0; }
    .sidebar-column-right { display: none !important; }
    .grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 12px; text-align: center; padding: 12px 10px; }
    .logo-area { justify-content: center; width: 100%; padding: 0 20px; }
    .site-logo { height: 45px !important; }
    .menu-list { flex-direction: column; gap: 8px; width: 100%; }
    .menu-list a { display: block; padding: 10px; background-color: #f8fafc; border: 1px solid #e2e8f0; }
}