:root {
    --primary-color: #800000;
    --dark-color: #212529;
    --white-color: #ffffff;
    --bg-color: #FBF6E3;
    --text-color: #212529;
    --main-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --heading-font: 'Saira', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--main-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    line-height: 1.5;
    overflow-x: hidden;
}

main {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    min-height: 0;           /* évite les sauts liés au calcul de hauteur */
    line-height: normal;     /* neutralise les variations héritées */
  }

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.15);
}

.header-top {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

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

.header-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--main-font);
}

.header-contact-item i {
    font-size: 0.8rem;
}

.header-contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--main-font);
}

.header-contact-item a:hover {
    color: var(--primary-color);
}

/* MOBILE */

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--main-font);
}

.mobile-contact-item i {
    font-size: 0.8rem;
}

.mobile-contact-item a {
    color: rgba(33, 37, 41, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--main-font);
}

.mobile-contact-item a:hover {
    color: var(--primary-color);
}

.header-top-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.header-top-social-icon:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.header-top-social-icon i,
.mobile-social-icon i,
.social-icon i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block;
}

.header-bottom {
    background-color: var(--white-color);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(128, 0, 0, 0.1);
}

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

.logo {
    color: var(--dark-color);
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--dark-color);
}

.logo .accent {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.main-nav>li>a {
    color: var(--dark-color);
    text-decoration: none;
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav>li>a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav>li>a:hover,
.main-nav>li>a.active {
    color: var(--primary-color);
}

.main-nav>li>a:hover::after,
.main-nav>li>a.active::after {
    width: 100%;
}

.header-cta {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 0rem;
    font-family: var(--heading-font);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.header-cta:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--dark-color);
    color: var(--dark-color);
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    max-height: none;
    background: var(--white-color);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 1.5rem;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.mobile-menu.open {
    right: 0;
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(128, 0, 0, 0.1);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 0rem;
}

.mobile-nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 1rem 0;
    transition: color 0.3s ease;
    border-bottom: none;
}

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

.mobile-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(128, 0, 0, 0.1);
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-family: var(--main-font);
}

.mobile-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mobile-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-color);
    color: var(--white-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991.98px) {
    .header-top {
        display: none;
    }

    .header-bottom-content {
        padding: 0 1rem;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        margin-right: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .header-top-content {
        padding: 0 1rem;
    }

    .header-contact {
        gap: 1rem;
    }

    .header-contact-item {
        font-size: 0.8rem;
    }
}

.container-fluid {
    padding-left: 0;
}

.resume-section {
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    min-height: 95vh;
}

.resume-section-content {
    width: 100%;
}

hr.m-0 {
    margin: 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-color);
}

h1 {
    font-size: 1.725rem;
    font-weight: 700;
}

@media (min-width: 1200px) {
    h1 {
        font-size: 2.75rem;
    }
}

h2 {
    font-size: 1.475rem;
    font-weight: 500;
}

@media (min-width: 1200px) {
    h2 {
        font-size: 1.85rem;
    }
}

h3 {
    font-size: 1.325rem;
    font-weight: 600;
}

@media (min-width: 1200px) {
    h3 {
        font-size: 1.5rem;
    }
}

p,
li,
span,
div,
a {
    font-family: var(--main-font);
}

.redder {
    color: var(--primary-color);
}

.custom-text {
    color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.lead.catchphrase {
    font-family: var(--main-font);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.catchphrase {
    text-align: justify;
    text-justify: inter-character;
    word-spacing: -0.08em;
    letter-spacing: 0.01em;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.subheading {
    font-family: var(--heading-font);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--primary-color);
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    background-color: #495057;
    color: var(--white-color);
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.linker a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--main-font);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #800000;
    padding: 0.5rem 1rem 0.5rem 1rem;
}

.linker a:hover {
    text-decoration: underline;
}

.en-cours-tssr {
    background-color: #FAB400;
    color: #EFEFEF;
    padding: 0.5rem 1rem;
    border-radius: 0.1rem;
    font-weight: 600;
    display: inline-block;
    font-size: 1.1rem;
    font-family: var(--main-font);
}

.expired {
    background-color: #800000;
    color: #EFEFEF;
    padding: 0.5rem 1rem;
    border-radius: 0.1rem;
    font-weight: 600;
    display: inline-block;
    font-size: 1.1rem;
    font-family: var(--main-font);
}

.blockquote-footer {
    font-size: 0.875em;
    color: #6c757d;
    font-family: var(--main-font);
}

.blockquote-footer::before {
    content: "— ";
}

@media (max-width: 768px) {
    .resume-section {
        padding-left: 1rem;
        padding-right: 1.75rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.ps-4 {
    padding-left: 1.5rem !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.text-center {
    text-align: center !important;
}

@media (min-width: 768px) {
    .flex-md-row {
        flex-direction: row !important;
    }
}

.d-flex.flex-column.flex-md-row.justify-content-between {
    position: relative;
    display: block !important;
    max-width: 100%;
    width: 100%;
    padding-bottom: 1.5rem;
}

.d-flex.flex-column.flex-md-row.justify-content-between .flex-grow-1 {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding-right: 0;
}

.d-flex.flex-column.flex-md-row.justify-content-between .flex-shrink-0 {
    position: absolute;
    top: 0.5rem;
    right: 0;
    font-size: 0.95rem;
    color: #6c757d;
    text-align: right;
    white-space: nowrap;
    background-color: transparent;
    padding-left: 0.5rem;
    line-height: 1.2;
    height: auto;
    font-family: var(--main-font);
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .d-flex.flex-column.flex-md-row.justify-content-between .flex-shrink-0 {
        position: static;
        text-align: left;
        background-color: transparent;
        padding-left: 0;
        margin-top: 1rem;
    }

    .d-flex.flex-column.flex-md-row.justify-content-between {
        padding-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    hr.m-0 {
        display: none;
    }
}

.span-softenit {
    background-color: #FAB400;
    color: #EFEFEF;
    padding: 0.5rem 1rem;
    border-radius: 0.1rem;
    font-weight: 600;
    display: inline-block;
    font-size: 1.1rem;
    font-family: var(--main-font);
}

.section-title {
    font-style: italic;
}

#formation .d-flex.flex-column.flex-md-row.justify-content-between:not(:last-child) {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 3rem;
}

#formation .d-flex.flex-column.flex-md-row.justify-content-between:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

#formation .d-flex.flex-column.flex-md-row.justify-content-between:last-child {
    margin-bottom: 0;
}

.hero-text {
    margin-top: -14rem;
}

.hvr-underline-from-left {
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    overflow: hidden;
    padding: 0.5rem 1rem;
    border: 1px solid #800000;
    border-radius: 0.1rem;
    border-bottom: 1px solid transparent;
    text-decoration: none !important;
}

.hvr-underline-from-left:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 100%;
    bottom: -1px;
    background: #800000;
    height: 2px;
    transition-property: right;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

.hvr-underline-from-left:hover:before,
.hvr-underline-from-left:focus:before,
.hvr-underline-from-left:active:before {
    right: 0;
}

.hvr-underline-from-left:hover,
.hvr-underline-from-left:focus,
.hvr-underline-from-left:active {
    text-decoration: none !important;
}

.citation {
    text-transform: lowercase;
    font-size: 1.25rem;
}

.majuscule {
    text-transform: uppercase;
    font-size: 1.25rem;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 120px;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #800000 0%, #a00000 90%, #212529 100%);
    z-index: 9999;
    transition: width 0.05s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 1px 3px rgba(128, 0, 0, 0.3);
    will-change: width;
    transform: translateZ(0);
}


/* MOBILE - Dégradé vers blanc */
@media (max-width: 768px) {
    .reading-progress {
        background: #800000;
        transition: width 0.05s cubic-bezier(0.19, 1, 0.22, 1);
        box-shadow: 0 1px 3px rgba(128, 0, 0, 0.3);
        will-change: width;
        transform: translateZ(0);
    }
}

/* .header-cta, */
.mobile-menu-btn,
.scroll-up,
.linker a {
    transform: scale(1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

.mobile-menu-btn:hover,
.scroll-up:hover,
.linker a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

.header-cta:active,
.mobile-menu-btn:active,
.scroll-up:active,
.linker a:active {
    transform: scale(0.98);
}

.resume-section-content {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.resume-section-content.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.resume-section-content:nth-child(even) {
    transition-delay: 0.1s;
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #212529;
    /* #FAB400 */
    border-top: 3px solid #FAB400;
    /* bleu bootstrap #0d6efd */
    color: #FFF;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(128, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    font-weight: 500;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification i {
    font-size: 1.2rem;
    color: #4ade80;
}

a[href^="mailto:"]:hover::before,
.header-cta[href^="mailto:"]:hover::before {
    content: "💡 Cliquez pour copier l'e-mail";
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #800000, #a00000);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(128, 0, 0, 0.3);
    z-index: 10000;
    animation: popupSlideUp 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(2px);
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .qr-floating-btn {
        display: block !important;
        margin-left: 5rem !important;
    }

    .logo-container {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .header-bottom-content {
        padding: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .logo-container {
        gap: 0.75rem;
    }

    .qr-btn-icon {
        width: 35px;
        height: 35px;
        padding: 0.4rem;
    }

    .qr-btn-icon i {
        font-size: 0.9rem;
    }
}

.footer-text {
    text-align: center;
    color: #212529;
    font-size: 0.8rem;
    font-family: var(--main-font);
    padding: 2rem 1rem;
    margin-top: 3rem;
    line-height: 1.4;
}

@media (max-width: 404px) {
    #parcours {
        min-height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        scroll-margin-top: 60px !important;
        display: block !important;
        align-items: flex-start !important;
    }

    #parcours .resume-section-content {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        min-height: auto !important;
        width: 100% !important;
    }

    #parcours .resume-section-content {
        opacity: 0;
        transform: translateY(20px) scale(0.99);
        transition: all 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    #parcours .resume-section-content.animate-in {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    #parcours h2,
    #parcours .d-flex,
    #parcours p,
    #parcours .subheading {
        display: block !important;
        visibility: visible !important;
    }
}
/*
TOOLTIPS
*/

/* SOCIAL ICONS */
.header-top-social-icon[data-tooltip]::after,
.mobile-social-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateX(-50%);
    margin-right: 1rem;
    padding: 0.5rem 0.75rem;
    background-color: #212529;
    color: #ffffff;
    font-size: 0.8rem;
    font-family: var(--main-font);
    font-weight: 500;
    border-radius: 0rem;
    border: 1px solid #ffffff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.header-top-social-icon:hover[data-tooltip]::after,
.mobile-social-icon:hover[data-tooltip]::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
    transition: opacity 0.3s; /* ajoute la même transition progressive */
}

.header-top-social-icon,
.mobile-social-icon {
    position: relative;
}

/* DOTS */
.mini-dots-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(128, 0, 0, 0.4);
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mini-dot.active {
    background-color: #800000;
    transform: translateX(0) scale(1.6);
}

.mini-dot:hover {
    background-color: rgba(128, 0, 0, 0.7);
    transform: translateX(0) scale(1.1);
}

.mini-dot[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateX(-50%);
    margin-right: 1rem;
    padding: 0.5rem 0.75rem;
    background-color: #212529;
    color: #ffffff;
    font-size: 0.8rem;
    font-family: var(--main-font);
    font-weight: 500;
    border-radius: 0rem;
    border: 1px solid #ffffff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mini-dot:hover[data-tooltip]::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
    transition: opacity 0.3s; /* harmonisé */
}

/* SCROLL UP */
.scroll-up {
    /* content: attr(data-tooltip); */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.scroll-up:hover {
    background-color: var(--dark-color);
    /* transform: translateY(-2px); */
}

/* Applique le même style tooltip que pour le texte japonais */
#scrollUp[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%; /* place le tooltip au-dessus du bouton */
    left: 50%;
    transform: translateX(-100%);
    background-color: #212529;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    font-size: 0.80rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
    border: 1px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#scrollUp[data-tooltip]:hover::after {
    opacity: 1;
    transition: opacity 0.3s; /* harmonisé */
}

/* JAPAN TEXT */
.tooltip-text {
    position: relative;
    cursor: help;         /* curseur informatif */
    color: inherit;       /* garde la couleur du texte */
    font-weight: 500;
}

.tooltip-text::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;         /* place le tooltip au-dessus */
    left: 50%;
    transform: translateX(-50%);
    background-color: #212529; /* fond sombre */
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    font-size: 0.80rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
    border: 1px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-transform: none !important; /* garantit la casse exacte */
    font-family: inherit;            /* garde la même fonte que le reste */
}

.tooltip-text:hover::after {
    opacity: 1;
}



/* --------- END OF TOOLTIPS --------- */

@media (max-width: 991.98px) {
    .mini-dots-nav {
        display: none;
    }
}

.mini-dot {
    animation: slideInDots 0.5s ease forwards;
}

.mini-dot:nth-child(1) {
    animation-delay: 0.1s;
}

.mini-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.mini-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.mini-dot:nth-child(4) {
    animation-delay: 0.4s;
}

.mini-dot:nth-child(5) {
    animation-delay: 0.5s;
}

.mini-dot:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideInDots {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* FORCE AFFICHAGE SOCIAL ICONS MOBILE */
.mobile-social {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
}

.mobile-social-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background-color: var(--dark-color) !important;
    color: var(--white-color) !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 1.2rem !important;
}

.mobile-social-icon:hover {
    background-color: var(--primary-color) !important;
}

/* CORRECTION SÉPARATIONS FORMATION - DESKTOP */
@media (min-width: 768px) {
    #formation .d-flex.flex-column.flex-md-row.justify-content-between:not(:last-child) {
        position: relative;
        margin-bottom: 2.5rem;
        padding-bottom: 0.5rem;
        /* Plus d'espace sur desktop */
        min-height: 120px;
        /* Hauteur minimum pour dates absolues */
    }

    #formation .d-flex.flex-column.flex-md-row.justify-content-between:not(:last-child)::after {
        bottom: -0.5rem;
        /* Décaler la ligne plus bas */
    }
}

/* FORMATION - ESPACEMENT À PARTIR DU 2ÈME ÉLÉMENT */
@media (min-width: 768px) {
    #formation .d-flex.flex-column.flex-md-row.justify-content-between:not(:first-child) {
        margin-top: 4rem;
        /* Encore plus d'espace */
        padding-top: 0.5rem;
        /* Padding supplémentaire */
    }
}



/* DÉSACTIVER TOOLTIP "Cliquez pour copier" SUR MOBILE UNIQUEMENT */
@media (max-width: 991.98px) {

    a[href^="mailto:"]:hover::before,
    .header-cta[href^="mailto:"]:hover::before {
        display: none !important;
    }
}

/* FIX LÉGER - Désactiver scale uniquement dans la plage problématique */
@media (min-width: 992px) and (max-width: 1260px) {
    .header-cta:hover {
        transform: none !important;
    }
}

/* FIX - Section Parcours chevauche header sur mobile */
@media (max-width: 991.98px) {
    #parcours {
        scroll-margin-top: 120px !important;
        /* Ajustez selon hauteur header */
        padding-top: 3rem !important;
        /* Espace supplémentaire */
    }

    /* Alternative si scroll-margin-top ne suffit pas */
    #parcours .resume-section-content {
        padding-top: 2rem !important;
    }
}

/* SR only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}