@charset "UTF-8";

/* ==========================================================
   NAVBAR
   Les couleurs passent par les variables Bootstrap
   (--bs-navbar-*) : pas besoin de !important.
========================================================== */

.navbar {
    --bs-navbar-color: var(--text-color);
    --bs-navbar-hover-color: var(--primary-color);
    --bs-navbar-active-color: var(--primary-color);
    --bs-navbar-brand-color: var(--title-color);
    --bs-navbar-brand-hover-color: var(--primary-color);
    --bs-navbar-toggler-border-color: var(--border-color);
    --bs-navbar-nav-link-padding-x: .75rem;

    padding: 16px 0;
    background: var(--navbar-bg);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: padding .3s ease, background-color .3s ease,
        border-color .3s ease, box-shadow .3s ease;
}

.navbar-scrolled {
    padding: 10px 0;
    background: var(--navbar-bg-scrolled);
    border-bottom-color: var(--border-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .05);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.navbar-toggler {
    border-radius: 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--primary-light);
}

.navbar-nav {
    gap: 4px;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar .nav-link {
    position: relative;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color .25s ease, background-color .25s ease;
}

.navbar .nav-link:hover {
    background: var(--primary-light);
}

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

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 55%;
}

/* Bouton clair / sombre : l'icône affichée dépend du thème (CSS pur) */
.theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--surface-color);
    color: var(--title-color);
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-primary);
}

.theme-icon-light { display: none; }

[data-bs-theme="dark"] .theme-icon-light { display: inline-block; }
[data-bs-theme="dark"] .theme-icon-dark  { display: none; }

/* ==========================================================
   CARTES — base commune
========================================================== */

.about-card,
.skill-card,
.skill-category,
.project-card,
.experience-card,
.language-card,
.certification-card,
.contact-card,
.info-card,
.interest-card,
.timeline-content,
.download-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.skill-card,
.skill-category,
.project-card,
.experience-card,
.language-card,
.certification-card,
.contact-card,
.info-card,
.interest-card {
    height: 100%;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* Effet de survol uniquement sur les appareils avec souris */
@media (hover: hover) {
    .skill-card:hover,
    .skill-category:hover,
    .project-card:hover,
    .experience-card:hover,
    .language-card:hover,
    .certification-card:hover,
    .contact-card:hover,
    .info-card:hover,
    .interest-card:hover {
        transform: translateY(-6px);
        border-color: var(--primary-color);
        box-shadow: var(--shadow-hover);
    }

    .skill-card:hover .icon-circle,
    .contact-card:hover .icon-circle,
    .certification-card:hover .icon-circle,
    .interest-card:hover .icon-circle {
        background: var(--primary-color);
        color: var(--on-primary);
    }
}

.skill-card,
.skill-category,
.experience-card,
.language-card {
    padding: 30px;
}

.language-card {
    text-align: center;
}

.info-card,
.interest-card {
    padding: 28px 20px;
    text-align: center;
}

.certification-card,
.contact-card {
    padding: 34px 28px;
    text-align: center;
}

.contact-card {
    display: block;
    color: inherit;
}

.contact-card:hover {
    color: inherit;
}

.contact-card p {
    margin: 0;
    overflow-wrap: anywhere;
}

.skill-card h3,
.skill-category h3 {
    margin-bottom: 14px;
}

.skill-card p {
    margin-bottom: 0;
}

.about-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 45px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* Petit titre d'une carte info / contact / intérêt */
.card-label {
    margin-bottom: 8px;
    color: var(--title-color);
    font-size: 1rem;
    font-weight: 700;
}

.info-card p,
.language-card p {
    margin: 0;
}

/* ==========================================================
   ICÔNES
========================================================== */

.icon-circle {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: background-color .3s ease, color .3s ease;
}

.icon-circle-lg {
    width: 72px;
    height: 72px;
    font-size: 1.9rem;
}

/* ==========================================================
   PROJETS
========================================================== */

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--background-color);
    color: var(--text-light);
    font-size: 2.5rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

@media (hover: hover) {
    .project-card:hover .project-image img {
        transform: scale(1.05);
    }
}

.project-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.project-content p {
    flex: 1;
}

.project-content .btn {
    align-self: flex-start;
}

/* ==========================================================
   BADGES & TAGS
========================================================== */

.skill-list,
.tag-list,
.interest-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.skill-list,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge,
.tag-list li {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: .9rem;
    font-weight: 500;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.skill-badge:hover,
.tag-list li:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-primary);
}

.tag-list {
    margin-top: 20px;
}

.language-level,
.certification-year {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: .85rem;
    font-weight: 600;
}

.language-card h3 {
    margin-bottom: 12px;
}

/* ==========================================================
   TIMELINE
   Toute la géométrie vient de 3 variables : si tu changes
   la largeur du trait ou la taille du point, tout reste
   aligné.
========================================================== */

.timeline {
    --tl-pad: 48px;       /* espace réservé à gauche */
    --tl-line-x: 16px;    /* position du centre du trait */
    --tl-dot: 22px;       /* diamètre du point */

    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: var(--tl-pad);
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--tl-line-x) - 1.5px);
    width: 3px;
    border-radius: 10px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    z-index: 2;
    top: 32px;
    left: calc(var(--tl-line-x) - var(--tl-dot) / 2 - var(--tl-pad));
    width: var(--tl-dot);
    height: var(--tl-dot);
    border: 4px solid var(--section-bg);
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    transition: transform .3s ease;
}

.timeline-content {
    padding: 28px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

@media (hover: hover) {
    .timeline-item:hover .timeline-content {
        transform: translateY(-5px);
        border-color: var(--primary-color);
        box-shadow: var(--shadow-hover);
    }

    .timeline-item:hover .timeline-dot {
        transform: scale(1.15);
    }
}

.timeline-date {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: .85rem;
    font-weight: 600;
}

.timeline-content h3,
.experience-header h3 {
    margin-bottom: 4px;
}

.timeline-org,
.experience-company {
    margin-bottom: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   EXPÉRIENCES
========================================================== */

.experience-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.experience-company {
    margin-bottom: 0;
}

.experience-period {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

/* ==========================================================
   CENTRES D'INTÉRÊT
========================================================== */

.interest-card .icon-circle {
    margin-bottom: 12px;
}

.interest-card h3 {
    margin: 0;
    font-size: 1rem;
}

/* ==========================================================
   TÉLÉCHARGEMENT
========================================================== */

.download-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 64px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--surface-color), var(--background-color));
}

.download-card p {
    margin-bottom: 32px;
}
