body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #222;
}
nav {
    background: #ff6600;
    padding: 1.5em 0 0.5em 0;
    margin-top: 0;
}
.menu {
    display: flex;
    justify-content: center;
    gap: 2em;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.menu li {
    margin-left: 0 !important;
}
.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.5em 1em;
    border-radius: 4px;
    transition: background 0.2s;
}
.menu li a.active {
    background: #fff;
    color: #ff6600;
    box-shadow: 0 2px 8px rgba(255,102,0,0.08);
}
.menu li a:hover:not(.active) {
    background: #ff6600;
    color: #fff;
}
#dark-switch {
    font-size: 1.3em;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.2em 0.6em;
    transition: background 0.2s;
}
#dark-switch:hover {
    background: #fff;
    color: #ff6600;
    border-radius: 50%;
}
body.dark #dark-switch {
    color: #ff6600;
}
body.dark #dark-switch:hover {
    background: #ff6600;
    color: #fff;
}
main {
    max-width: 700px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2rem;
}
header {
    text-align: center;
}
header h1 {
    margin: 0.2em 0 0.1em 0;
    font-size: 2.5em;
}
header h2 {
    margin: 0 0 0.5em 0;
    font-weight: 400;
    font-size: 1.5em;
}
.location {
    font-size: 1em;
    color: #b0c4de;
}
section {
    margin-bottom: 2rem;
}
section h3 {
    color: #ff6600;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}
ul {
    list-style: none;
    padding: 0;
}
li {
    margin-bottom: 0.7em;
}
#projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}
.project {
    background: #f0f4fa;
    border-radius: 6px;
    padding: 1em 1.2em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: background 0.2s;
}
.project:hover {
    background: #ffe5d1;
}
.project-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.3em;
}
.project-desc {
    margin-bottom: 0.2em;
}
#project-detail {
    margin-top: 2em;
    background: #e9f5ff;
    border-radius: 6px;
    padding: 1.5em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
footer {
    text-align: center;
    color: #888;
    font-size: 0.9em;
    margin: 2rem 0 1rem 0;
}
a {
    color: #2d3e50;
    text-decoration: underline;
}
a:hover {
    color: #0077b6;
}
.profile-block {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 2em;
}
.profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-placeholder {
    color: #888;
    font-size: 0.9em;
}
.profile-infos h1 {
    margin: 0 0 0.2em 0;
    font-size: 2em;
}
.profile-infos h2 {
    margin: 0 0 0.5em 0;
    font-weight: 400;
    font-size: 1.2em;
}
.profile-infos .location, .profile-infos .email {
    margin: 0.2em 0;
}
.hobbies-block {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    margin: 1.5em 0 2em 0;
}
.hobby-item {
    display: flex;
    align-items: center;
    gap: 0.7em;
    background: #f0f4fa;
    border-radius: 20px;
    padding: 0.5em 1.2em;
    font-size: 1.05em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    color: #2d3e50;
}
.hobby-item .hobby-icon {
    font-size: 1.3em;
}
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-bottom: 2em;
    padding-left: 0;
    position: static;
}
.exp-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2em;
    background: #f0f4fa;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 1.2em 1.5em;
    position: static;
    min-height: 60px;
}
.exp-logo {
    min-width: 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    overflow: hidden;
    position: static;
    left: unset;
    top: unset;
    z-index: unset;
    border: none;
    outline: none;
    margin-right: 1em;
}
.exp-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
.exp-content {
    flex: 1;
}
.exp-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.2em;
}
.exp-company {
    color: #ff6600;
    font-weight: 500;
    margin-bottom: 0.2em;
}
.exp-dates, .exp-location, .exp-desc {
    display: block;
    margin-bottom: 0.2em;
    color: #555;
    font-size: 0.98em;
}
.exp-location a {
    color: #2d3e50;
    text-decoration: underline;
}
.exp-location a:hover {
    color: #ff6600;
}
.exp-roles {
    margin: 0.7em 0 0 0;
    padding: 0;
    list-style: none;
}
.exp-roles li {
    padding: 0.7em 0 0.7em 0;
    border-bottom: 2.5px solid #ff6600;
    margin: 0;
    background: none;
}
.exp-roles li:last-child {
    border-bottom: none;
}
/* Ajout pour parcours scolaire façon expérience pro */
.edu-list {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-bottom: 2em;
    padding-left: 0;
}
.edu-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2em;
    background: #f0f4fa;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 1.2em 1.5em;
    min-height: 60px;
}
.edu-logo {
    min-width: 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    overflow: hidden;
    border: none;
    outline: none;
    margin-right: 1em;
}
.edu-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
.edu-content {
    flex: 1;
}
.edu-dates {
    color: #555;
    font-size: 0.98em;
    margin-bottom: 0.2em;
}
.edu-location a {
    color: #2d3e50;
    text-decoration: underline;
}
.edu-location a:hover {
    color: #ff6600;
}
.edu-mention {
    color: #ff6600;
    font-weight: 500;
    margin-bottom: 0.2em;
}
.edu-desc {
    color: #555;
    font-size: 0.98em;
}
button, .project a {
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5em 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover, .project a:hover {
    background: #e65c00;
}
/* Compétences */
.skills-list {
    margin: 1.5em 0 2em 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.skill-item {
    display: flex;
    align-items: center;
    gap: 1em;
}
.skill-label {
    min-width: 110px;
    font-weight: 500;
}
.skill-bar-bg {
    flex: 1;
    background: #ffe5d1;
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
}
.skill-bar {
    height: 100%;
    background: #ff6600;
    border-radius: 8px;
    transition: width 0.7s;
}
/* Suppression du style témoignages (inutile) */
.testimonials-list, .testimonial-item, .testimonial-text, .testimonial-author, .testimonial-role {
    display: none !important;
}
/* Mode sombre */
body.dark {
    background: #181818;
    color: #f7f7f7;
}
body.dark main {
    background: #232323;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
body.dark .exp-item, body.dark .edu-item, body.dark .project, body.dark .testimonial-item {
    background: #232323;
    color: #f7f7f7;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
body.dark .skills-list .skill-bar-bg {
    background: #333;
}
body.dark .skills-list .skill-bar {
    background: #ff6600;
}
body.dark .testimonials-list .testimonial-item {
    background: #232323;
    border-left: 5px solid #ff6600;
}
body.dark .download-btn, body.dark .project a {
    background: #ff6600;
    color: #fff;
}
body.dark .download-btn:hover, body.dark .project a:hover {
    background: #e65c00;
}
body.dark nav {
    background: #232323;
}
body.dark .menu li a.active {
    background: #232323;
    color: #ff6600;
}
body.dark .menu li a:hover:not(.active) {
    background: #ff6600;
    color: #fff;
}
.mode-switch {
    margin: 2em 0 0 0;
    text-align: right;
}
.mode-switch label {
    cursor: pointer;
    font-weight: 500;
    color: #ff6600;
}
body.dark .mode-switch label {
    color: #fff;
}
/* Switch dark mode façon MUI */
.switch-dark {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-left: auto;
    padding: 0.2em 0.6em;
}
.switch-dark .switch-track {
    width: 38px;
    height: 20px;
    background: #fff;
    border-radius: 12px;
    position: relative;
    margin: 0 0.5em;
    transition: background 0.2s;
    border: 1.5px solid #ff6600;
}
.switch-dark .switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ff6600;
    border-radius: 50%;
    transition: left 0.2s, background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.switch-dark.dark .switch-track {
    background: #ff6600;
}
.switch-dark.dark .switch-thumb {
    left: 20px;
    background: #fff;
}
.switch-dark .switch-emoji {
    font-size: 1.1em;
    width: 1.5em;
    text-align: center;
}
/* Style impression/PDF épuré */
@media print {
    nav, .download-btn, .mode-switch, #dark-switch, .menu { display: none !important; }
    body, main {
        background: #fff !important;
        color: #222 !important;
        box-shadow: none !important;
    }
    .exp-item, .edu-item, .project, .skills-list, .hobbies-block {
        background: none !important;
        box-shadow: none !important;
        color: #222 !important;
    }
    .exp-logo, .edu-logo {
        background: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    .exp-roles li, .edu-list, .exp-list {
        border: none !important;
        background: none !important;
    }
    a, a:visited {
        color: #222 !important;
        text-decoration: underline;
    }
    h1, h2, h3 {
        color: #222 !important;
    }
    .skills-list .skill-bar-bg, .skills-list .skill-bar {
        background: #eee !important;
        color: #222 !important;
    }
    .profile-photo img {
        filter: grayscale(1);
    }
    .exp-company, .edu-mention {
        color: #222 !important;
    }
}
