/* ============================================================
   HOME.CSS — Mobile First
   ============================================================ */

/* =========================================
   1. VARIABLES CSS
   ========================================= */
:root {
    --home-bg-dark:         #0B0715;
    --home-bg-card:         rgba(255, 255, 255, 0.03);
    --home-texte-blanc:     #FAFAFA;
    --home-texte-discret:   #A19DB0;
    --home-violet-clair:    #A78BFA;
    --home-violet-fort:     #7C3AED;
    --home-bleu-accent:     #60A5FA;
    --home-bordure-verre:   rgba(255, 255, 255, 0.08);
    --home-bordure-violet:  rgba(167, 139, 250, 0.3);
}

/* =========================================
   2. KEYFRAMES
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes lueur-flotte {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20px, -20px) scale(1.05); }
    66%      { transform: translate(-15px, 15px) scale(0.97); }
}
@keyframes lueur-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes bague-rotation { to { transform: rotate(360deg); } }
@keyframes bonjour-entre {
    from { opacity: 0; transform: translate(0, -10px); }
    to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes cercle-apparait {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes clignotement {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}
@keyframes roue-defilement {
    0%   { opacity: 1; transform: translateY(0); }
    60%  { opacity: 0; transform: translateY(8px); }
    100% { opacity: 0; transform: translateY(0); }
}
@keyframes indicateur-apparait {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 0.5; transform: translateX(-50%) translateY(0); }
}
@keyframes radar-pulse {
    0%   { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2);   opacity: 0; }
}
@keyframes scrollProgress {
    from { transform: translateX(-50%) scaleY(0); }
    to   { transform: translateX(-50%) scaleY(1); }
}
@keyframes floatBlob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes tech-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--tech-couleur-alpha, rgba(167,139,250,0)); }
    50%      { box-shadow: 0 0 0 6px var(--tech-couleur-alpha, rgba(167,139,250,0)); }
}

/* =========================================
   3. RESET SCOPÉ
   ========================================= */
.home-main,
.home-main *,
.home-main *::before,
.home-main *::after { box-sizing: border-box; }

/* =========================================
   4. LAYOUT GLOBAL
   ========================================= */
/* MOBILE FIX : overflow-x sur home-main aussi */
.home-main { overflow-x: hidden; color: var(--home-texte-blanc); }
.home-main .container {
    width:      100%;
    max-width:  1050px;
    margin:     0 auto;
    /* MOBILE FIX : padding réduit */
    padding:    0 16px;
}

@media (min-width: 768px) {
    .home-main .container { padding: 0 25px; }
}

/* =========================================
   5. UTILITAIRES
   ========================================= */
.home-text-purple { color: var(--home-violet-clair) !important; font-weight: 500; }
.home-text-blue   { color: var(--home-bleu-accent) !important; font-weight: 600; }
.home-text-muted  { color: var(--home-texte-discret); font-size: 0.9em; }
.home-mt-3        { margin-top: 15px; }

.home-badge-contrat {
    display:       inline-block;
    background:    rgba(124, 58, 237, 0.12);
    color:         var(--home-violet-clair);
    padding:       3px 10px;
    border-radius: 20px;
    font-size:     0.75rem;
    font-weight:   600;
    border:        1px solid rgba(124, 58, 237, 0.25);
    margin-left:   8px;
    vertical-align: middle;
}
.home-badge-encours {
    display:       inline-block;
    background:    rgba(16, 185, 129, 0.12);
    color:         #34d399;
    padding:       3px 10px;
    border-radius: 20px;
    font-size:     0.75rem;
    font-weight:   600;
    border:        1px solid rgba(16, 185, 129, 0.25);
    margin-left:   8px;
    vertical-align: middle;
}

/* =========================================
   6. BOUTONS — MOBILE FIRST
   ========================================= */
.btn-primary, .btn-secondary {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    gap:             8px;
    /* MOBILE FIX : pleine largeur mobile par défaut */
    width:           100%;
    padding:         14px 28px;
    border-radius:   50px;
    font-weight:     600;
    font-size:       0.95rem;
    text-decoration: none;
    transition:      all 0.3s ease;
    border:          none;
    cursor:          pointer;
    font-family:     inherit;
    /* MOBILE FIX : touch target */
    min-height:      48px;
}

@media (min-width: 600px) {
    .btn-primary, .btn-secondary {
        width:   auto;
        padding: 12px 28px;
    }
}

.btn-primary  { background: var(--home-violet-fort); color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,0.4); }
.btn-primary:hover  { background: #8b5cf6; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(124,58,237,0.6); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; transform: translateY(-3px); }

/* =========================================
   7. CARTE GLASS
   ========================================= */
.glass-card {
    background:   var(--home-bg-card);
    border:       1px solid var(--home-bordure-verre);
    border-radius: 24px;
    padding:      28px 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:   transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275),
                  border-color 0.4s ease,
                  box-shadow 0.4s ease,
                  background 0.4s ease;
    box-shadow:   0 10px 30px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .glass-card { padding: 35px 30px; }
}

.glass-card:hover {
    transform:    translateY(-8px);
    background:   rgba(255,255,255,0.05);
    border-color: var(--home-bordure-violet);
    box-shadow:   0 20px 40px rgba(124,58,237,0.15);
}

/* =========================================
   8. ANIMATIONS D'APPARITION
   ========================================= */
.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeInUp 0.9s cubic-bezier(0.16,1,0.3,1) both; }

/* =========================================
   9. ENTÊTES DE SECTION
   ========================================= */
.section-entete { text-align: center; margin-bottom: 50px; }

@media (min-width: 768px) {
    .section-entete { margin-bottom: 70px; }
}

.section-titre {
    font-size:     clamp(1.8rem, 5vw, 3.5rem);
    font-weight:   800;
    letter-spacing: -0.03em;
    margin:        0 0 12px;
    line-height:   1.1;
}

.section-sous-titre {
    color:       var(--home-texte-discret);
    font-size:   1rem;
    max-width:   600px;
    margin:      0 auto;
    line-height: 1.7;
}

/* =========================================
   10. HERO — MOBILE FIRST
   ========================================= */
.hero-section {
    min-height:      100svh;
    display:         flex;
    flex-direction:  column;
    justify-content: center;
    /* MOBILE FIX : padding-top réduit */
    padding-top:     80px;
    position:        relative;
    overflow:        hidden;
}

.hero-section::before {
    content:        '';
    position:       absolute;
    top:            -200px;
    left:           -200px;
    width:          min(600px, 100vw);
    height:         600px;
    border-radius:  50%;
    background:     radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
    filter:         blur(40px);
    pointer-events: none;
    animation:      lueur-flotte 8s ease-in-out infinite;
    z-index:        0;
}



/* MOBILE FIRST : colonne centrée */
.hero-disposition-haut {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    text-align:     center;
    gap:            40px;
    margin-bottom:  50px;
    position:       relative;
    z-index:        1;
}

@media (min-width: 992px) {
    .hero-disposition-haut {
        flex-direction:  row;
        align-items:     center;
        justify-content: flex-start;
        text-align:      left;
        gap:             80px;
        margin-bottom:   80px;
    }
}

/* Avatar */
.hero-cote-avatar {
    position:       relative;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    flex-shrink:    0;
}

/* MOBILE FIX : avatar plus petit sur mobile */
.avatar-conteneur {
    position:    relative;
    width:       200px;
    height:      200px;
    transition:  transform 0.3s ease-out;
    will-change: transform;
}

@media (min-width: 768px) {
    .avatar-conteneur { width: 260px; height: 260px; }
}

/* Bulle Bonjour */
.bonjour-annotation {
    position:       absolute;
    top:            -50px;
    right:          0;
    left:           auto;
    transform:      none;
    display:        flex;
    align-items:    flex-start;
    gap:            6px;
    z-index:        20;
    animation:      bonjour-entre 1s 0.8s both;
    pointer-events: none;
}

@media (min-width: 992px) {
    .bonjour-annotation { top: -60px; right: 40px; }
}

.bonjour-texte {
    font-size:       0.85rem;
    font-weight:     400;
    white-space:     nowrap;
    background:      rgba(255,255,255,0.05);
    border:          1px solid rgba(255,255,255,0.1);
    padding:         6px 14px;
    border-radius:   30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    line-height:     1.4;
}

.fleche-dessinee {
    flex-shrink:  0;
    opacity:      0.6;
    margin-top:   20px;
    margin-left:  -50px;
    transform:    none;
}

/* Lueur & bague */
.avatar-lueur {
    position:       absolute;
    top:            50%;
    left:           50%;
    transform:      translate(-50%,-50%);
    width:          140%;
    height:         140%;
    background:     radial-gradient(circle, rgba(124,58,237,0.5) 0%, transparent 65%);
    filter:         blur(25px);
    z-index:        1;
    animation:      lueur-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.avatar-image-enveloppe {
    position:        relative;
    z-index:         10;
    width:           100%;
    height:          100%;
    border-radius:   40px;
    overflow:        hidden;
    border:          1px solid var(--home-bordure-verre);
    box-shadow:      0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(167,139,250,0.1) inset;
    background-color: #150F24;
    transition:      box-shadow 0.4s ease, transform 0.4s ease;
}

.avatar-image-enveloppe:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124,58,237,0.3);
    transform:  scale(1.02);
}

.avatar-img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avatar-image-enveloppe:hover .avatar-img { transform: scale(1.04); }

.avatar-bague {
    position:      absolute;
    inset:         -8px;
    border-radius: 48px;
    border:        1px solid rgba(167,139,250,0.15);
    z-index:       5;
    pointer-events: none;
    animation:     bague-rotation 20s linear infinite;
}

.avatar-bague::before {
    content:       '';
    position:      absolute;
    top:           -3px;
    left:          50%;
    width:         6px;
    height:        6px;
    border-radius: 50%;
    background:    var(--home-violet-clair);
    box-shadow:    0 0 10px var(--home-violet-clair);
    transform:     translateX(-50%);
}

/* Titre hero */
.hero-cote-titre {
    max-width: 560px;
    position:  relative;
    z-index:   1;
    width:     100%;
}

.sous-titre-hero {
    font-size:   1rem;
    font-weight: 400;
    margin-bottom: 10px;
    color:       var(--home-texte-discret);
    letter-spacing: 0.02em;
}

.titre-principal {
    font-size:      clamp(2.4rem, 6vw, 4.8rem);
    font-weight:    800;
    line-height:    1.05;
    letter-spacing: -0.04em;
    margin:         0 0 16px;
    animation:      fadeInScale 0.7s 0.3s both;
}

.mot-mis-en-avant {
    position: relative;
    display:  inline-block;
    color:    var(--home-violet-clair);
    z-index:  1;
}

.cercle-dessine {
    position:       absolute;
    top:            50%;
    left:           50%;
    transform:      translate(-50%,-50%);
    width:          115%;
    height:         130%;
    border:         2.5px solid rgba(167,139,250,0.35);
    border-radius:  50%;
    pointer-events: none;
    z-index:        -1;
    animation:      cercle-apparait 1.5s 0.5s both;
}

.sous-texte-hero {
    font-size:   1rem;
    color:       var(--home-texte-discret);
    margin-top:  10px;
    line-height: 1.6;
    max-width:  450px;
}

/* Bas hero */
.hero-disposition-bas {
    max-width: 750px;
    position:  relative;
    z-index:   1;
    /* MOBILE FIX : centré sur mobile */
    text-align: center;
    margin:     0 auto;
}

@media (min-width: 992px) {
    .hero-disposition-bas {
        text-align: left;
        margin:     0;
    }
}

.titre-frappe {
    font-size:      clamp(1.5rem, 4vw, 2.8rem);
    font-weight:    700;
    letter-spacing: -0.03em;
    margin:         0pxx 0 12px;
    margin-top: -30px !important;
    min-height:     1.3em;
}

.curseur {
    animation: clignotement 1s step-end infinite;
    color:     var(--home-texte-discret);
    font-weight: 300;
}

/* Statut actuel */
.statut-actuel {
    font-size:       1rem;
    color:           var(--home-texte-blanc);
    display:         flex;
    align-items:     center;
    flex-wrap:       wrap;
    justify-content: center;
    gap:             10px;
    margin-bottom:   20px;
}

@media (min-width: 992px) {
    .statut-actuel { justify-content: flex-start; }
}

/* =========================================
   BADGE ÉCOLE
   ========================================= */
.badge-ecole {
    display:         inline-flex;
    align-items:     stretch;
    background:      rgba(124, 58, 237, 0.08);
    border:          1px solid rgba(124, 58, 237, 0.22);
    border-radius:   12px;
    overflow:        hidden;
    text-decoration: none;
    transition:      border-color 0.3s ease, box-shadow 0.3s ease;
    vertical-align:  middle;
}

.badge-ecole:hover {
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow:   0 4px 16px rgba(124, 58, 237, 0.2);
}

.badge-ecole__logo {
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         8px 10px;
    background:      rgba(124, 58, 237, 0.16);
    border-right:    1px solid rgba(124, 58, 237, 0.18);
    flex-shrink:     0;
}

.logo-ecole-inline { object-fit: contain; display: block; }

.badge-ecole__texte {
    display:        flex;
    flex-direction: column;
    justify-content: center;
    padding:        6px 14px 6px 12px;
    line-height:    1.2;
    gap:            2px;
}

.badge-ecole__nom {
    font-size:      0.92rem;
    font-weight:    700;
    color:          var(--home-violet-clair);
    letter-spacing: -0.01em;
}

.badge-ecole__sous {
    font-size:      0.66rem;
    font-weight:    500;
    color:          var(--home-texte-discret);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.texte-bio {
    font-size:   1rem;
    line-height: 1.75;
    color:       var(--home-texte-discret);
}

/* Indicateur scroll — masqué sur mobile */
.indicateur-scroll { display: none; }

@media (min-width: 992px) {
    .indicateur-scroll {
        display:     flex;
        position:    absolute;
        bottom:      30px;
        left:        50%;
        transform:   translateX(-50%);
        flex-direction: column;
        align-items: center;
        gap:         8px;
        opacity:     0.5;
        animation:   indicateur-apparait 2s 2s both;
        z-index:     1;
    }
}

.indicateur-scroll__souris  { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.3); border-radius: 11px; display: flex; justify-content: center; padding-top: 5px; }
.indicateur-scroll__roue    { width: 3px; height: 6px; border-radius: 2px; background: rgba(255,255,255,0.6); animation: roue-defilement 2s ease-in-out infinite; }
.indicateur-scroll__texte   { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

/* =========================================
   11. SECTION ALTERNANCE — MOBILE FIRST
   ========================================= */
.section-alternance { padding: 0 0 60px; }

@media (min-width: 768px) {
    .section-alternance { padding: 0 0 80px; }
}

.banniere-alternance {
    position:   relative;
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(147,51,234,0.05));
    border:     1px solid rgba(147,51,234,0.3);
    border-radius: 20px;
    /* MOBILE FIX : padding réduit */
    padding:    24px 20px;
    overflow:   hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .banniere-alternance { padding: 35px 40px; border-radius: 24px; }
}

.banniere-alternance:hover {
    border-color: rgba(147,51,234,0.5);
    box-shadow:   0 20px 50px rgba(124,58,237,0.15);
}

.banniere-lueur-fond {
    position:       absolute;
    top:            0;
    right:          0;
    width:          300px;
    height:         300px;
    background:     radial-gradient(circle, rgba(147,51,234,0.15) 0%, transparent 60%);
    filter:         blur(40px);
    pointer-events: none;
    z-index:        1;
}

/* MOBILE FIRST : colonne */
.banniere-contenu {
    position:       relative;
    z-index:        10;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    text-align:     center;
    gap:            20px;
}

@media (min-width: 768px) {
    .banniere-contenu {
        flex-direction: row;
        text-align:     left;
        gap:            30px;
    }
}

.banniere-icone-enveloppe {
    position:        relative;
    width:           56px;
    height:          56px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      rgba(147,51,234,0.2);
    border-radius:   50%;
    flex-shrink:     0;
}

.banniere-icone { font-size: 1.8rem; color: var(--home-violet-clair); z-index: 5; position: relative; }
.anneau-pulse   { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--home-violet-clair); animation: radar-pulse 2s linear infinite; opacity: 0; }
.anneau-pulse.delai { animation-delay: 1s; }

.banniere-texte { flex: 1; }
.banniere-titre { margin: 0 0 5px; font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; color: #fff; }
.banniere-description { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.5; }

/* MOBILE FIRST : boutons en colonne */
.banniere-actions {
    display:        flex;
    flex-direction: column;
    gap:            10px;
    flex-shrink:    0;
    width:          100%;
}

@media (min-width: 600px) {
    .banniere-actions {
        flex-direction: row;
        width:          auto;
    }
}

/* =========================================
   12. SÉPARATEURS
   ========================================= */
.separateur-lumineux {
    position:   relative;
    height:     1px;
    width:      100%;
    max-width:  700px;
    margin:     0 auto;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.2), rgba(96,165,250,0.15), rgba(167,139,250,0.2), transparent);
}

.separateur-avec-texte { position: relative; text-align: center; margin: 20px auto; max-width: 700px; }
.separateur-avec-texte::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(167,139,250,0.2), rgba(96,165,250,0.15), rgba(167,139,250,0.2), transparent); }
.separateur-avec-texte span { position: relative; display: inline-block; background: var(--home-bg-dark); padding: 0 20px; font-size: 0.8rem; color: var(--home-texte-discret); letter-spacing: 0.15em; text-transform: uppercase; z-index: 1; }

/* =========================================
   13. STATS — MOBILE FIRST
   ========================================= */
/* MOBILE FIRST : 2 colonnes */
.banniere-stats {
    position:      relative;
    display:       grid;
    grid-template-columns: repeat(2, 1fr);
    gap:           24px 16px;
    padding:       28px 20px;
    margin:        32px 0;
    background:    linear-gradient(135deg, rgba(255,255,255,0.02), rgba(124,58,237,0.04));
    border:        1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    overflow:      hidden;
    text-align:    center;
}

@media (min-width: 768px) {
    .banniere-stats {
        grid-template-columns: repeat(4, 1fr);
        gap:    30px;
        padding: 50px 40px;
        margin: 40px 0;
        border-radius: 24px;
    }
}

.banniere-stats::before {
    content:        '';
    position:       absolute;
    top:            -50%;
    left:           -50%;
    width:          200%;
    height:         200%;
    background:     radial-gradient(circle at 30% 50%, rgba(124,58,237,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 70% 50%, rgba(96,165,250,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.stat-item { position: relative; z-index: 1; }
.stat-item::before {
    content:    '';
    position:   absolute;
    top:        50%;
    right:      -15px;
    transform:  translateY(-50%);
    width:      1px;
    height:     60%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08), transparent);
}
/* MOBILE FIX : masquer tous les séparateurs sur 2 colonnes */
.stat-item:nth-child(2n)::before { display: none; }
.stat-item:last-child::before    { display: none; }

@media (min-width: 768px) {
    .stat-item:nth-child(2n)::before { display: block; }
    .stat-item:last-child::before    { display: none; }
}

.stat-valeur { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--home-violet-clair); line-height: 1; margin-bottom: 8px; display: block; }
.stat-label  { font-size: 0.82rem; color: var(--home-texte-discret); letter-spacing: 0.05em; line-height: 1.4; }

/* =========================================
   14. COMPÉTENCES TECHNIQUES
   ========================================= */
.section-competences { padding: 60px 0; }

@media (min-width: 768px) {
    .section-competences { padding: 80px 0; }
}

.grille-competences { display: grid; grid-template-columns: 1fr; gap: 20px; }

@media (min-width: 600px) {
    .grille-competences { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
}

.carte-competence { position: relative; overflow: hidden; }
.carte-competence::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--home-violet-fort), transparent); opacity: 0; transition: opacity 0.4s ease; }
.carte-competence:hover::before { opacity: 1; }
.competence-icone { font-size: 2.2rem; color: var(--home-violet-clair); margin-bottom: 16px; filter: drop-shadow(0 0 10px rgba(167,139,250,0.4)); transition: transform 0.3s ease, filter 0.3s ease; display: inline-block; }
.carte-competence:hover .competence-icone { transform: scale(1.15) rotate(-5deg); filter: drop-shadow(0 0 15px rgba(167,139,250,0.7)); }
.carte-competence h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.02em; }
.texte-competence { color: var(--home-texte-discret); font-size: 0.95rem; line-height: 1.6; margin: 0 0 16px; }
.etiquettes-competences { display: flex; flex-wrap: wrap; gap: 8px; }
.etiquette { background: rgba(124,58,237,0.1); color: var(--home-violet-clair); padding: 6px 14px; border-radius: 30px; font-size: 0.82rem; font-weight: 500; border: 1px solid rgba(124,58,237,0.2); transition: all 0.3s ease; display: inline-block; }
.etiquette:hover { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.4); transform: translateY(-2px); }

/* =========================================
   15. TECHNOLOGIES
   ========================================= */
.section-technologies { padding: 60px 0; }

@media (min-width: 768px) {
    .section-technologies { padding: 80px 0; }
}

.tech-groupe { margin-bottom: 40px; }
.tech-groupe:last-child { margin-bottom: 0; }

.tech-groupe-titre {
    display:        flex;
    align-items:    center;
    gap:            16px;
    font-size:      0.82rem;
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color:          var(--home-texte-discret);
    margin:         0 0 20px;
}

.tech-groupe-ligne { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(167,139,250,0.15), transparent); }
.tech-groupe-ligne:first-child { background: linear-gradient(270deg, rgba(167,139,250,0.15), transparent); }

.tech-grille { display: flex; flex-wrap: wrap; gap: 8px; }

@media (min-width: 768px) {
    .tech-grille { gap: 12px; }
}

.tech-badge {
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    padding:     9px 14px;
    border-radius: 14px;
    background:  rgba(255,255,255,0.03);
    border:      1px solid rgba(255,255,255,0.07);
    cursor:      default;
    transition:  transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position:    relative;
    overflow:    hidden;
}

@media (min-width: 768px) {
    .tech-badge { gap: 10px; padding: 10px 18px; }
}

.tech-badge::before {
    content:       '';
    position:      absolute;
    inset:         0;
    background:    linear-gradient(135deg, color-mix(in srgb, var(--tech-couleur) 8%, transparent), transparent);
    opacity:       0;
    transition:    opacity 0.3s ease;
    border-radius: inherit;
}

.tech-badge:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tech-couleur) 40%, transparent); background: rgba(255,255,255,0.05); box-shadow: 0 8px 20px color-mix(in srgb, var(--tech-couleur) 15%, transparent); }
.tech-badge:hover::before { opacity: 1; }

.tech-badge__icone { font-size: 1.3rem; color: var(--tech-couleur); flex-shrink: 0; transition: transform 0.3s ease; position: relative; z-index: 1; }
.tech-badge__icone--solid { display: none; }
.tech-badge:hover .tech-badge__icone { transform: scale(1.15); }
.tech-badge__nom { font-size: 0.85rem; font-weight: 600; color: var(--home-texte-blanc); white-space: nowrap; position: relative; z-index: 1; }

@media (min-width: 768px) {
    .tech-badge__icone { font-size: 1.4rem; }
    .tech-badge__nom   { font-size: 0.9rem; }
}

.tech-badge__niveau { display: flex; gap: 3px; align-items: center; position: relative; z-index: 1; margin-left: 4px; }
.tech-niveau-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: background 0.3s ease; }
.tech-niveau-dot.actif { background: var(--tech-couleur); box-shadow: 0 0 4px var(--tech-couleur); }

/* =========================================
   16. SOFT SKILLS
   ========================================= */
.section-soft-skills { padding: 20px 0 80px; }
.grille-soft-skills { display: grid; grid-template-columns: 1fr; gap: 20px; }

@media (min-width: 600px) {
    .grille-soft-skills { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
}

.carte-soft-skill { background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); border: 1px solid var(--home-bordure-verre); border-radius: 20px; padding: 32px 22px; text-align: center; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; position: relative; overflow: hidden; }
.carte-soft-skill::after { content: ''; position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; border-radius: 50%; background: rgba(96,165,250,0.15); filter: blur(20px); transition: opacity 0.4s ease; opacity: 0; pointer-events: none; }
.carte-soft-skill:hover::after { opacity: 1; }
.carte-soft-skill:hover { transform: translateY(-10px); border-color: rgba(96,165,250,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.soft-icone { font-size: 2.5rem; color: var(--home-bleu-accent); margin-bottom: 16px; transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), color 0.4s ease; display: inline-block; }
.carte-soft-skill:hover .soft-icone { transform: scale(1.2) rotate(8deg); color: var(--home-violet-clair); }
.carte-soft-skill h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.carte-soft-skill .liste-qualites { list-style: none; padding: 0; margin: 0; text-align: left; }
.carte-soft-skill .liste-qualites li { font-size: 0.9rem; color: var(--home-texte-discret); line-height: 1.65; margin-bottom: 8px; }
.carte-soft-skill .liste-qualites li:last-child { margin-bottom: 0; }

/* =========================================
   17. TIMELINE EXPÉRIENCES — MOBILE FIRST
   ========================================= */
.section-timeline { padding: 60px 0; }

@media (min-width: 768px) {
    .section-timeline { padding: 80px 0; }
}

.timeline-conteneur { position: relative; max-width: 900px; margin: 0 auto; padding: 30px 0; }

/* MOBILE FIRST : ligne à gauche */
.timeline-ligne-centrale {
    position:         absolute;
    top:              0;
    bottom:           0;
    /* MOBILE : ligne à gauche */
    left:             20px;
    width:            2px;
    background:       linear-gradient(180deg, transparent, var(--home-violet-fort) 20%, var(--home-violet-fort) 80%, transparent);
    opacity:          0.5;
    transform-origin: top center;
}

@media (min-width: 992px) {
    .timeline-ligne-centrale {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-ligne-centrale.animate { animation: scrollProgress 1.5s ease-out both; }

/* MOBILE FIRST : tous les éléments en pleine largeur */
.timeline-element {
    position:      relative;
    width:         100%;
    margin-bottom: 40px;
    padding-left:  60px !important;
    padding-right: 0 !important;
    text-align:    left !important;
    left:          0 !important;
}

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

.timeline-element.gauche.visible,
.timeline-element.droite.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

/* MOBILE : point à gauche pour tous */
.timeline-point {
    position:      absolute;
    left:          11px !important;
    right:         auto !important;
    top:           28px;
    width:         18px;
    height:        18px;
    border-radius: 50%;
    background:    var(--home-bg-dark);
    border:        3px solid var(--home-violet-clair);
    box-shadow:    0 0 0 4px rgba(167,139,250,0.15), 0 0 20px rgba(167,139,250,0.4);
    z-index:       10;
    transition:    box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-element:hover .timeline-point { box-shadow: 0 0 0 6px rgba(167,139,250,0.2), 0 0 30px rgba(167,139,250,0.6); transform: scale(1.2); }

/* Desktop : retour à l'alternance gauche/droite */
@media (min-width: 992px) {
    .timeline-element       { width: 50%; padding-left: 0 !important; margin-bottom: 60px; }
    .timeline-element.gauche { padding-right: 50px !important; text-align: right !important; left: 0 !important; }
    .timeline-element.gauche.visible { animation: slideInLeft 0.8s cubic-bezier(0.16,1,0.3,1) both; }
    .timeline-element.droite { padding-left: 50px !important; text-align: left !important; left: 50% !important; }
    .timeline-element.droite.visible { animation: slideInRight 0.8s cubic-bezier(0.16,1,0.3,1) both; }
    .timeline-element.gauche .timeline-point { right: -10px !important; left: auto !important; }
    .timeline-element.droite .timeline-point { left: -10px !important; right: auto !important; }
    .timeline-element.gauche .exp-entreprise { justify-content: flex-end; }
    .timeline-element.gauche .etiquettes-competences { justify-content: flex-end; }
}

.exp-date { display: inline-block; color: var(--home-bleu-accent); font-weight: 600; font-size: 0.82rem; margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase; }
.exp-titre { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin: 0 0 5px; font-weight: 700; color: var(--home-texte-blanc); }
.exp-entreprise { font-size: 0.95rem; color: var(--home-texte-discret); margin: 0 0 14px; display: flex; gap: 8px; align-items: center; }
.exp-taches { list-style: none; padding: 0; margin: 0; color: var(--home-texte-discret); line-height: 1.65; font-size: 0.92rem; text-align: left; direction: ltr; }
.exp-taches li { margin-bottom: 8px; position: relative; padding-left: 15px; }
.exp-taches li::before { content: '\2022'; color: var(--home-violet-clair); position: absolute; left: 0; }

/* =========================================
   18. FORMATIONS
   ========================================= */
.section-formations { padding: 60px 0; }

@media (min-width: 768px) {
    .section-formations { padding: 80px 0; }
}

.grille-formations { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }

@media (min-width: 600px) {
    .grille-formations { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
}

.entete-formation { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.formation-icone { font-size: 2.2rem; color: var(--home-bleu-accent); transition: transform 0.3s ease; }
.glass-card:hover .formation-icone { transform: scale(1.1) rotate(-5deg); }
.badge-en-cours { background: rgba(96,165,250,0.1); color: var(--home-bleu-accent); padding: 5px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; border: 1px solid rgba(96,165,250,0.3); }
.formation-date { color: var(--home-texte-discret); font-size: 0.88rem; }
.formation-titre { font-size: 1.25rem; font-weight: 700; margin: 0 0 5px; }
.formation-ecole { color: var(--home-violet-clair); font-weight: 500; font-size: 0.95rem; margin: 0 0 12px; }
.formation-description { color: var(--home-texte-discret); line-height: 1.65; font-size: 0.92rem; margin: 0; }

/* =========================================
   19. CERTIFICATIONS
   ========================================= */
.section-certifications { padding: 60px 0; text-align: center; }

@media (min-width: 768px) {
    .section-certifications { padding: 80px 0; }
}

/* MOBILE FIRST : colonne, puis flex wrap sur desktop */
.cert-grille { display: flex; flex-direction: column; align-items: center; gap: 24px; }

@media (min-width: 600px) {
    .cert-grille { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 30px; }
}

.cert-item { position: relative; display: inline-block; }

.cert-lueur {
    position:       absolute;
    top:            50%;
    left:           50%;
    transform:      translate(-50%,-50%);
    width:          120%;
    height:         120%;
    background:     radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 60%);
    filter:         blur(30px);
    z-index:        1;
    pointer-events: none;
    animation:      lueur-pulse 4s ease-in-out infinite;
}

.cert-boite-verre {
    position:        relative;
    z-index:         10;
    background:      rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border:          1px solid var(--home-bordure-verre);
    border-radius:   24px;
    padding:         20px;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             14px;
    box-shadow:      0 20px 40px rgba(0,0,0,0.3);
    transition:      border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .cert-boite-verre { padding: 24px; gap: 16px; }
}

.cert-boite-verre:hover { border-color: var(--home-bordure-violet); box-shadow: 0 30px 60px rgba(124,58,237,0.2); }

.cert-iframe-wrap { background: #ffffff; border-radius: 16px; padding: 12px; overflow: hidden; display: inline-block; }
.cert-iframe-wrap iframe { border-radius: 12px; display: block; }

.cert-fallback { width: 180px; height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--cert-couleur) 10%, transparent), rgba(255,255,255,0.02)); border: 1px solid color-mix(in srgb, var(--cert-couleur) 30%, transparent); border-radius: 16px; }
.cert-fallback__icone { font-size: 2.8rem; color: var(--cert-couleur); }
.cert-fallback__nom { font-size: 0.85rem; font-weight: 700; text-align: center; color: var(--home-texte-blanc); }
.cert-fallback__organisme { font-size: 0.75rem; color: var(--home-texte-discret); text-align: center; }
.cert-fallback__date { font-size: 0.75rem; color: var(--cert-couleur); font-weight: 600; }

.cert-meta { text-align: center; }
.cert-meta__nom { font-size: 0.9rem; font-weight: 700; color: var(--home-texte-blanc); margin: 0 0 4px; }
.cert-meta__organisme { font-size: 0.8rem; color: var(--home-texte-discret); margin: 0 0 6px; }
.cert-meta__date { font-size: 0.78rem; color: var(--home-bleu-accent); display: flex; align-items: center; gap: 5px; justify-content: center; }

/* =========================================
   20. PROJETS — MOBILE FIRST
   ========================================= */
.section-projets { padding: 60px 0 100px; }

/* MOBILE FIRST : colonne */
.rangee-projet {
    display:        flex;
    flex-direction: column;
    gap:            24px;
    margin-bottom:  60px;
}

.rangee-projet:last-child { margin-bottom: 0; }

.contenu-projet { flex: 1; position: relative; z-index: 10; }
.projet-label { color: var(--home-violet-clair); font-weight: 500; font-size: 0.9rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.projet-titre { font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 800; margin: 0 0 20px; line-height: 1.2; letter-spacing: -0.02em; }

.projet-description-verre {
    background:      linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border:          1px solid var(--home-bordure-verre);
    padding:         20px;
    border-radius:   20px;
    margin-bottom:   20px;
    transition:      border-color 0.3s ease;
    /* MOBILE FIX : pas de width ni margin négatif sur mobile */
    width:           100% !important;
    margin-left:     0 !important;
}

.projet-description-verre:hover { border-color: var(--home-bordure-violet); }
.projet-description-verre p { margin: 0; color: rgba(250,250,250,0.88); line-height: 1.75; font-size: 1rem; }

.projet-lien { color: var(--home-texte-blanc); text-decoration: none; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.3s ease, gap 0.3s ease; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 4px; }
.projet-lien:hover { color: var(--home-violet-clair); gap: 16px; border-bottom-color: var(--home-violet-clair); }

.visuel-projet { flex: 1; position: relative; z-index: 1; }
.visuel-interieur { background: #06040A; padding: 10px; border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04); transition: transform 0.5s ease, box-shadow 0.5s ease; position: relative; overflow: hidden; }
.visuel-projet:hover .visuel-interieur { transform: scale(1.02) translateY(-5px); box-shadow: 0 35px 70px rgba(0,0,0,0.7), 0 0 40px rgba(124,58,237,0.1); }
.projet-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; }
.visuel-interieur::after { content: ''; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; border-radius: 12px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); transform: translateX(-100%); pointer-events: none; }
.visuel-projet:hover .visuel-interieur::after { animation: shimmer 0.8s ease; }

/* Desktop : rangées alternées */
@media (min-width: 992px) {
    .rangee-projet {
        flex-direction: row;
        align-items:    center;
        gap:            50px;
        margin-bottom:  120px;
    }

    .visuel-projet { flex: 1.2; }

    .rangee-projet:not(.reverse) .projet-description-verre { width: 115% !important; }
    .rangee-projet.reverse .contenu-projet  { order: 2; }
    .rangee-projet.reverse .visuel-projet   { order: 1; }
    .rangee-projet.reverse .projet-description-verre { width: 115% !important; margin-left: -15% !important; }
}

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


/* =========================================
   POPUP TECHNOLOGIE
   ========================================= */
.tech-badge {
    cursor: pointer; /* remplace cursor: default */
}

/* Overlay */
.tech-popup-overlay {
    position:         fixed;
    inset:            0;
    background:       rgba(11, 7, 21, 0.75);
    backdrop-filter:  blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index:          9999;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    padding:          20px;
    opacity:          0;
    pointer-events:   none;
    transition:       opacity 0.25s ease;
}

.tech-popup-overlay.actif {
    opacity:        1;
    pointer-events: auto;
}

/* Boîte popup */
.tech-popup-boite {
    background:      linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border:          1px solid var(--home-bordure-verre);
    border-radius:   24px;
    padding:         32px 28px;
    max-width:       420px;
    width:           100%;
    position:        relative;
    box-shadow:      0 30px 60px rgba(0,0,0,0.5),
                     0 0 0 1px rgba(255,255,255,0.04) inset;
    transform:       translateY(20px) scale(0.97);
    transition:      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow:        hidden;
}

.tech-popup-boite::before {
    content:    '';
    position:   absolute;
    top:        0;
    left:       0;
    right:      0;
    height:     2px;
    background: linear-gradient(90deg, transparent, var(--tech-popup-couleur, #a78bfa), transparent);
}

.tech-popup-overlay.actif .tech-popup-boite {
    transform: translateY(0) scale(1);
}

/* En-tête popup */
.tech-popup-entete {
    display:     flex;
    align-items: center;
    gap:         14px;
    margin-bottom: 20px;
}

.tech-popup-icone-enveloppe {
    width:         52px;
    height:        52px;
    border-radius: 14px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    background:    color-mix(in srgb, var(--tech-popup-couleur, #a78bfa) 12%, transparent);
    border:        1px solid color-mix(in srgb, var(--tech-popup-couleur, #a78bfa) 25%, transparent);
    flex-shrink:   0;
}

.tech-popup-icone-enveloppe i {
    font-size: 1.6rem;
    color:     var(--tech-popup-couleur, #a78bfa);
}

.tech-popup-infos { flex: 1; }

.tech-popup-nom {
    font-size:   1.15rem;
    font-weight: 700;
    color:       var(--home-texte-blanc);
    margin:      0 0 4px;
    line-height: 1.2;
}

.tech-popup-categorie {
    font-size:      0.75rem;
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color:          var(--tech-popup-couleur, #a78bfa);
    opacity:        0.8;
}

/* Niveau */
.tech-popup-niveau {
    display:     flex;
    align-items: center;
    gap:         6px;
    margin-bottom: 16px;
}

.tech-popup-niveau-label {
    font-size: 0.78rem;
    color:     var(--home-texte-discret);
}

.tech-popup-dots {
    display: flex;
    gap:     5px;
}

.tech-popup-dot {
    width:         8px;
    height:        8px;
    border-radius: 50%;
    background:    rgba(255,255,255,0.12);
}

.tech-popup-dot.actif {
    background: var(--tech-popup-couleur, #a78bfa);
    box-shadow: 0 0 6px var(--tech-popup-couleur, #a78bfa);
}

/* Séparateur */
.tech-popup-separateur {
    height:     1px;
    background: linear-gradient(90deg, transparent, var(--home-bordure-verre), transparent);
    margin:     0 0 16px;
}

/* Description */
.tech-popup-description {
    color:       var(--home-texte-discret);
    font-size:   0.93rem;
    line-height: 1.7;
    margin:      0;
}

/* Bouton fermer */
.tech-popup-fermer {
    position:   absolute;
    top:        16px;
    right:      16px;
    background: rgba(255,255,255,0.06);
    border:     1px solid rgba(255,255,255,0.08);
    color:      var(--home-texte-discret);
    width:      30px;
    height:     30px;
    border-radius: 50%;
    display:    flex;
    align-items: center;
    justify-content: center;
    cursor:     pointer;
    font-size:  0.9rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.tech-popup-fermer:hover {
    background: rgba(255,255,255,0.12);
    color:      var(--home-texte-blanc);
    transform:  rotate(90deg);
}
./* ============================================================
   HOME.CSS — Mobile First
   ============================================================ */

/* =========================================
   1. VARIABLES CSS
   ========================================= */
:root {
    --home-bg-dark:         #0B0715;
    --home-bg-card:         rgba(255, 255, 255, 0.03);
    --home-texte-blanc:     #FAFAFA;
    --home-texte-discret:   #A19DB0;
    --home-violet-clair:    #A78BFA;
    --home-violet-fort:     #7C3AED;
    --home-bleu-accent:     #60A5FA;
    --home-bordure-verre:   rgba(255, 255, 255, 0.08);
    --home-bordure-violet:  rgba(167, 139, 250, 0.3);
}

/* =========================================
   2. KEYFRAMES
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes lueur-flotte {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20px, -20px) scale(1.05); }
    66%      { transform: translate(-15px, 15px) scale(0.97); }
}
@keyframes lueur-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes bague-rotation { to { transform: rotate(360deg); } }
@keyframes bonjour-entre {
    from { opacity: 0; transform: translate(0, -10px); }
    to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes cercle-apparait {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes clignotement {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}
@keyframes roue-defilement {
    0%   { opacity: 1; transform: translateY(0); }
    60%  { opacity: 0; transform: translateY(8px); }
    100% { opacity: 0; transform: translateY(0); }
}
@keyframes indicateur-apparait {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 0.5; transform: translateX(-50%) translateY(0); }
}
@keyframes radar-pulse {
    0%   { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2);   opacity: 0; }
}
@keyframes scrollProgress {
    from { transform: translateX(-50%) scaleY(0); }
    to   { transform: translateX(-50%) scaleY(1); }
}
@keyframes floatBlob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes tech-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--tech-couleur-alpha, rgba(167,139,250,0)); }
    50%      { box-shadow: 0 0 0 6px var(--tech-couleur-alpha, rgba(167,139,250,0)); }
}

/* =========================================
   3. RESET SCOPÉ
   ========================================= */
.home-main,
.home-main *,
.home-main *::before,
.home-main *::after { box-sizing: border-box; }

/* =========================================
   4. LAYOUT GLOBAL
   ========================================= */
/* MOBILE FIX : overflow-x sur home-main aussi */
.home-main { overflow-x: hidden; color: var(--home-texte-blanc); }
.home-main .container {
    width:      100%;
    max-width:  1050px;
    margin:     0 auto;
    /* MOBILE FIX : padding réduit */
    padding:    0 16px;
}

@media (min-width: 768px) {
    .home-main .container { padding: 0 25px; }
}

/* =========================================
   5. UTILITAIRES
   ========================================= */
.home-text-purple { color: var(--home-violet-clair) !important; font-weight: 500; }
.home-text-blue   { color: var(--home-bleu-accent) !important; font-weight: 600; }
.home-text-muted  { color: var(--home-texte-discret); font-size: 0.9em; }
.home-mt-3        { margin-top: 15px; }

.home-badge-contrat {
    display:       inline-block;
    background:    rgba(124, 58, 237, 0.12);
    color:         var(--home-violet-clair);
    padding:       3px 10px;
    border-radius: 20px;
    font-size:     0.75rem;
    font-weight:   600;
    border:        1px solid rgba(124, 58, 237, 0.25);
    margin-left:   8px;
    vertical-align: middle;
}
.home-badge-encours {
    display:       inline-block;
    background:    rgba(16, 185, 129, 0.12);
    color:         #34d399;
    padding:       3px 10px;
    border-radius: 20px;
    font-size:     0.75rem;
    font-weight:   600;
    border:        1px solid rgba(16, 185, 129, 0.25);
    margin-left:   8px;
    vertical-align: middle;
}

/* =========================================
   6. BOUTONS — MOBILE FIRST
   ========================================= */
.btn-primary, .btn-secondary {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    gap:             8px;
    /* MOBILE FIX : pleine largeur mobile par défaut */
    width:           100%;
    padding:         14px 28px;
    border-radius:   50px;
    font-weight:     600;
    font-size:       0.95rem;
    text-decoration: none;
    transition:      all 0.3s ease;
    border:          none;
    cursor:          pointer;
    font-family:     inherit;
    /* MOBILE FIX : touch target */
    min-height:      48px;
}

@media (min-width: 600px) {
    .btn-primary, .btn-secondary {
        width:   auto;
        padding: 12px 28px;
    }
}

.btn-primary  { background: var(--home-violet-fort); color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,0.4); }
.btn-primary:hover  { background: #8b5cf6; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(124,58,237,0.6); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; transform: translateY(-3px); }

/* =========================================
   7. CARTE GLASS
   ========================================= */
.glass-card {
    background:   var(--home-bg-card);
    border:       1px solid var(--home-bordure-verre);
    border-radius: 24px;
    padding:      28px 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:   transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275),
                  border-color 0.4s ease,
                  box-shadow 0.4s ease,
                  background 0.4s ease;
    box-shadow:   0 10px 30px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .glass-card { padding: 35px 30px; }
}

.glass-card:hover {
    transform:    translateY(-8px);
    background:   rgba(255,255,255,0.05);
    border-color: var(--home-bordure-violet);
    box-shadow:   0 20px 40px rgba(124,58,237,0.15);
}

/* =========================================
   8. ANIMATIONS D'APPARITION
   ========================================= */
.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeInUp 0.9s cubic-bezier(0.16,1,0.3,1) both; }

/* =========================================
   9. ENTÊTES DE SECTION
   ========================================= */
.section-entete { text-align: center; margin-bottom: 50px; }

@media (min-width: 768px) {
    .section-entete { margin-bottom: 70px; }
}

.section-titre {
    font-size:     clamp(1.8rem, 5vw, 3.5rem);
    font-weight:   800;
    letter-spacing: -0.03em;
    margin:        0 0 12px;
    line-height:   1.1;
}

.section-sous-titre {
    color:       var(--home-texte-discret);
    font-size:   1rem;
    max-width:   600px;
    margin:      0 auto;
    line-height: 1.7;
}

/* =========================================
   10. HERO — MOBILE FIRST
   ========================================= */
.hero-section {
    min-height:      100svh;
    display:         flex;
    flex-direction:  column;
    justify-content: center;
    /* MOBILE FIX : padding-top réduit */
    padding-top:     80px;
    position:        relative;
    overflow:        hidden;
}

.hero-section::before {
    content:        '';
    position:       absolute;
    top:            -200px;
    left:           -200px;
    width:          min(600px, 100vw);
    height:         600px;
    border-radius:  50%;
    background:     radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
    filter:         blur(40px);
    pointer-events: none;
    animation:      lueur-flotte 8s ease-in-out infinite;
    z-index:        0;
}



/* MOBILE FIRST : colonne centrée */
.hero-disposition-haut {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    text-align:     center;
    gap:            40px;
    margin-bottom:  50px;
    position:       relative;
    z-index:        1;
}

@media (min-width: 992px) {
    .hero-disposition-haut {
        flex-direction:  row;
        align-items:     center;
        justify-content: flex-start;
        text-align:      left;
        gap:             80px;
        margin-bottom:   80px;
    }
}

/* Avatar */
.hero-cote-avatar {
    position:       relative;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    flex-shrink:    0;
}

/* MOBILE FIX : avatar plus petit sur mobile */
.avatar-conteneur {
    position:    relative;
    width:       200px;
    height:      200px;
    transition:  transform 0.3s ease-out;
    will-change: transform;
}

@media (min-width: 768px) {
    .avatar-conteneur { width: 260px; height: 260px; }
}

/* Bulle Bonjour */
.bonjour-annotation {
    position:       absolute;
    top:            -50px;
    right:          0;
    left:           auto;
    transform:      none;
    display:        flex;
    align-items:    flex-start;
    gap:            6px;
    z-index:        20;
    animation:      bonjour-entre 1s 0.8s both;
    pointer-events: none;
}

@media (min-width: 992px) {
    .bonjour-annotation { top: -60px; right: 40px; }
}

.bonjour-texte {
    font-size:       0.85rem;
    font-weight:     400;
    white-space:     nowrap;
    background:      rgba(255,255,255,0.05);
    border:          1px solid rgba(255,255,255,0.1);
    padding:         6px 14px;
    border-radius:   30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    line-height:     1.4;
}

.fleche-dessinee {
    flex-shrink:  0;
    opacity:      0.6;
    margin-top:   20px;
    margin-left:  -50px;
    transform:    none;
}

/* Lueur & bague */
.avatar-lueur {
    position:       absolute;
    top:            50%;
    left:           50%;
    transform:      translate(-50%,-50%);
    width:          140%;
    height:         140%;
    background:     radial-gradient(circle, rgba(124,58,237,0.5) 0%, transparent 65%);
    filter:         blur(25px);
    z-index:        1;
    animation:      lueur-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.avatar-image-enveloppe {
    position:        relative;
    z-index:         10;
    width:           100%;
    height:          100%;
    border-radius:   40px;
    overflow:        hidden;
    border:          1px solid var(--home-bordure-verre);
    box-shadow:      0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(167,139,250,0.1) inset;
    background-color: #150F24;
    transition:      box-shadow 0.4s ease, transform 0.4s ease;
}

.avatar-image-enveloppe:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124,58,237,0.3);
    transform:  scale(1.02);
}

.avatar-img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avatar-image-enveloppe:hover .avatar-img { transform: scale(1.04); }

.avatar-bague {
    position:      absolute;
    inset:         -8px;
    border-radius: 48px;
    border:        1px solid rgba(167,139,250,0.15);
    z-index:       5;
    pointer-events: none;
    animation:     bague-rotation 20s linear infinite;
}

.avatar-bague::before {
    content:       '';
    position:      absolute;
    top:           -3px;
    left:          50%;
    width:         6px;
    height:        6px;
    border-radius: 50%;
    background:    var(--home-violet-clair);
    box-shadow:    0 0 10px var(--home-violet-clair);
    transform:     translateX(-50%);
}

/* Titre hero */
.hero-cote-titre {
    max-width: 560px;
    position:  relative;
    z-index:   1;
    width:     100%;
}

.sous-titre-hero {
    font-size:   1rem;
    font-weight: 400;
    margin-bottom: 10px;
    color:       var(--home-texte-discret);
    letter-spacing: 0.02em;
}

.titre-principal {
    font-size:      clamp(2.4rem, 6vw, 4.8rem);
    font-weight:    800;
    line-height:    1.05;
    letter-spacing: -0.04em;
    margin:         0 0 16px;
    animation:      fadeInScale 0.7s 0.3s both;
}

.mot-mis-en-avant {
    position: relative;
    display:  inline-block;
    color:    var(--home-violet-clair);
    z-index:  1;
}

.cercle-dessine {
    position:       absolute;
    top:            50%;
    left:           50%;
    transform:      translate(-50%,-50%);
    width:          115%;
    height:         130%;
    border:         2.5px solid rgba(167,139,250,0.35);
    border-radius:  50%;
    pointer-events: none;
    z-index:        -1;
    animation:      cercle-apparait 1.5s 0.5s both;
}

.sous-texte-hero {
    font-size:   1rem;
    color:       var(--home-texte-discret);
    margin-top:  10px;
    line-height: 1.6;
    max-width:  450px;
}

/* Bas hero */
.hero-disposition-bas {
    max-width: 750px;
    position:  relative;
    z-index:   1;
    /* MOBILE FIX : centré sur mobile */
    text-align: center;
    margin:     0 auto;
}

@media (min-width: 992px) {
    .hero-disposition-bas {
        text-align: left;
        margin:     0;
    }
}

.titre-frappe {
    font-size:      clamp(1.5rem, 4vw, 2.8rem);
    font-weight:    700;
    letter-spacing: -0.03em;
    margin:         0pxx 0 12px;
    margin-top: -30px !important;
    min-height:     1.3em;
}

.curseur {
    animation: clignotement 1s step-end infinite;
    color:     var(--home-texte-discret);
    font-weight: 300;
}

/* Statut actuel */
.statut-actuel {
    font-size:       1rem;
    color:           var(--home-texte-blanc);
    display:         flex;
    align-items:     center;
    flex-wrap:       wrap;
    justify-content: center;
    gap:             10px;
    margin-bottom:   20px;
}

@media (min-width: 992px) {
    .statut-actuel { justify-content: flex-start; }
}

/* =========================================
   BADGE ÉCOLE
   ========================================= */
.badge-ecole {
    display:         inline-flex;
    align-items:     stretch;
    background:      rgba(124, 58, 237, 0.08);
    border:          1px solid rgba(124, 58, 237, 0.22);
    border-radius:   12px;
    overflow:        hidden;
    text-decoration: none;
    transition:      border-color 0.3s ease, box-shadow 0.3s ease;
    vertical-align:  middle;
}

.badge-ecole:hover {
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow:   0 4px 16px rgba(124, 58, 237, 0.2);
}

.badge-ecole__logo {
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         8px 10px;
    background:      rgba(124, 58, 237, 0.16);
    border-right:    1px solid rgba(124, 58, 237, 0.18);
    flex-shrink:     0;
}

.logo-ecole-inline { object-fit: contain; display: block; }

.badge-ecole__texte {
    display:        flex;
    flex-direction: column;
    justify-content: center;
    padding:        6px 14px 6px 12px;
    line-height:    1.2;
    gap:            2px;
}

.badge-ecole__nom {
    font-size:      0.92rem;
    font-weight:    700;
    color:          var(--home-violet-clair);
    letter-spacing: -0.01em;
}

.badge-ecole__sous {
    font-size:      0.66rem;
    font-weight:    500;
    color:          var(--home-texte-discret);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.texte-bio {
    font-size:   1rem;
    line-height: 1.75;
    color:       var(--home-texte-discret);
}

/* Indicateur scroll — masqué sur mobile */
.indicateur-scroll { display: none; }

@media (min-width: 992px) {
    .indicateur-scroll {
        display:     flex;
        position:    absolute;
        bottom:      30px;
        left:        50%;
        transform:   translateX(-50%);
        flex-direction: column;
        align-items: center;
        gap:         8px;
        opacity:     0.5;
        animation:   indicateur-apparait 2s 2s both;
        z-index:     1;
    }
}

.indicateur-scroll__souris  { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.3); border-radius: 11px; display: flex; justify-content: center; padding-top: 5px; }
.indicateur-scroll__roue    { width: 3px; height: 6px; border-radius: 2px; background: rgba(255,255,255,0.6); animation: roue-defilement 2s ease-in-out infinite; }
.indicateur-scroll__texte   { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

/* =========================================
   11. SECTION ALTERNANCE — MOBILE FIRST
   ========================================= */
.section-alternance { padding: 0 0 60px; }

@media (min-width: 768px) {
    .section-alternance { padding: 0 0 80px; }
}

.banniere-alternance {
    position:   relative;
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(147,51,234,0.05));
    border:     1px solid rgba(147,51,234,0.3);
    border-radius: 20px;
    /* MOBILE FIX : padding réduit */
    padding:    24px 20px;
    overflow:   hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .banniere-alternance { padding: 35px 40px; border-radius: 24px; }
}

.banniere-alternance:hover {
    border-color: rgba(147,51,234,0.5);
    box-shadow:   0 20px 50px rgba(124,58,237,0.15);
}

.banniere-lueur-fond {
    position:       absolute;
    top:            0;
    right:          0;
    width:          300px;
    height:         300px;
    background:     radial-gradient(circle, rgba(147,51,234,0.15) 0%, transparent 60%);
    filter:         blur(40px);
    pointer-events: none;
    z-index:        1;
}

/* MOBILE FIRST : colonne */
.banniere-contenu {
    position:       relative;
    z-index:        10;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    text-align:     center;
    gap:            20px;
}

@media (min-width: 768px) {
    .banniere-contenu {
        flex-direction: row;
        text-align:     left;
        gap:            30px;
    }
}

.banniere-icone-enveloppe {
    position:        relative;
    width:           56px;
    height:          56px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      rgba(147,51,234,0.2);
    border-radius:   50%;
    flex-shrink:     0;
}

.banniere-icone { font-size: 1.8rem; color: var(--home-violet-clair); z-index: 5; position: relative; }
.anneau-pulse   { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--home-violet-clair); animation: radar-pulse 2s linear infinite; opacity: 0; }
.anneau-pulse.delai { animation-delay: 1s; }

.banniere-texte { flex: 1; }
.banniere-titre { margin: 0 0 5px; font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; color: #fff; }
.banniere-description { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.5; }

/* MOBILE FIRST : boutons en colonne */
.banniere-actions {
    display:        flex;
    flex-direction: column;
    gap:            10px;
    flex-shrink:    0;
    width:          100%;
}

@media (min-width: 600px) {
    .banniere-actions {
        flex-direction: row;
        width:          auto;
    }
}

/* =========================================
   12. SÉPARATEURS
   ========================================= */
.separateur-lumineux {
    position:   relative;
    height:     1px;
    width:      100%;
    max-width:  700px;
    margin:     0 auto;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.2), rgba(96,165,250,0.15), rgba(167,139,250,0.2), transparent);
}

.separateur-avec-texte { position: relative; text-align: center; margin: 20px auto; max-width: 700px; }
.separateur-avec-texte::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(167,139,250,0.2), rgba(96,165,250,0.15), rgba(167,139,250,0.2), transparent); }
.separateur-avec-texte span { position: relative; display: inline-block; background: var(--home-bg-dark); padding: 0 20px; font-size: 0.8rem; color: var(--home-texte-discret); letter-spacing: 0.15em; text-transform: uppercase; z-index: 1; }

/* =========================================
   13. STATS — MOBILE FIRST
   ========================================= */
/* MOBILE FIRST : 2 colonnes */
.banniere-stats {
    position:      relative;
    display:       grid;
    grid-template-columns: repeat(2, 1fr);
    gap:           24px 16px;
    padding:       28px 20px;
    margin:        32px 0;
    background:    linear-gradient(135deg, rgba(255,255,255,0.02), rgba(124,58,237,0.04));
    border:        1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    overflow:      hidden;
    text-align:    center;
}

@media (min-width: 768px) {
    .banniere-stats {
        grid-template-columns: repeat(4, 1fr);
        gap:    30px;
        padding: 50px 40px;
        margin: 40px 0;
        border-radius: 24px;
    }
}

.banniere-stats::before {
    content:        '';
    position:       absolute;
    top:            -50%;
    left:           -50%;
    width:          200%;
    height:         200%;
    background:     radial-gradient(circle at 30% 50%, rgba(124,58,237,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 70% 50%, rgba(96,165,250,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.stat-item { position: relative; z-index: 1; }
.stat-item::before {
    content:    '';
    position:   absolute;
    top:        50%;
    right:      -15px;
    transform:  translateY(-50%);
    width:      1px;
    height:     60%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08), transparent);
}
/* MOBILE FIX : masquer tous les séparateurs sur 2 colonnes */
.stat-item:nth-child(2n)::before { display: none; }
.stat-item:last-child::before    { display: none; }

@media (min-width: 768px) {
    .stat-item:nth-child(2n)::before { display: block; }
    .stat-item:last-child::before    { display: none; }
}

.stat-valeur { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--home-violet-clair); line-height: 1; margin-bottom: 8px; display: block; }
.stat-label  { font-size: 0.82rem; color: var(--home-texte-discret); letter-spacing: 0.05em; line-height: 1.4; }

/* =========================================
   14. COMPÉTENCES TECHNIQUES
   ========================================= */
.section-competences { padding: 60px 0; }

@media (min-width: 768px) {
    .section-competences { padding: 80px 0; }
}

.grille-competences { display: grid; grid-template-columns: 1fr; gap: 20px; }

@media (min-width: 600px) {
    .grille-competences { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
}

.carte-competence { position: relative; overflow: hidden; }
.carte-competence::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--home-violet-fort), transparent); opacity: 0; transition: opacity 0.4s ease; }
.carte-competence:hover::before { opacity: 1; }
.competence-icone { font-size: 2.2rem; color: var(--home-violet-clair); margin-bottom: 16px; filter: drop-shadow(0 0 10px rgba(167,139,250,0.4)); transition: transform 0.3s ease, filter 0.3s ease; display: inline-block; }
.carte-competence:hover .competence-icone { transform: scale(1.15) rotate(-5deg); filter: drop-shadow(0 0 15px rgba(167,139,250,0.7)); }
.carte-competence h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.02em; }
.texte-competence { color: var(--home-texte-discret); font-size: 0.95rem; line-height: 1.6; margin: 0 0 16px; }
.etiquettes-competences { display: flex; flex-wrap: wrap; gap: 8px; }
.etiquette { background: rgba(124,58,237,0.1); color: var(--home-violet-clair); padding: 6px 14px; border-radius: 30px; font-size: 0.82rem; font-weight: 500; border: 1px solid rgba(124,58,237,0.2); transition: all 0.3s ease; display: inline-block; }
.etiquette:hover { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.4); transform: translateY(-2px); }

/* =========================================
   15. TECHNOLOGIES
   ========================================= */
.section-technologies { padding: 60px 0; }

@media (min-width: 768px) {
    .section-technologies { padding: 80px 0; }
}

.tech-groupe { margin-bottom: 40px; }
.tech-groupe:last-child { margin-bottom: 0; }

.tech-groupe-titre {
    display:        flex;
    align-items:    center;
    gap:            16px;
    font-size:      0.82rem;
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color:          var(--home-texte-discret);
    margin:         0 0 20px;
}

.tech-groupe-ligne { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(167,139,250,0.15), transparent); }
.tech-groupe-ligne:first-child { background: linear-gradient(270deg, rgba(167,139,250,0.15), transparent); }

.tech-grille { display: flex; flex-wrap: wrap; gap: 8px; }

@media (min-width: 768px) {
    .tech-grille { gap: 12px; }
}

.tech-badge {
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    padding:     9px 14px;
    border-radius: 14px;
    background:  rgba(255,255,255,0.03);
    border:      1px solid rgba(255,255,255,0.07);
    cursor:      default;
    transition:  transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position:    relative;
    overflow:    hidden;
}

@media (min-width: 768px) {
    .tech-badge { gap: 10px; padding: 10px 18px; }
}

.tech-badge::before {
    content:       '';
    position:      absolute;
    inset:         0;
    background:    linear-gradient(135deg, color-mix(in srgb, var(--tech-couleur) 8%, transparent), transparent);
    opacity:       0;
    transition:    opacity 0.3s ease;
    border-radius: inherit;
}

.tech-badge:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tech-couleur) 40%, transparent); background: rgba(255,255,255,0.05); box-shadow: 0 8px 20px color-mix(in srgb, var(--tech-couleur) 15%, transparent); }
.tech-badge:hover::before { opacity: 1; }

.tech-badge__icone { font-size: 1.3rem; color: var(--tech-couleur); flex-shrink: 0; transition: transform 0.3s ease; position: relative; z-index: 1; }
.tech-badge__icone--solid { display: none; }
.tech-badge:hover .tech-badge__icone { transform: scale(1.15); }
.tech-badge__nom { font-size: 0.85rem; font-weight: 600; color: var(--home-texte-blanc); white-space: nowrap; position: relative; z-index: 1; }

@media (min-width: 768px) {
    .tech-badge__icone { font-size: 1.4rem; }
    .tech-badge__nom   { font-size: 0.9rem; }
}

.tech-badge__niveau { display: flex; gap: 3px; align-items: center; position: relative; z-index: 1; margin-left: 4px; }
.tech-niveau-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: background 0.3s ease; }
.tech-niveau-dot.actif { background: var(--tech-couleur); box-shadow: 0 0 4px var(--tech-couleur); }

/* =========================================
   16. SOFT SKILLS
   ========================================= */
.section-soft-skills { padding: 20px 0 80px; }
.grille-soft-skills { display: grid; grid-template-columns: 1fr; gap: 20px; }

@media (min-width: 600px) {
    .grille-soft-skills { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
}

.carte-soft-skill { background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); border: 1px solid var(--home-bordure-verre); border-radius: 20px; padding: 32px 22px; text-align: center; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; position: relative; overflow: hidden; }
.carte-soft-skill::after { content: ''; position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; border-radius: 50%; background: rgba(96,165,250,0.15); filter: blur(20px); transition: opacity 0.4s ease; opacity: 0; pointer-events: none; }
.carte-soft-skill:hover::after { opacity: 1; }
.carte-soft-skill:hover { transform: translateY(-10px); border-color: rgba(96,165,250,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.soft-icone { font-size: 2.5rem; color: var(--home-bleu-accent); margin-bottom: 16px; transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), color 0.4s ease; display: inline-block; }
.carte-soft-skill:hover .soft-icone { transform: scale(1.2) rotate(8deg); color: var(--home-violet-clair); }
.carte-soft-skill h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.carte-soft-skill .liste-qualites { list-style: none; padding: 0; margin: 0; text-align: left; }
.carte-soft-skill .liste-qualites li { font-size: 0.9rem; color: var(--home-texte-discret); line-height: 1.65; margin-bottom: 8px; }
.carte-soft-skill .liste-qualites li:last-child { margin-bottom: 0; }

/* =========================================
   17. TIMELINE EXPÉRIENCES — MOBILE FIRST
   ========================================= */
.section-timeline { padding: 60px 0; }

@media (min-width: 768px) {
    .section-timeline { padding: 80px 0; }
}

.timeline-conteneur { position: relative; max-width: 900px; margin: 0 auto; padding: 30px 0; }

/* MOBILE FIRST : ligne à gauche */
.timeline-ligne-centrale {
    position:         absolute;
    top:              0;
    bottom:           0;
    /* MOBILE : ligne à gauche */
    left:             20px;
    width:            2px;
    background:       linear-gradient(180deg, transparent, var(--home-violet-fort) 20%, var(--home-violet-fort) 80%, transparent);
    opacity:          0.5;
    transform-origin: top center;
}

@media (min-width: 992px) {
    .timeline-ligne-centrale {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-ligne-centrale.animate { animation: scrollProgress 1.5s ease-out both; }

/* MOBILE FIRST : tous les éléments en pleine largeur */
.timeline-element {
    position:      relative;
    width:         100%;
    margin-bottom: 40px;
    padding-left:  60px !important;
    padding-right: 0 !important;
    text-align:    left !important;
    left:          0 !important;
}

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

.timeline-element.gauche.visible,
.timeline-element.droite.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

/* MOBILE : point à gauche pour tous */
.timeline-point {
    position:      absolute;
    left:          11px !important;
    right:         auto !important;
    top:           28px;
    width:         18px;
    height:        18px;
    border-radius: 50%;
    background:    var(--home-bg-dark);
    border:        3px solid var(--home-violet-clair);
    box-shadow:    0 0 0 4px rgba(167,139,250,0.15), 0 0 20px rgba(167,139,250,0.4);
    z-index:       10;
    transition:    box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-element:hover .timeline-point { box-shadow: 0 0 0 6px rgba(167,139,250,0.2), 0 0 30px rgba(167,139,250,0.6); transform: scale(1.2); }

/* Desktop : retour à l'alternance gauche/droite */
@media (min-width: 992px) {
    .timeline-element       { width: 50%; padding-left: 0 !important; margin-bottom: 60px; }
    .timeline-element.gauche { padding-right: 50px !important; text-align: right !important; left: 0 !important; }
    .timeline-element.gauche.visible { animation: slideInLeft 0.8s cubic-bezier(0.16,1,0.3,1) both; }
    .timeline-element.droite { padding-left: 50px !important; text-align: left !important; left: 50% !important; }
    .timeline-element.droite.visible { animation: slideInRight 0.8s cubic-bezier(0.16,1,0.3,1) both; }
    .timeline-element.gauche .timeline-point { right: -10px !important; left: auto !important; }
    .timeline-element.droite .timeline-point { left: -10px !important; right: auto !important; }
    .timeline-element.gauche .exp-entreprise { justify-content: flex-end; }
    .timeline-element.gauche .etiquettes-competences { justify-content: flex-end; }
}

.exp-date { display: inline-block; color: var(--home-bleu-accent); font-weight: 600; font-size: 0.82rem; margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase; }
.exp-titre { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin: 0 0 5px; font-weight: 700; color: var(--home-texte-blanc); }
.exp-entreprise { font-size: 0.95rem; color: var(--home-texte-discret); margin: 0 0 14px; display: flex; gap: 8px; align-items: center; }
.exp-taches { list-style: none; padding: 0; margin: 0; color: var(--home-texte-discret); line-height: 1.65; font-size: 0.92rem; text-align: left; direction: ltr; }
.exp-taches li { margin-bottom: 8px; position: relative; padding-left: 15px; }
.exp-taches li::before { content: '\2022'; color: var(--home-violet-clair); position: absolute; left: 0; }

/* =========================================
   18. FORMATIONS
   ========================================= */
.section-formations { padding: 60px 0; }

@media (min-width: 768px) {
    .section-formations { padding: 80px 0; }
}

.grille-formations { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }

@media (min-width: 600px) {
    .grille-formations { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
}

.entete-formation { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.formation-icone { font-size: 2.2rem; color: var(--home-bleu-accent); transition: transform 0.3s ease; }
.glass-card:hover .formation-icone { transform: scale(1.1) rotate(-5deg); }
.badge-en-cours { background: rgba(96,165,250,0.1); color: var(--home-bleu-accent); padding: 5px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; border: 1px solid rgba(96,165,250,0.3); }
.formation-date { color: var(--home-texte-discret); font-size: 0.88rem; }
.formation-titre { font-size: 1.25rem; font-weight: 700; margin: 0 0 5px; }
.formation-ecole { color: var(--home-violet-clair); font-weight: 500; font-size: 0.95rem; margin: 0 0 12px; }
.formation-description { color: var(--home-texte-discret); line-height: 1.65; font-size: 0.92rem; margin: 0; }

/* =========================================
   19. CERTIFICATIONS
   ========================================= */
.section-certifications { padding: 60px 0; text-align: center; }

@media (min-width: 768px) {
    .section-certifications { padding: 80px 0; }
}

/* MOBILE FIRST : colonne, puis flex wrap sur desktop */
.cert-grille { display: flex; flex-direction: column; align-items: center; gap: 24px; }

@media (min-width: 600px) {
    .cert-grille { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 30px; }
}

.cert-item { position: relative; display: inline-block; }

.cert-lueur {
    position:       absolute;
    top:            50%;
    left:           50%;
    transform:      translate(-50%,-50%);
    width:          120%;
    height:         120%;
    background:     radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 60%);
    filter:         blur(30px);
    z-index:        1;
    pointer-events: none;
    animation:      lueur-pulse 4s ease-in-out infinite;
}

.cert-boite-verre {
    position:        relative;
    z-index:         10;
    background:      rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border:          1px solid var(--home-bordure-verre);
    border-radius:   24px;
    padding:         20px;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             14px;
    box-shadow:      0 20px 40px rgba(0,0,0,0.3);
    transition:      border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .cert-boite-verre { padding: 24px; gap: 16px; }
}

.cert-boite-verre:hover { border-color: var(--home-bordure-violet); box-shadow: 0 30px 60px rgba(124,58,237,0.2); }

.cert-iframe-wrap { background: #ffffff; border-radius: 16px; padding: 12px; overflow: hidden; display: inline-block; }
.cert-iframe-wrap iframe { border-radius: 12px; display: block; }

.cert-fallback { width: 180px; height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--cert-couleur) 10%, transparent), rgba(255,255,255,0.02)); border: 1px solid color-mix(in srgb, var(--cert-couleur) 30%, transparent); border-radius: 16px; }
.cert-fallback__icone { font-size: 2.8rem; color: var(--cert-couleur); }
.cert-fallback__nom { font-size: 0.85rem; font-weight: 700; text-align: center; color: var(--home-texte-blanc); }
.cert-fallback__organisme { font-size: 0.75rem; color: var(--home-texte-discret); text-align: center; }
.cert-fallback__date { font-size: 0.75rem; color: var(--cert-couleur); font-weight: 600; }

.cert-meta { text-align: center; }
.cert-meta__nom { font-size: 0.9rem; font-weight: 700; color: var(--home-texte-blanc); margin: 0 0 4px; }
.cert-meta__organisme { font-size: 0.8rem; color: var(--home-texte-discret); margin: 0 0 6px; }
.cert-meta__date { font-size: 0.78rem; color: var(--home-bleu-accent); display: flex; align-items: center; gap: 5px; justify-content: center; }

/* =========================================
   20. PROJETS — MOBILE FIRST
   ========================================= */
.section-projets { padding: 60px 0 100px; }

/* MOBILE FIRST : colonne */
.rangee-projet {
    display:        flex;
    flex-direction: column;
    gap:            24px;
    margin-bottom:  60px;
}

.rangee-projet:last-child { margin-bottom: 0; }

.contenu-projet { flex: 1; position: relative; z-index: 10; }
.projet-label { color: var(--home-violet-clair); font-weight: 500; font-size: 0.9rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.projet-titre { font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 800; margin: 0 0 20px; line-height: 1.2; letter-spacing: -0.02em; }

.projet-description-verre {
    background:      linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border:          1px solid var(--home-bordure-verre);
    padding:         20px;
    border-radius:   20px;
    margin-bottom:   20px;
    transition:      border-color 0.3s ease;
    /* MOBILE FIX : pas de width ni margin négatif sur mobile */
    width:           100% !important;
    margin-left:     0 !important;
}

.projet-description-verre:hover { border-color: var(--home-bordure-violet); }
.projet-description-verre p { margin: 0; color: rgba(250,250,250,0.88); line-height: 1.75; font-size: 1rem; }

.projet-lien { color: var(--home-texte-blanc); text-decoration: none; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.3s ease, gap 0.3s ease; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 4px; }
.projet-lien:hover { color: var(--home-violet-clair); gap: 16px; border-bottom-color: var(--home-violet-clair); }

.visuel-projet { flex: 1; position: relative; z-index: 1; }
.visuel-interieur { background: #06040A; padding: 10px; border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04); transition: transform 0.5s ease, box-shadow 0.5s ease; position: relative; overflow: hidden; }
.visuel-projet:hover .visuel-interieur { transform: scale(1.02) translateY(-5px); box-shadow: 0 35px 70px rgba(0,0,0,0.7), 0 0 40px rgba(124,58,237,0.1); }
.projet-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; }
.visuel-interieur::after { content: ''; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; border-radius: 12px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); transform: translateX(-100%); pointer-events: none; }
.visuel-projet:hover .visuel-interieur::after { animation: shimmer 0.8s ease; }

/* Desktop : rangées alternées */
@media (min-width: 992px) {
    .rangee-projet {
        flex-direction: row;
        align-items:    center;
        gap:            50px;
        margin-bottom:  120px;
    }

    .visuel-projet { flex: 1.2; }

    .rangee-projet:not(.reverse) .projet-description-verre { width: 115% !important; }
    .rangee-projet.reverse .contenu-projet  { order: 2; }
    .rangee-projet.reverse .visuel-projet   { order: 1; }
    .rangee-projet.reverse .projet-description-verre { width: 115% !important; margin-left: -15% !important; }
}

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


/* =========================================
   POPUP TECHNOLOGIE
   ========================================= */
.tech-badge {
    cursor: pointer; /* remplace cursor: default */
}

/* Overlay */
.tech-popup-overlay {
    position:         fixed;
    inset:            0;
    background:       rgba(11, 7, 21, 0.75);
    backdrop-filter:  blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index:          9999;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    padding:          20px;
    opacity:          0;
    pointer-events:   none;
    transition:       opacity 0.25s ease;
}

.tech-popup-overlay.actif {
    opacity:        1;
    pointer-events: auto;
}

/* Boîte popup */
.tech-popup-boite {
    background:      linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border:          1px solid var(--home-bordure-verre);
    border-radius:   24px;
    padding:         32px 28px;
    max-width:       420px;
    width:           100%;
    position:        relative;
    box-shadow:      0 30px 60px rgba(0,0,0,0.5),
                     0 0 0 1px rgba(255,255,255,0.04) inset;
    transform:       translateY(20px) scale(0.97);
    transition:      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow:        hidden;
}

.tech-popup-boite::before {
    content:    '';
    position:   absolute;
    top:        0;
    left:       0;
    right:      0;
    height:     2px;
    background: linear-gradient(90deg, transparent, var(--tech-popup-couleur, #a78bfa), transparent);
}

.tech-popup-overlay.actif .tech-popup-boite {
    transform: translateY(0) scale(1);
}

/* En-tête popup */
.tech-popup-entete {
    display:     flex;
    align-items: center;
    gap:         14px;
    margin-bottom: 20px;
}

.tech-popup-icone-enveloppe {
    width:         52px;
    height:        52px;
    border-radius: 14px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    background:    color-mix(in srgb, var(--tech-popup-couleur, #a78bfa) 12%, transparent);
    border:        1px solid color-mix(in srgb, var(--tech-popup-couleur, #a78bfa) 25%, transparent);
    flex-shrink:   0;
}

.tech-popup-icone-enveloppe i {
    font-size: 1.6rem;
    color:     var(--tech-popup-couleur, #a78bfa);
}

.tech-popup-infos { flex: 1; }

.tech-popup-nom {
    font-size:   1.15rem;
    font-weight: 700;
    color:       var(--home-texte-blanc);
    margin:      0 0 4px;
    line-height: 1.2;
}

.tech-popup-categorie {
    font-size:      0.75rem;
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color:          var(--tech-popup-couleur, #a78bfa);
    opacity:        0.8;
}

/* Niveau */
.tech-popup-niveau {
    display:     flex;
    align-items: center;
    gap:         6px;
    margin-bottom: 16px;
}

.tech-popup-niveau-label {
    font-size: 0.78rem;
    color:     var(--home-texte-discret);
}

.tech-popup-dots {
    display: flex;
    gap:     5px;
}

.tech-popup-dot {
    width:         8px;
    height:        8px;
    border-radius: 50%;
    background:    rgba(255,255,255,0.12);
}

.tech-popup-dot.actif {
    background: var(--tech-popup-couleur, #a78bfa);
    box-shadow: 0 0 6px var(--tech-popup-couleur, #a78bfa);
}

/* Séparateur */
.tech-popup-separateur {
    height:     1px;
    background: linear-gradient(90deg, transparent, var(--home-bordure-verre), transparent);
    margin:     0 0 16px;
}

/* Description */
.tech-popup-description {
    color:       var(--home-texte-discret);
    font-size:   0.93rem;
    line-height: 1.7;
    margin:      0;
}

/* Bouton fermer */
.tech-popup-fermer {
    position:   absolute;
    top:        16px;
    right:      16px;
    background: rgba(255,255,255,0.06);
    border:     1px solid rgba(255,255,255,0.08);
    color:      var(--home-texte-discret);
    width:      30px;
    height:     30px;
    border-radius: 50%;
    display:    flex;
    align-items: center;
    justify-content: center;
    cursor:     pointer;
    font-size:  0.9rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.tech-popup-fermer:hover {
    background: rgba(255,255,255,0.12);
    color:      var(--home-texte-blanc);
    transform:  rotate(90deg);
}