/* ===== Variables & Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&display=swap');

:root {
    --background-color: #f8fafc;
    --background-color-inverted: #25282f;
    --text-color: #25282f;
    --text-color-inverted: #ffffff;
    --secondary-color: #25282f;
    --menu-background-color: #0c8a65CC;
    --menu-background-dark: #0c9a71CC;
    --primary-color: #0c8a65;
    --primary-color-dark: #7ef5d2;
    --secondary-background-color: #ffffff;
    --card-background: rgba(255, 255, 255, 0.7);
    --card-border: rgba(55, 239, 186, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 60px rgba(55, 239, 186, 0.15);
}

.dark-mode {
    --background-color: #0f1117;
    --background-color-inverted: #f8fafc;
    --text-color: #e2e8f0;
    --text-color-inverted: #25282f;
    --secondary-background-color: #1a1d25;
    --primary-color: #37EFBA;
    --menu-background-color: #37EFBACC;
    --primary-color-dark: #0c9a71;
    --card-background: rgba(26, 29, 37, 0.8);
    --card-border: rgba(55, 239, 186, 0.1);
    --glass-bg: rgba(15, 17, 23, 0.7);
    --glass-border: rgba(55, 239, 186, 0.1);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(55, 239, 186, 0.1);
}

/* Lien d'évitement (accessibilité clavier) : caché hors focus, visible au focus.
   La règle vit aussi dans styles.css ; recopiée ici car la page CV ne charge
   pas styles.css (sinon le lien « Aller au contenu » s'affiche en permanence). */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 0.75rem 1.25rem;
    background: var(--accent-color, #37EFBA);
    color: var(--accent-text, #0c8a65);
    font-weight: 600;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
    outline: 2px solid var(--accent-text, #0c8a65);
    outline-offset: -4px;
}

/* ===== Reset & Base ===== */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Lexend', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Header / Hero ===== */
header {
    position: relative;
    background: linear-gradient(135deg, #0f1117 0%, #1a1d25 40%, #162520 70%, #0f1117 100%);
    color: #ffffff;
    padding: 80px 20px 60px;
    text-align: center;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grille en arrière-plan */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(55, 239, 186, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 239, 186, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    will-change: transform;
    transform: translateZ(0);
}

/* Orbe lumineux */
header::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 239, 186, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    transform: translateZ(0);
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(55, 239, 186, 0.5);
    box-shadow: 0 0 30px rgba(55, 239, 186, 0.2);
    transition: transform 0.4s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-title {
    margin: 20px 0 8px;
    font-size: 2.8em;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.profile-subtitle {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
}

.profile-subtitle span {
    background: linear-gradient(90deg, #37EFBA, #00d4aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

/* ===== Contact Links ===== */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    background: rgba(55, 239, 186, 0.15);
    border-color: rgba(55, 239, 186, 0.4);
    color: var(--primary-color);
}

.social-link i {
    font-size: 1.1em;
}

/* ===== Container ===== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 30px 0;
}

/* ===== Sections ===== */
section {
    margin-bottom: 24px;
    padding: 30px 32px;
    background: var(--secondary-background-color);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: left;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(55, 239, 186, 0.25);
}

/* ===== Section Titles ===== */
.title-section {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
    padding-top: 5px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    position: relative;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--card-border);
}

.title-section i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.title-section .title-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--text-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* ===== Résumé ===== */
#resume p:not(.title-section) {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}

/* ===== Skills ===== */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-border);
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 16px;
    background: rgba(55, 239, 186, 0.04);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.skill-item:hover {
    border-color: rgba(55, 239, 186, 0.2);
    transform: translateX(4px);
}

.skill-item span:first-child {
    font-size: 0.9rem;
    font-weight: 400;
}

.star-rating {
    color: var(--primary-color);
    font-size: 18px;
    letter-spacing: 2px;
}

/* ===== Formations ===== */
.formation-item {
    padding: 20px 24px;
    margin-bottom: 16px;
    background: var(--secondary-background-color);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.formation-item:hover {
    border-color: rgba(55, 239, 186, 0.25);
    box-shadow: var(--shadow-hover);
}

.formation-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.formation-diploma {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--text-color) 0%, var(--primary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.formation-diploma i {
    font-size: 0.95rem;
    -webkit-text-fill-color: var(--primary-color);
    color: var(--primary-color);
    flex-shrink: 0;
}

.formation-school {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.75;
    padding: 4px 14px;
    background: rgba(55, 239, 186, 0.06);
    border: 1px solid rgba(55, 239, 186, 0.12);
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.formation-school:hover {
    background: rgba(55, 239, 186, 0.12);
    border-color: rgba(55, 239, 186, 0.3);
    opacity: 1;
    color: var(--primary-color);
}

.formation-school i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.formation-school .fa-external-link-alt {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.formation-school:hover .fa-external-link-alt {
    opacity: 1;
}

.formation-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 10px;
    font-style: italic;
}

/* ===== Centres d'intérêt ===== */
#interets ul {
    list-style: none;
    padding: 0;
}

#interets ul li {
    position: relative;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(55, 239, 186, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

#interets ul li::before {
    display: none;
}

#interets ul li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

#interets ul li:hover {
    border-color: rgba(55, 239, 186, 0.3);
    transform: translateX(4px);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(55, 239, 186, 0.1) 100%);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 36px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--background-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 12px rgba(55, 239, 186, 0.2);
    z-index: 2;
    transition: background 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--primary-color);
}

.timeline-content {
    padding: 24px;
    background: var(--secondary-background-color);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(55, 239, 186, 0.3);
}

/* ===== Experience Header ===== */
.experience-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.experience-role {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--text-color) 0%, var(--primary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience-role i {
    font-size: 1rem;
    -webkit-text-fill-color: var(--primary-color);
    color: var(--primary-color);
    flex-shrink: 0;
}

.experience-separator {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.5;
    user-select: none;
}

.experience-company {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.75;
    padding: 4px 14px;
    background: rgba(55, 239, 186, 0.06);
    border: 1px solid rgba(55, 239, 186, 0.12);
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.experience-company:hover {
    background: rgba(55, 239, 186, 0.12);
    border-color: rgba(55, 239, 186, 0.3);
    opacity: 1;
    color: var(--primary-color);
}

.experience-company i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.experience-company .fa-external-link-alt {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.experience-company:hover .fa-external-link-alt {
    opacity: 1;
}

/* ===== Experience Meta (date, durée, lieu) ===== */
.experience-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0 16px;
}

.experience-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-color);
    padding: 6px 14px;
    background: rgba(55, 239, 186, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.experience-date i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.experience-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 4px 12px;
    background: rgba(55, 239, 186, 0.1);
    border: 1px solid rgba(55, 239, 186, 0.2);
    border-radius: 50px;
}

.experience-duration i {
    font-size: 0.72rem;
}

.experience-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.7;
    padding: 6px 14px;
    background: rgba(55, 239, 186, 0.03);
    border-radius: 8px;
}

.experience-location i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ===== Collapsible Experiences ===== */
.experience-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.timeline-content.expanded .experience-collapsible {
    max-height: 5000px;
    transition: max-height 0.6s ease-in;
}

.experience-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    cursor: pointer;
    background: rgba(55, 239, 186, 0.08);
    border: 1px solid rgba(55, 239, 186, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
    user-select: none;
}

.experience-toggle:hover {
    background: rgba(55, 239, 186, 0.15);
    border-color: rgba(55, 239, 186, 0.3);
}

.experience-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    pointer-events: none;
}

.timeline-content.expanded .experience-toggle i {
    transform: rotate(180deg);
}

/* ===== Experience Summary ===== */
.experience-summary {
    font-style: italic;
    margin-bottom: 12px;
    color: var(--text-color);
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Lists ===== */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 6px;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== Chips ===== */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip {
    background: rgba(55, 239, 186, 0.1);
    color: var(--text-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid rgba(55, 239, 186, 0.15);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
    background: rgba(55, 239, 186, 0.2);
    border-color: var(--primary-color);
}



/* ===== Company Block (multi-missions) ===== */

/* Dot légèrement plus grand pour le bloc multi-missions */
.timeline-item-multi::before {
    width: 22px;
    height: 22px;
    left: -41px;
    top: 26px;
}

/* Carte englobante du bloc multi-missions */
.company-block {
    padding: 0;
    overflow: hidden;
    border-left: 3px solid rgba(55, 239, 186, 0.35);
}

/* Bandeau entreprise */
.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px 18px;
    background: linear-gradient(135deg, rgba(55, 239, 186, 0.08) 0%, transparent 60%);
    border-bottom: 1px solid var(--card-border);
}

.company-header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--text-color) 0%, var(--primary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.company-name i {
    -webkit-text-fill-color: var(--primary-color);
    color: var(--primary-color);
    flex-shrink: 0;
}

.company-name .fa-external-link-alt {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.company-name:hover .fa-external-link-alt {
    opacity: 1;
}

.company-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Badge "N postes" */
.company-positions-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 6px 8px;
    height: auto;
    background: rgba(55, 239, 186, 0.08);
    border: 1.5px solid rgba(55, 239, 186, 0.2);
    border-radius: 10px;
    font-size: 0.65rem;
    color: var(--primary-color);
    font-weight: 600;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.company-positions-badge:hover {
    background: rgba(55, 239, 186, 0.14);
    border-color: rgba(55, 239, 186, 0.4);
}

.company-positions-badge span {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

/* Zone des missions — grid partagé pour aligner les colonnes entre toutes les lignes */
.company-missions {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0 24px 16px;
}

/* Chaque mission est transparente dans la grille : ses enfants participent directement */
.mission-item {
    display: contents;
}

/* Colonne gauche : titre du rôle */
.mission-header-left {
    padding: 16px 16px 14px 0;
    min-width: 0;
}

/* Séparateur entre missions */
.mission-item:not(:first-child) .mission-header-left,
.mission-item:not(:first-child) .mission-header-meta {
    border-top: 1px solid var(--card-border);
}

/* Taille du titre légèrement réduite dans le contexte mission */
.mission-role {
    font-size: 1.1rem !important;
}

/* Colonne droite : date + durée + toggle — toujours au même x */
.mission-header-meta {
    padding: 16px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Contenu dépliable — s'étend sur les 2 colonnes */
.company-missions .experience-collapsible {
    grid-column: 1 / -1;
    padding-bottom: 0;
}

/* Collapsible pour les missions */
.mission-item.expanded .experience-collapsible {
    max-height: 5000px;
    transition: max-height 0.6s ease-in;
    padding-bottom: 16px;
}

.mission-item.expanded .experience-toggle i {
    transform: rotate(180deg);
}

/* ===== Menu hamburger (mobile uniquement) ===== */
.floating-menu-button {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), #0c9a71);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(55, 239, 186, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.floating-menu-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(55, 239, 186, 0.5);
}

.floating-menu-options {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;
}

.floating-menu-options a {
    position: absolute;
    width: 38px;
    height: 38px;
    background: var(--background-color-inverted);
    color: var(--text-color-inverted);
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 14px;
}

.floating-menu-options a:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.15);
}

@media (max-width: 480px) {
    .floating-menu-button { display: flex; }
}

/* ===== Side Nav Glassmorphisme ===== */
.side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.side-nav-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 18px 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.dark-mode .side-nav-pill {
    background: rgba(15,17,23,0.45);
    border-color: rgba(55,239,186,0.12);
}

.side-nav-icon-active {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(55,239,186,0.35);
    flex-shrink: 0;
}

.side-nav-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.side-nav-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(55,239,186,0.25);
    border: 2px solid rgba(55,239,186,0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
    text-decoration: none;
}

.side-nav-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.3);
}

.side-nav-dot:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Tooltip */
.side-nav-dot::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--background-color-inverted);
    color: var(--text-color-inverted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

.side-nav-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Masqué sur mobile */
@media (max-width: 480px) {
    .side-nav { display: none; }
}

/* ===== Toggle Container ===== */
.toggle-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
}

/* ===== Links ===== */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: 1fr;
    }

    .app-showcase {
        grid-template-columns: 1fr;
    }

    .star-rating {
        font-size: 14px;
    }

    .experience-role {
        font-size: 1.15rem;
    }

    .experience-separator {
        font-size: 1rem;
    }

    .title-section {
        font-size: 1.3rem;
    }

    .timeline-item::before {
        top: 30px;
    }

    .profile-title {
        font-size: 2.2em;
    }

    .profile-subtitle {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    header {
        padding: 60px 16px 40px;
        min-height: 400px;
    }

    .profile-title {
        font-size: 1.8em;
    }

    .profile-subtitle {
        font-size: 1em;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .contact-info {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-link {
        padding: 8px 14px;
        font-size: 0.85em;
    }

    section {
        padding: 20px;
        border-radius: 16px;
    }

    .container {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item::before {
        display: none;
    }

    section {
        margin-bottom: 12px;
        padding: 16px;
    }

    .container {
        width: 95%;
        padding: 16px 0;
    }

    .title-section {
        font-size: 1.1rem;
    }

    .timeline-content {
        padding: 16px;
    }

    .experience-role {
        font-size: 1.05rem;
        gap: 8px;
    }

    .experience-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .experience-meta .experience-date,
    .experience-meta .experience-duration {
        flex: 1 1 100%;
    }

    .experience-meta .experience-location {
        flex: 1;
    }

    /* Bloc entreprise multi-postes */
    .company-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px;
    }

    .company-header-left {
        flex: 1;
        min-width: 0;
    }

    .company-header-meta {
        flex-wrap: wrap;
    }

    .company-positions-badge {
        min-width: 50px;
        height: auto;
        padding: 5px 7px;
    }

    .company-positions-badge span {
        font-size: 1.1rem;
    }

    .company-missions {
        display: block;
        padding: 0 16px 14px;
    }

    .mission-item {
        display: block;
        padding: 12px 0 8px;
        border-top: 1px solid var(--card-border);
    }

    .mission-item:first-child {
        border-top: none;
        padding-top: 8px;
    }

    .mission-item:not(:first-child) .mission-header-left,
    .mission-item:not(:first-child) .mission-header-meta {
        border-top: none;
    }

    .mission-header-left {
        padding: 0 0 6px 0;
    }

    .mission-header-meta {
        flex-wrap: wrap;
        white-space: normal;
        padding: 0 0 8px 0;
        gap: 6px;
    }

    .experience-collapsible {
        grid-column: unset;
    }

    .formation-item {
        padding: 16px;
    }

    .formation-diploma {
        font-size: 1rem;
        gap: 8px;
    }

    .app-card {
        padding: 20px;
    }
}

/* ===== Print Styles ===== */
@media print {
    @page {
        size: A4;
        margin: 15mm 15mm 5mm 15mm;
    }

    /* Forcer le mode clair */
    :root,
    .dark-mode {
        --background-color: #ffffff;
        --text-color: #25282f;
        --primary-color: #0c8a65;
        --secondary-background-color: #ffffff;
        --card-border: rgba(12, 138, 101, 0.2);
    }

    body {
        background: white !important;
        color: #25282f !important;
        font-size: 11pt;
        line-height: 1.5;
        overflow: visible !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding-bottom: 0;
    }

    /* Masquer les éléments interactifs */
    .side-nav,
    .floating-menu-button,
    .floating-menu-options,
    .toggle-container,
    .cv-lang-selector,
    #cv-to-export,
    .print-hide {
        display: none !important;
    }

    /* Header : suppression du fond sombre */
    header {
        background: white !important;
        color: #25282f !important;
        padding: 10mm 0 8mm;
        min-height: auto;
        border-bottom: 2px solid #0c8a65;
    }

    header::before,
    header::after {
        display: none !important;
    }

    .profile-img {
        width: 100px;
        height: 100px;
        border: 2px solid #0c8a65;
        box-shadow: none;
    }

    .profile-title {
        color: #25282f !important;
        font-size: 2em;
        margin: 10px 0 5px;
    }

    .profile-subtitle {
        color: #555 !important;
        font-size: 1em;
        margin-bottom: 10px;
    }

    .profile-subtitle span {
        background: none !important;
        -webkit-text-fill-color: #0c8a65 !important;
        color: #0c8a65 !important;
    }

    /* Contact : style plat pour impression */
    .contact-info {
        gap: 12px;
        margin-top: 10px;
    }

    .social-link {
        background: none !important;
        border: none !important;
        color: #25282f !important;
        padding: 4px 8px;
        font-size: 0.85em;
    }

    .social-link i {
        color: #0c8a65 !important;
    }

    /* Afficher le texte complet des contacts en print */
    .social-link .screen-text {
        display: none !important;
    }

    .social-link .print-text {
        display: inline !important;
    }

    /* Container */
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    /* Sections : rendu plat */
    section {
        background: white !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 8mm 0 10mm 0;
        margin-bottom: 0;
        page-break-inside: avoid;
    }

    section:hover {
        box-shadow: none !important;
        border-color: transparent !important;
    }

    /* Titres de section */
    .title-section {
        color: #0c8a65 !important;
        border-bottom: 2px solid #0c8a65 !important;
        padding-bottom: 6px;
        margin-bottom: 12px;
        font-size: 1.3rem;
    }

    .title-section i {
        color: #0c8a65 !important;
    }

    .title-section .title-text {
        background: none !important;
        -webkit-text-fill-color: #0c8a65 !important;
        color: #0c8a65 !important;
    }

    /* Forcer la visibilité des éléments animés */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Skills */
    .skills-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px;
    }

    .skill-item {
        background: rgba(12, 138, 101, 0.06) !important;
        border: none !important;
        padding: 6px 12px;
        margin-bottom: 4px;
        border-radius: 6px;
        justify-content: space-between;
        text-align: left;
    }

    .star-rating {
        color: #0c8a65 !important;
        font-size: 14px;
    }

    .skill-category h3 {
        color: #0c8a65 !important;
    }

    /* Formations */
    .formation-item {
        padding: 10px 14px;
        margin-bottom: 6px;
        background: white !important;
        border: 1px solid rgba(12, 138, 101, 0.15) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
    }

    .formation-item:hover {
        box-shadow: none !important;
    }

    .formation-header {
        margin-bottom: 2px;
        gap: 6px;
    }

    .formation-diploma {
        background: none !important;
        -webkit-text-fill-color: #0c8a65 !important;
        color: #0c8a65 !important;
        font-size: 0.9rem;
    }

    .formation-diploma i {
        -webkit-text-fill-color: #0c8a65 !important;
        color: #0c8a65 !important;
        font-size: 0.75rem;
    }

    .formation-school {
        font-size: 0.75rem;
        padding: 2px 8px;
        background: rgba(12, 138, 101, 0.08) !important;
        border: none !important;
        opacity: 1 !important;
    }

    .formation-school i {
        color: #0c8a65 !important;
        font-size: 0.65rem;
    }

    .formation-description {
        font-size: 0.75rem;
        margin-top: 4px;
        line-height: 1.4;
    }

    /* Centres d'intérêt */
    #interets ul li {
        background: rgba(12, 138, 101, 0.06) !important;
        border: none !important;
        padding: 10px 15px;
        margin-bottom: 6px;
    }

    #interets ul li i {
        color: #0c8a65 !important;
    }

    /* Timeline : masquer la ligne et les points */
    .timeline {
        padding-left: 0 !important;
    }

    .timeline::before {
        display: none !important;
    }

    .timeline-item {
        margin-bottom: 8mm;
        page-break-inside: avoid;
    }

    .timeline-item::before {
        display: none !important;
    }

    .timeline-content {
        padding: 12px;
        background: white !important;
        border: 1px solid rgba(12, 138, 101, 0.2) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
    }

    .timeline-content:hover {
        box-shadow: none !important;
    }

    /* Titres d'expérience */
    .experience-role {
        background: none !important;
        -webkit-text-fill-color: #0c8a65 !important;
        color: #0c8a65 !important;
        font-size: 1.05rem;
        margin-bottom: 2px;
    }

    .experience-role i {
        -webkit-text-fill-color: #0c8a65 !important;
        color: #0c8a65 !important;
        font-size: 0.85rem;
    }

    .experience-header {
        margin-bottom: 4px;
    }

    .experience-separator {
        font-size: 0.9rem;
        color: #0c8a65 !important;
    }

    .experience-company {
        font-size: 0.8rem;
        padding: 2px 8px;
        background: rgba(12, 138, 101, 0.08) !important;
        border: none !important;
        opacity: 1 !important;
    }

    .experience-company i {
        color: #0c8a65 !important;
        font-size: 0.7rem;
    }

    .experience-meta {
        margin: 6px 0 10px;
        gap: 6px;
    }

    .experience-date {
        font-size: 0.75rem;
        padding: 3px 8px;
        background: rgba(12, 138, 101, 0.05) !important;
        border-left: 2px solid #0c8a65;
    }

    .experience-date i {
        color: #0c8a65 !important;
        font-size: 0.7rem;
    }

    .experience-duration {
        font-size: 0.68rem;
        padding: 2px 8px;
        background: rgba(12, 138, 101, 0.1) !important;
        border: none !important;
        color: #0c8a65 !important;
    }

    .experience-duration i {
        font-size: 0.62rem;
    }

    .experience-location {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .experience-location i {
        color: #0c8a65 !important;
        font-size: 0.7rem;
    }

    .experience-summary {
        color: #555 !important;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Collapsible : tout afficher en print */
    .experience-collapsible {
        max-height: none !important;
        overflow: visible !important;
    }

    .experience-toggle {
        display: none !important;
    }

    /* Sections compétences, expériences, formations : nouvelle page */
    #competences,
    #experiences,
    #formations {
        page-break-before: always;
    }

    /* Section expériences : autoriser les coupures de page */
    #experiences {
        page-break-inside: auto !important;
    }

    /* Chips : plus compacts */
    .chip-list {
        gap: 4px;
        margin-top: 8px;
    }

    .chip {
        background: rgba(12, 138, 101, 0.15) !important;
        border: 1px solid rgba(12, 138, 101, 0.2) !important;
        color: #25282f !important;
        padding: 2px 5px;
        font-size: 0.6rem;
        border-radius: 20px;
    }

    /* App cards */
    .app-showcase {
        grid-template-columns: 1fr !important;
        gap: 4px;
        margin: 8px 0;
    }

    .app-card {
        border: 1px solid rgba(12, 138, 101, 0.2) !important;
        box-shadow: none !important;
        padding: 8px 12px !important;
        margin-bottom: 0 !important;
        border-radius: 8px !important;
    }

    .app-card::before {
        display: none !important;
    }

    .app-card-header {
        gap: 10px;
        margin-bottom: 6px;
    }

    .app-card-logo {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        box-shadow: none !important;
    }

    .app-card-header h4 {
        font-size: 0.9rem;
    }

    .app-card-subtitle {
        font-size: 0.7rem;
    }

    .app-card-platforms {
        font-size: 0.65rem;
    }

    .app-card-description {
        margin-bottom: 6px;
    }

    .app-card-features {
        display: none !important;
    }

    .app-card-link {
        margin-top: 6px;
        padding: 4px 12px;
        font-size: 0.7rem;
    }

    /* Bloc multi-missions */
    .company-block {
        padding: 0 !important;
        border-left: 2px solid #0c8a65 !important;
        border-radius: 8px !important;
        overflow: visible !important;
    }

    .company-header {
        padding: 12px 16px 14px !important;
        background: rgba(12, 138, 101, 0.05) !important;
        border-bottom: 1px solid rgba(12, 138, 101, 0.15) !important;
    }

    .company-name {
        background: none !important;
        -webkit-text-fill-color: #0c8a65 !important;
        color: #0c8a65 !important;
        font-size: 1.1rem !important;
    }

    .company-name i {
        -webkit-text-fill-color: #0c8a65 !important;
        color: #0c8a65 !important;
    }

    .company-positions-badge {
        background: rgba(12, 138, 101, 0.08) !important;
        border: 1px solid rgba(12, 138, 101, 0.2) !important;
        min-width: 50px !important;
        height: auto !important;
        padding: 5px 7px !important;
        border-radius: 10px !important;
    }

    .company-positions-badge span {
        font-size: 1.1rem !important;
    }

    .company-header-meta .experience-date,
    .company-header-meta .experience-duration,
    .company-header-meta .experience-location {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }

    /* Missions : passer en blocs pour éviter les coupures de page */
    .company-missions {
        display: block !important;
        padding: 0 16px 14px !important;
    }

    .mission-item {
        display: block !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        padding: 14px 0 8px !important;
        border-top: 1px solid rgba(12, 138, 101, 0.15) !important;
    }

    .mission-item:first-child {
        border-top: none !important;
        padding-top: 8px !important;
    }

    /* Annuler les bordures de la version grille */
    .mission-item:not(:first-child) .mission-header-left,
    .mission-item:not(:first-child) .mission-header-meta {
        border-top: none !important;
    }

    .mission-header-left {
        padding: 0 0 4px 0 !important;
    }

    .mission-header-meta {
        padding: 0 0 8px 0 !important;
        gap: 4px !important;
    }

    .company-missions .experience-collapsible {
        grid-column: unset !important;
    }

    .mission-content {
        padding: 8px 12px !important;
        background: white !important;
        border: 1px solid rgba(12, 138, 101, 0.15) !important;
        border-radius: 6px !important;
        box-shadow: none !important;
    }

    .mission-role {
        font-size: 0.85rem !important;
        background: none !important;
        -webkit-text-fill-color: #0c8a65 !important;
        color: #0c8a65 !important;
    }

    .mission-role i {
        -webkit-text-fill-color: #0c8a65 !important;
        color: #0c8a65 !important;
    }

    .mission-header-meta .experience-date,
    .mission-header-meta .experience-duration {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
    }

    /* Listes */
    ul li {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    /* Descriptions des apps */
    .app-card-description {
        font-size: 0.75rem !important;
        line-height: 1.4;
    }

    .app-card-features li {
        font-size: 0.7rem !important;
    }

    /* Liens : pas de soulignement en print, masquer icônes de lien externe */
    a {
        color: inherit !important;
        text-decoration: none !important;
    }

    .fa-external-link-alt {
        display: none !important;
    }


    /* Texte écran/impression */
    .screen-text {
        display: none !important;
    }

    .print-text {
        display: inline !important;
    }

    /* Pied de page impression */
    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 0mm;
        left: 0mm;
        right: 0mm;
        text-align: center;
    }

    .print-footer p {
        font-size: 9pt;
        color: #666;
        text-align: center;
        margin: 0;
        padding: 3mm 0;
        border-top: 1px solid #eee;
    }

    .print-footer strong {
        color: #0c8a65;
    }

    .print-footer i {
        color: #0c8a65;
        font-size: 8pt;
    }

    /* ── PAGE 1 IMPRESSION : afficher le résumé, masquer l'en-tête original ── */
    #print-summary {
        display: flex !important;
        flex-direction: column;
        min-height: 247mm;
        page-break-after: always;
    }

    /* Zone technologies : hauteur naturelle (pas d'étirement — évite que le bloc
       « pages suivantes » soit poussé sur le pied de page fixe ou déborde) */
    .ps-bottom {
        align-items: stretch;
    }

    .ps-technologies {
        flex: 1;
    }

    header {
        display: none !important;
    }

    #resume {
        display: none !important;
    }

    #interets {
        display: none !important;
    }
}

/* ── CARRIÈRE : BLOCS PROPORTIONNELS ── */
.ps-career {
    margin-bottom: 3mm;
}

.ps-career-title {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0c8a65 !important;
    border-bottom: 1.5px solid #0c8a65;
    padding-bottom: 3px;
    margin-bottom: 5mm;
}

.ps-career-title i {
    color: #0c8a65 !important;
    margin-right: 3px;
}

/* ── Barre temporelle — période intégrée dans chaque bloc ── */
.ps-timeline-bar {
    display: flex;
    gap: 3px;
    border-radius: 6px;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.ps-tb-sqli,
.ps-tb-ubi,
.ps-tb-doit {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3mm 3.5mm;
    color: white !important;
    min-height: 14mm;
}

.ps-tb-sqli { background: #7a8a99 !important; }
.ps-tb-ubi  { background: #0c8a65 !important; justify-content: flex-start; min-height: 22mm; }
.ps-tb-doit { background: #1a6b8a !important; }

.ps-ubi-header {
    display: flex;
    align-items: baseline;
    gap: 2mm;
    margin-bottom: 1.5mm;
}

.ps-ubi-tracks {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    flex: 1;
}

.ps-ubi-track {
    flex: 1;
    position: relative;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    min-height: 3.5mm;
}

.ps-ubi-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 0 2px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.ps-ubi-bar span {
    font-size: 0.42em;
    font-weight: 800;
    color: white !important;
    white-space: nowrap;
}

.ps-ubi-bar-cpo  { background: #0ea5e9 !important; }
.ps-ubi-bar-cto  { background: #6366f1 !important; }
.ps-ubi-bar-ciso { background: #a855f7 !important; }

.ps-tb-name {
    font-size: 0.75em;
    font-weight: 800;
    color: white !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-tb-period {
    font-size: 0.58em;
    color: rgba(255,255,255,0.65) !important;
    font-weight: 500;
    white-space: nowrap;
    margin-top: 1mm;
}

/* ── Cartes de détail ── */
.ps-career-cards {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 3mm;
    margin-top: 4mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.ps-cc {
    padding: 3mm 2mm 3mm;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    border-top-width: 3px;
}

.ps-cc-sqli { border-top-color: #7a8a99 !important; }
.ps-cc-ubi  { border-top-color: #0c8a65 !important; }
.ps-cc-doit { border-top-color: #1a6b8a !important; }

.ps-cc-company {
    font-size: 0.78em;
    font-weight: 800;
    color: #1a1d22 !important;
    margin-bottom: 1mm;
}

.ps-cc-period {
    font-size: 0.58em;
    color: #aaa !important;
    margin-bottom: 2.5mm;
    font-weight: 500;
    white-space: nowrap;
}

.ps-cc-role {
    font-size: 0.67em;
    font-weight: 600;
    color: #333 !important;
    margin-bottom: 1.5mm;
    line-height: 1.3;
}

.ps-cc-detail {
    font-size: 0.6em;
    color: #777 !important;
    line-height: 1.5;
}

/* Missions (Ubigreen) */
.ps-cc-missions {
    display: flex;
    flex-direction: column;
    gap: 2.5mm;
}

.ps-cc-m {
    display: flex;
    align-items: stretch;
    gap: 2mm;
}

.ps-cc-badge {
    font-size: 0.58em;
    font-weight: 800;
    padding: 0;
    width: 9mm;
    text-align: center;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.ps-cc-badge-cpo  { background: #0ea5e9 !important; }
.ps-cc-badge-cto  { background: #6366f1 !important; }
.ps-cc-badge-ciso { background: #a855f7 !important; }

.ps-cc-m-body {
    display: flex;
    flex-direction: column;
    gap: 0.5mm;
}

.ps-cc-m-period {
    font-size: 0.62em;
    font-weight: 700;
    color: #333 !important;
    line-height: 1.3;
}

.ps-cc-m-detail {
    font-size: 0.60em;
    color: #666 !important;
    line-height: 1.3;
}


/* Badge 5M Innov */
.ps-founder {
    margin-top: 4mm;
    padding: 2.5mm 4mm;
    border: 1px solid rgba(12,138,101,0.18);
    border-radius: 6px;
    background: transparent !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.ps-founder-content {
    display: flex;
    align-items: center;
    gap: 3mm;
    flex-wrap: wrap;
}

.ps-founder-tag {
    font-size: 0.62em;
    color: #0c8a65 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ps-founder-sep {
    color: #ddd !important;
    font-size: 0.65em;
}

.ps-founder-company {
    font-size: 0.75em;
    font-weight: 700;
    color: #444 !important;
}

.ps-founder-role {
    font-size: 0.65em;
    color: #888 !important;
}

/* Pied de page impression : caché à l'écran */
.print-footer {
    display: none;
}

/* Texte visible uniquement en impression (caché à l'écran) */
.print-text {
    display: none;
}

/* ══════════════════════════════════════════
   PAGE 1 IMPRESSION — RÉSUMÉ GLOBAL
   Masqué à l'écran, affiché uniquement en print
   ══════════════════════════════════════════ */

#print-summary {
    display: none;
    font-family: 'Lexend', sans-serif;
    color: #1a1d22;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ── En-tête ── */
.ps-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8mm;
    margin-bottom: 7mm;
    padding-bottom: 6mm;
    border-bottom: 2px solid #0c8a65;
}

.ps-header-left {
    display: flex;
    align-items: center;
    gap: 6mm;
}

.ps-photo {
    width: 26mm;
    height: 26mm;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #0c8a65;
    flex-shrink: 0;
}

.ps-header-identity {
    display: flex;
    flex-direction: column;
    gap: 3mm;
}

.ps-name {
    font-size: 1.9em;
    font-weight: 800;
    color: #1a1d22 !important;
    margin: 0;
    letter-spacing: -0.02em;
}

.ps-title-tags {
    display: flex;
    gap: 2.5mm;
    flex-wrap: wrap;
}

.ps-tag {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0c8a65 !important;
    background: rgba(12,138,101,0.08) !important;
    border: 1px solid rgba(12,138,101,0.25);
    border-radius: 20px;
    padding: 2px 8px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.ps-header-contacts {
    display: flex;
    flex-direction: column;
    gap: 2.5mm;
    align-items: flex-end;
    flex-shrink: 0;
    justify-content: center;
}

.ps-contact-row {
    font-size: 0.72em;
    color: #555 !important;
    display: flex;
    align-items: center;
    gap: 2.5mm;
}

.ps-contact-row i {
    color: #0c8a65 !important;
    width: 3.5mm;
    text-align: center;
}

/* ── Résumé ── */
.ps-summary {
    font-size: 0.78em;
    line-height: 1.65;
    color: #444 !important;
    text-align: left;
    margin-bottom: 7mm;
    padding: 4.5mm 6mm;
    background: rgba(12,138,101,0.04) !important;
    border-left: 3px solid #0c8a65;
    border-radius: 0 6px 6px 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ── Bas de page : technologies + formations ── */
.ps-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8mm;
    margin-top: 3mm;
}

.ps-section-title {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0c8a65 !important;
    border-bottom: 1.5px solid #0c8a65;
    padding-bottom: 3px;
    margin-bottom: 4mm;
}

.ps-section-title i {
    color: #0c8a65 !important;
    margin-right: 2px;
}

/* Technologies */
.ps-technologies {
    min-width: 0;
}

/* Grille alignée : label | chips — labels en colonne fixe */
.ps-tech-grid {
    display: grid;
    grid-template-columns: 44mm 1fr;
    gap: 2.5mm 3mm;
    align-items: start;
}

.ps-tech-label {
    font-size: 0.60em;
    font-weight: 600;
    color: #888 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding-top: 2px;
}

.ps-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 2mm;
}

.ps-chip {
    font-size: 0.55em;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.ps-chip-dev      { background: rgba(12,138,101,0.10) !important; color: #0c6a4d !important; border: 1px solid rgba(12,138,101,0.2); }
.ps-chip-cloud    { background: rgba(26,107,138,0.10) !important; color: #1a4a6a !important; border: 1px solid rgba(26,107,138,0.2); }
.ps-chip-ai       { background: rgba(90,40,130,0.08)  !important; color: #5a2882 !important; border: 1px solid rgba(90,40,130,0.18); }
.ps-chip-security { background: rgba(180,60,40,0.07)  !important; color: #a33820 !important; border: 1px solid rgba(180,60,40,0.15); }
.ps-chip-mgmt     { background: rgba(70,70,70,0.07)   !important; color: #444    !important; border: 1px solid rgba(70,70,70,0.15); }

/* Formations */
.ps-formations {
    min-width: 50mm;
    flex-shrink: 0;
}

.ps-formation-item {
    display: flex;
    align-items: flex-start;
    gap: 3mm;
    margin-bottom: 4mm;
}

.ps-formation-year {
    font-size: 0.68em;
    font-weight: 700;
    color: #0c8a65 !important;
    background: rgba(12,138,101,0.08) !important;
    border-radius: 4px;
    padding: 2px 5px;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.ps-formation-body {
    display: flex;
    flex-direction: column;
    gap: 1mm;
}

.ps-formation-diploma {
    font-size: 0.72em;
    font-weight: 700;
    color: #1a1d22 !important;
}

.ps-formation-school {
    font-size: 0.65em;
    color: #777 !important;
}

/* Centres d'intérêt */
.ps-section-title-mt {
    margin-top: 4mm;
}

.ps-interests {
    display: flex;
    flex-direction: column;
    gap: 2mm;
}

.ps-interest {
    font-size: 0.63em;
    color: #555 !important;
    display: flex;
    align-items: center;
    gap: 2mm;
}

.ps-interest i {
    color: #0c8a65 !important;
    width: 3mm;
    text-align: center;
    flex-shrink: 0;
}

/* ── Disponibilité ── */
.cv-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.cv-avail-badge {
    background: rgba(55, 239, 186, 0.15);
    border: 1px solid rgba(55, 239, 186, 0.4);
    color: #37efba;
    padding: 0.2rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.cv-avail-detail {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}
body.dark-mode .cv-avail-badge { background: rgba(55,239,186,0.12); }

/* Message page suivante */
.ps-next-page {
    margin-top: 0;
    padding-top: 4mm;
    padding-bottom: 6mm;
    text-align: center;
}

.ps-next-page-text {
    font-size: 0.62em;
    color: #bbb !important;
    font-style: italic;
}

/* ── Synthesis mode : vue synthèse à l'écran UNIQUEMENT ── */
@media screen {
  body.synthesis-mode-active #print-summary {
    display: flex !important;
    flex-direction: column !important;
    /* Base agrandie à l'écran uniquement : les tailles en em du parcours
       synthétique suivent proportionnellement. N'affecte pas l'impression
       (@media print conserve sa propre base ~11pt). */
    font-size: 19px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    color: #1a1d22;
  }

  body.dark-mode.synthesis-mode-active #print-summary {
    background: #1e2229;
    box-shadow: 0 4px 24px rgba(0,0,0,0.40);
    color: #e8eaf0;
  }
}

@media screen {
/* Remplacement du vert foncé #0c8a65 par le vert clair dark mode #37efba */
body.dark-mode.synthesis-mode-active .ps-header { border-bottom-color: #37efba !important; }
body.dark-mode.synthesis-mode-active .ps-tag { color: #37efba !important; background: rgba(55,239,186,0.10) !important; border-color: rgba(55,239,186,0.25) !important; }
body.dark-mode.synthesis-mode-active .ps-contact-row i { color: #37efba !important; }
body.dark-mode.synthesis-mode-active .ps-summary { border-left-color: #37efba !important; }
body.dark-mode.synthesis-mode-active .ps-career-title { color: #37efba !important; border-bottom-color: #37efba !important; }
body.dark-mode.synthesis-mode-active .ps-career-title i { color: #37efba !important; }
body.dark-mode.synthesis-mode-active .ps-section-title { color: #37efba !important; border-bottom-color: #37efba !important; }
body.dark-mode.synthesis-mode-active .ps-section-title i { color: #37efba !important; }
body.dark-mode.synthesis-mode-active .ps-founder-tag { color: #37efba !important; }
body.dark-mode.synthesis-mode-active .ps-formation-year { color: #37efba !important; background: rgba(55,239,186,0.10) !important; }

/* En-tête */
body.dark-mode.synthesis-mode-active .ps-name { color: #e8eaf0 !important; }
body.dark-mode.synthesis-mode-active .ps-contact-row { color: #99a !important; }
body.dark-mode.synthesis-mode-active .ps-summary { color: #ccc !important; background: rgba(12,138,101,0.10) !important; }

/* Cartes carrière */
body.dark-mode.synthesis-mode-active .ps-cc { background: #252b34 !important; border-color: rgba(255,255,255,0.08) !important; }
body.dark-mode.synthesis-mode-active .ps-cc-company { color: #e8eaf0 !important; }
body.dark-mode.synthesis-mode-active .ps-cc-period { color: #778 !important; }
body.dark-mode.synthesis-mode-active .ps-cc-role { color: #ccd !important; }
body.dark-mode.synthesis-mode-active .ps-cc-detail { color: #889 !important; }
body.dark-mode.synthesis-mode-active .ps-cc-m-period { color: #bbc !important; }
body.dark-mode.synthesis-mode-active .ps-cc-m-detail { color: #889 !important; }

/* Fondateur */
body.dark-mode.synthesis-mode-active .ps-founder { border-color: rgba(12,138,101,0.25) !important; background: rgba(12,138,101,0.05) !important; }
body.dark-mode.synthesis-mode-active .ps-founder-company { color: #e8eaf0 !important; }
body.dark-mode.synthesis-mode-active .ps-founder-role { color: #778 !important; }

/* Technologies — labels et chips */
body.dark-mode.synthesis-mode-active .ps-tech-label { color: #667 !important; }
body.dark-mode.synthesis-mode-active .ps-chip-dev      { background: rgba(12,138,101,0.15) !important; color: #5dcba8 !important; border-color: rgba(12,138,101,0.3) !important; }
body.dark-mode.synthesis-mode-active .ps-chip-cloud    { background: rgba(26,107,138,0.18) !important; color: #5ab4d8 !important; border-color: rgba(26,107,138,0.3) !important; }
body.dark-mode.synthesis-mode-active .ps-chip-ai       { background: rgba(90,40,130,0.18)  !important; color: #c084f5 !important; border-color: rgba(90,40,130,0.3)  !important; }
body.dark-mode.synthesis-mode-active .ps-chip-security { background: rgba(180,60,40,0.15)  !important; color: #f0806a !important; border-color: rgba(180,60,40,0.28)  !important; }
body.dark-mode.synthesis-mode-active .ps-chip-mgmt     { background: rgba(150,150,170,0.12) !important; color: #aab !important; border-color: rgba(150,150,170,0.2) !important; }

/* Formations / Intérêts */
body.dark-mode.synthesis-mode-active .ps-formation-diploma { color: #e8eaf0 !important; }
body.dark-mode.synthesis-mode-active .ps-formation-school { color: #778 !important; }
body.dark-mode.synthesis-mode-active .ps-interest { color: #889 !important; }

body.dark-mode.synthesis-mode-active .ps-next-page-text { color: #445 !important; }
}

/* Masquer le message "page suivante" en mode écran uniquement */
@media screen {
  body.synthesis-mode-active .ps-next-page { display: none; }

  /* Masquer l'en-tête redondant avec le header de la page (écran seulement) */
  body.synthesis-mode-active .ps-header { display: none !important; }

  /* Masquer le contenu classique (container) en mode synthèse écran — il reste visible en impression */
  body.synthesis-mode-active .container { display: none !important; }
}

/* Titre résumé : masqué par défaut, visible en mode synthèse écran uniquement */
.ps-summary-title { display: none; }

/* Bouton "Voir le détail" : masqué par défaut */
.ps-detail-cta { display: none; }

@media screen {
  /* Sélecteur de langue : visible en vue synthèse écran seulement */
  body.synthesis-mode-active .cv-lang-selector { display: block !important; }

  body.synthesis-mode-active .ps-summary-title { display: block; margin-bottom: 3mm; }

  body.synthesis-mode-active .ps-detail-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
  }
}

.ps-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.6rem;
    background: #0c8a65;
    color: #fff !important;
    border: none;
    border-radius: 100px;
    font-family: 'Lexend', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.ps-detail-btn:hover {
    background: #0a7558;
    transform: translateY(-1px);
}

body.dark-mode .ps-detail-btn {
    background: #37efba;
    color: #0d1117 !important;
}

body.dark-mode .ps-detail-btn:hover {
    background: #2dd9a8;
}

/* Couleurs pastels identiques au mode print */
body.synthesis-mode-active .ps-tb-sqli { background: #c8d0d8 !important; color: #333 !important; }
body.synthesis-mode-active .ps-tb-ubi  { background: #c8ead8 !important; color: #333 !important; }
body.synthesis-mode-active .ps-tb-doit { background: #c8dce8 !important; color: #333 !important; }
body.synthesis-mode-active .ps-tb-name   { color: #333 !important; }
body.synthesis-mode-active .ps-tb-period { color: #555 !important; }
body.synthesis-mode-active .ps-ubi-track { background: rgba(0,0,0,0.06) !important; }
body.synthesis-mode-active .ps-ubi-bar-cpo  { background: #90caf9 !important; }
body.synthesis-mode-active .ps-ubi-bar-cto  { background: #9fa8da !important; }
body.synthesis-mode-active .ps-ubi-bar-ciso { background: #ce93d8 !important; }
body.synthesis-mode-active .ps-ubi-bar span { color: #222 !important; }
body.synthesis-mode-active .ps-cc-badge-cpo  { background: #90caf9 !important; color: #222 !important; }
body.synthesis-mode-active .ps-cc-badge-cto  { background: #9fa8da !important; color: #222 !important; }
body.synthesis-mode-active .ps-cc-badge-ciso { background: #ce93d8 !important; color: #222 !important; }
body.synthesis-mode-active .ps-cc-sqli { border-top-color: #c8d0d8 !important; }
body.synthesis-mode-active .ps-cc-ubi  { border-top-color: #c8ead8 !important; }
body.synthesis-mode-active .ps-cc-doit { border-top-color: #c8dce8 !important; }

/* ── Responsive vue synthèse écran ── */
@media (max-width: 700px) {
    body.synthesis-mode-active #print-summary {
        padding: 1rem;
        margin: 1rem;
        width: auto;
    }

    /* Cartes carrière : colonne unique */
    body.synthesis-mode-active .ps-career-cards {
        grid-template-columns: 1fr !important;
    }

    /* Barre timeline : empilée verticalement */
    body.synthesis-mode-active .ps-timeline-bar {
        flex-direction: column !important;
    }

    body.synthesis-mode-active .ps-tb-sqli,
    body.synthesis-mode-active .ps-tb-ubi,
    body.synthesis-mode-active .ps-tb-doit {
        flex: none !important;
        border-radius: 6px !important;
        padding: 6px 8px !important;
        min-height: auto !important;
    }

    /* Bas de page : colonne unique */
    body.synthesis-mode-active .ps-bottom {
        grid-template-columns: 1fr !important;
    }

    /* Grille techno : label au-dessus des chips */
    body.synthesis-mode-active .ps-tech-grid {
        grid-template-columns: 1fr !important;
    }

    body.synthesis-mode-active .ps-tech-label {
        margin-top: 6px;
    }
}

/* ── Barre Ubigreen : couleurs pastel pour impression ── */
@media print {
    .ps-tb-sqli { background: #c8d0d8 !important; color: #333 !important; }
    .ps-tb-ubi  { background: #c8ead8 !important; color: #333 !important; }
    .ps-tb-doit { background: #c8dce8 !important; color: #333 !important; }

    .ps-tb-name   { color: #333 !important; }
    .ps-tb-period { color: #555 !important; }

    .ps-ubi-track { background: rgba(0,0,0,0.06) !important; }

    .ps-ubi-bar-cpo  { background: #90caf9 !important; }
    .ps-ubi-bar-cto  { background: #9fa8da !important; }
    .ps-ubi-bar-ciso { background: #ce93d8 !important; }

    .ps-ubi-bar span { color: #222 !important; }

    .ps-cc-badge-cpo  { background: #90caf9 !important; color: #222 !important; }
    .ps-cc-badge-cto  { background: #9fa8da !important; color: #222 !important; }
    .ps-cc-badge-ciso { background: #ce93d8 !important; color: #222 !important; }

    .ps-cc-sqli { border-top-color: #c8d0d8 !important; }
    .ps-cc-ubi  { border-top-color: #c8ead8 !important; }
    .ps-cc-doit { border-top-color: #c8dce8 !important; }
}

/* ===== Recommandations ===== */
.reco-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.reco-card {
    background: var(--secondary-background-color);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.reco-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(55, 239, 186, 0.25);
}

.reco-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reco-avatar {
    font-size: 2.6rem;
    line-height: 1;
    color: var(--primary-color);
    flex-shrink: 0;
}

.reco-id {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.reco-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-color);
}

.reco-role {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
}

.reco-rel {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.6;
}

.reco-li {
    color: #0A66C2;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.reco-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
    font-style: italic;
    border-left: 3px solid var(--card-border);
    padding-left: 14px;
}

.reco-source {
    margin-top: 22px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.85;
}

.reco-source i { color: #0A66C2; }

.reco-source a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.reco-source a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .reco-grid { grid-template-columns: 1fr; }
}

/* Section masquée à l'impression pour garder le PDF compact */
@media print {
    #recommandations { display: none; }
}
