:root {
    --primary-green: #10b981;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    min-height: 100vh;
}

/* Logo personnalisé */
.brand-logo {
    text-decoration: none;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;

    border-radius: 12px;
    background: #0f172a;
    border: 1px solid #34d399;

    font-size: 1rem;
    transition: all 0.25s ease;
}

.brand-first {
    font-weight: 600;
    color: white;
}

.brand-last {
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.5px;
}

.brand-bracket {
    color: #10b981;
    font-weight: 700;
}
.brand-badge:hover {
    background: #111827;
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.brand-badge:hover .brand-last {
    color: #34d399;
}

.brand-badge:hover .brand-bracket {
    color: #34d399;
}
.brand-badge {
    backdrop-filter: blur(6px);
}
/* Navbar */

.navbar-custom {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}
.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    transition: color 0.3s;
    margin: 0 10px;
}
.nav-link:hover {
    color: var(--primary-green) !important;
}
/* Hero Section */

.hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border: 3px solid #10b981;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    border-radius: 15px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-primary-custom {
    background-color: #4d9cff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary-custom:hover {
    background-color: #3388ff;
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background: transparent;
    color: white;
    border: 2px solid #475569;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-secondary-custom:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: #1e293b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #334155;
}

.social-links a:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
    transform: translateY(-3px);
}

/* Section Styles */

.section-bg {
    background: rgba(15, 23, 42, 0.5);
}
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

/* Compétences */

.skills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.skill-category {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
    min-height: 230px;

    transition: all 0.2s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
    border-color: #10b981;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #10b981;
    position: relative;
    padding-bottom: 8px;
}

.skill-category h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    margin: 8px auto 0;
    border-radius: 3px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.skill-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/*portfolio*/

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-card .p-3 {
    flex-grow: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}
.project-card:hover img {
    transform: scale(1.05);
}
.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.seo-text {
    max-width: 800px;
    margin: 60px auto 0 auto;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}
/* Education Section */
.education {
    padding: 80px 20px;
}

.education h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
}

.education-list {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #10b981;
}

.education-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: white;
}

.education-item p {
    color: #cbd5e1;
    font-size: 16px;
}

.education-year {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 8px;
}
/*about*/

.about-section {
    max-width: 900px;
    margin: auto;
}

.about-profile {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.about-photo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #10b981;
}

.about-role {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-meta {
    list-style: none;
    padding: 0;
    color: #cbd5e1;
}

.about-meta li {
    margin-bottom: 6px;
}

.about-section h2 {
    color: #10b981;
    margin-top: 35px;
    margin-bottom: 10px;
}

.about-tech {
    list-style: none;
    padding: 0;
}

.about-tech li {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.about-tech-list li:hover {
    border-color: #10b981;
    transform: translateX(3px);
    transition: 0.2s;
}

/*contact*/

.contact-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}
.text-muted {
    color: #cbd5e1 !important;
}
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: #94a3b8;
}

/* ---------- ADMIN DASHBOARD STYLE ---------- */

/* Barre latérale */
.sidebar {
    min-height: 100vh;
    background: #0d6efd;
    color: #d1e0ff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.sidebar a {
    color: #d1e0ff;
    text-decoration: none;
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.sidebar hr {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Texte secondaire */
.small-muted {
    color: #0d6efd;
    font-size: 0.85rem;
}

/* Cartes statistiques */
.card {
    background: #f2f6ff;
    border: 1px solid #d6e4ff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.05);
    color: #1e293b;
}

/* Titre des sections */
.card h5,
.card h6 {
    color: #0d6efd;
    font-weight: 600;
}

.dashboard-section h5 {
    color: #0d6efd;
    font-weight: 600;
}

/* Tableaux */
.table th,
.table td {
    vertical-align: middle !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

/*---------------------- TABLEAU ADMIN EDUCATION ---------------------- */

/* Conteneur */
.container-fluid {
    background: #1a3b70;
}

/* Titre principal */
h2.m-0 {
    color: #4d9cff;
    font-weight: 700;
}

/* Tableau */
.table {
    color: #e2e8f0;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table thead th {
    background: #0d6efd;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--primary-green);
}

.table tbody tr {
    transition: background 0.2s ease-in-out;
}

.table tbody tr:hover {
    background: rgba(16, 185, 129, 0.1);
}

.table td {
    border-color: var(--border-color);
    vertical-align: middle;
}

/* Alertes */
.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    color: #ffc107;
}

/* ---------------------- BOUTONS ---------------------- */

/* Bouton "Ajouter un diplôme" */
.btn-success {
    background: var(--primary-green);
    border: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Bouton Modifier */
.btn-outline-warning {
    border: 1px solid #fbbf24;
    color: #fbbf24;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-outline-warning:hover {
    background: #fbbf24;
    color: #1e293b;
}

/* Bouton Supprimer */
.btn-outline-danger {
    border: 1px solid #ef4444;
    color: #ef4444;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-outline-danger:hover {
    background: #ef4444;
    color: #fff;
}

/*footer*/
.footer {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-name {
    color: #cbd5f5;
    font-weight: 500;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

.footer-links a {
    font-size: 1.6rem;
    color: #94a3b8;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: #10b981;
    transform: translateY(-2px);
}
