html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1f1f3d, #2a2a56, #14142b);
    color: #fff;
}

/* Infos latérales dynamiques */
.side-info {
    position: fixed;
    top: 40vh;
    width: 180px;
    color: #fff;
    opacity: 0.7;
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
    text-align: center;
    user-select: none;
}

.left-info {
    left: 2vw;
}

.right-info {
    right: 2vw;
}

@media (max-width: 900px) {
    .side-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }

    header h1 {
        font-size: 2rem !important;
        letter-spacing: 2px !important;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .section-nav {
        gap: 10px;
        margin: 15px 0;
    }

    .section-nav a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-category {
        padding: 15px;
    }

    .veille-article {
        padding: 15px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 80%;
        max-width: 250px;
        margin: 10px 0;
    }

    footer {
        position: relative;
        padding: 10px 0;
    }

    /* Ajustement des orbes pour mobile */
    .orb1,
    .orb2,
    .orb3 {
        width: 150px;
        height: 150px;
    }

    /* Réduction des particules sur mobile */
    .particle {
        width: 1px;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .side-info {
        display: none;
    }

    header h1 {
        font-size: 1.5rem !important;
        letter-spacing: 1px !important;
    }

    .section-nav {
        flex-direction: column;
        align-items: center;
    }

    .section-nav a {
        width: 80%;
        max-width: 200px;
        text-align: center;
        margin: 5px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 80%;
        max-width: 250px;
        margin: 5px 0;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .contact-methods {
        flex-direction: column;
    }

    .contact-item {
        width: 100%;
    }
}

/* Ajustements pour tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    header h1 {
        font-size: 2.8rem;
    }
}

/* Header */
header {
    background: none;
    color: #fff;
    padding: 1rem 0 0.5rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Navigation interne pour chaque section */
.section-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.section-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(42, 42, 86, 0.7);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
    border: 1px solid rgba(0, 224, 255, 0.2);
}



.section-nav a:hover {
    transform: translateY(-2px);
    background: rgba(0, 224, 255, 0.2);
    border-color: #00e0ff;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
}

.section-nav a.active {
    background: rgba(0, 224, 255, 0.3);
    color: #00e0ff;
    border-color: #00e0ff;
}

/* Dynamisme pour la page d'accueil et tous les blocs centraux */
.hero-section,
.container {
    background: rgba(31, 31, 61, 0.7);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin: 30px auto;
    max-width: 700px;
    padding: 40px 130px;
    color: #fff;
    transition: box-shadow 0.3s;
}

.hero-section {
    text-align: center;
    padding: 60px 130px;
    background: linear-gradient(135deg, #1f1f3d, #2a2a56, #14142b);
    color: #fff;
}



.hero-section h1 {
    font-size: 2.5rem;
    color: #00e0ff;
    margin: 20px 0 15px 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
    position: relative;
    padding-left: 0;
    border-left: none;
}

/* Style de base pour tous les titres */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #00e0ff;
    margin: 20px 0 15px 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
}



/* Styles pour les titres des sections SLAM/SISR */
.section-subtitle {
    text-align: center;
    color: #00e0ff;
    margin-bottom: 20px;
    font-size: 1.4rem;
    animation: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.slam-title {
    margin: 0 0 10px 0 !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #00e0ff !important;
    animation: none !important;
    border: none !important;
    padding: 0 !important;
    pointer-events: none;
}

.sisr-title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffa500;
    animation: none;
    border: none;
    padding: 0;
    pointer-events: none;
}

.no-hover-effect {
    pointer-events: none !important;
}

.no-hover-effect::after {
    display: none !important;
}

/* Désactivation des styles pour les sections SLAM/SISR */
#slam1 h3,
#slam1 h4,
#sisr1 h3,
#sisr1 h4,
#slam1 h3 *,
#slam1 h4 *,
#sisr1 h3 *,
#sisr1 h4 * {
    animation: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
}





.hero-section p {
    font-size: 1.2rem;
    margin: 20px 0;
}

/* Responsive boutons accueil */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 0 10px;
    flex-direction: row;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #00e0ff, #003366);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 224, 255, 0.3);
    margin: 10px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.download-button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #00b8ff, #001a33);
    box-shadow: 0 6px 12px rgba(0, 224, 255, 0.3);
}

.secure-access-button {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 12px 25px;
    border: none;
    font-weight: bold;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.secure-access-button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #e55a2b, #d4841a);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.3);
}

footer {
    background-color: #14142b;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

/* Responsive - garde le design identique et horizontal, adapte seulement les tailles */
@media (max-width: 900px) {
    .side-info {
        display: none;
    }

    .container,
    .hero-section {
        width: 95vw !important;
        padding: 25px 15px !important;
        max-width: 95vw !important;
        margin: 20px auto !important;
    }

    /* Ajustements pour garder tout horizontal */
    .section-nav a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .tab {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .cta-button {
        font-size: 0.95rem;
        padding: 12px 18px;
        margin: 8px;
    }
}

@media (max-width: 768px) {

    .container,
    .hero-section {
        width: 98vw !important;
        padding: 20px 10px !important;
        max-width: 98vw !important;
    }

    /* SLAM/SISR section - reste horizontal mais plus petit */
    div[style*="display: flex"][style*="gap: 20px"] {
        gap: 10px !important;
    }

    div[style*="display: flex"][style*="gap: 20px"]>div {
        padding: 15px 10px !important;
        font-size: 0.9rem !important;
    }

    /* Navigation - reste horizontal mais plus compact */
    .section-nav {
        gap: 5px;
        flex-wrap: nowrap;
    }

    .section-nav a {
        font-size: 0.8rem;
        padding: 8px 6px;
        flex: 1;
        min-width: 60px;
        white-space: nowrap;
    }

    /* Tabs - restent horizontaux mais plus compacts */
    .tabs {
        gap: 5px;
        flex-wrap: wrap;
    }

    .tab {
        font-size: 0.85rem;
        padding: 10px 8px;
        flex: 1;
        min-width: 70px;
    }

    /* CTA buttons - restent horizontaux mais plus petits */
    .cta-button {
        font-size: 0.9rem;
        padding: 10px 15px;
        margin: 5px;
    }

    /* CV buttons - restent horizontaux mais plus compacts */
    div[style*="display: flex"][style*="gap: 15px"] {
        gap: 8px !important;
    }

    div[style*="display: flex"][style*="gap: 15px"] a {
        font-size: 0.9rem !important;
        padding: 10px 15px !important;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.2rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .container,
    .hero-section {
        width: 99vw !important;
        padding: 15px 8px !important;
    }

    div[style*="display: flex"][style*="gap: 20px"] {
        gap: 8px !important;
    }

    div[style*="display: flex"][style*="gap: 20px"]>div {
        padding: 12px 8px !important;
        font-size: 0.85rem !important;
    }

    /* CV buttons très compacts mais horizontaux */
    div[style*="display: flex"][style*="gap: 15px"] a,
    div[style*="display: flex"][style*="gap: 8px"] a {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
    }
}

/* Empêche le débordement horizontal des textes longs et du code */
pre,
code {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}

pre {
    background: #181830;
    color: #fff;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    font-size: 0.98em;
    overflow-x: auto;
}

a {
    word-break: break-all;
    text-decoration: none;
    color: #00e0ff;
    transition: all 0.3s ease;
}

.school-link {
    color: #00e0ff;
    position: relative;
    padding: 2px 5px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 224, 255, 0.5);
    z-index: 1;
}

.school-link:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 224, 255, 0.8);
}

/* Pour les titres et paragraphes trop longs */
h1,
h2,
h3,
h4,
h5,
h6,
p,
li {
    word-break: break-word;
    overflow-wrap: break-word;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
}

/* Fond statique avec gradient subtil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, #0a0a0a 0%, #1a1a3e 40%, #2a2a56 70%, #0a0a0a 100%);
    pointer-events: none;
    z-index: -3;
}

/* Particules et orbes désactivés (cachés) */
.particles,
.particle,
.orb,
.orb1,
.orb2,
.orb3 {
    display: none;
}

h1 {
    font-size: 2.8rem;
    color: #00e0ff;
    margin: 40px 0 30px 0;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.7);
}

h2 {
    font-size: 2.2rem;
    color: #00e0ff;
    margin: 35px 0 25px 0;
    font-weight: 650;
    text-shadow: 0 0 12px rgba(0, 224, 255, 0.6);
    letter-spacing: 0.5px;
}

/* Style pour les titres de section principaux (h3) */
h3 {
    color: #00e0ff;
    margin: 40px 0 25px;
    font-size: 2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
}

/* Style pour les sous-titres (h4) */
h4 {
    color: #fff;
    margin: 25px 0 15px;
    font-size: 1.4em;
    font-weight: 500;
}

/* Style pour les sous-sous-titres (h5) */
h5 {
    color: #a0e0ff;
    margin: 20px 0 12px;
    font-size: 1.2em;
    font-weight: 500;
    padding-left: 10px;
}

/* Styles pour les titres de section avec numérotation */
.section-title {
    color: #00e0ff;
    margin: 50px 0 30px;
    font-size: 2.2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
}

.section-title span {
    color: #00e0ff;
    font-family: inherit;
    font-size: 1em;
    margin-right: 10px;
    opacity: 0.8;
}

/* Style pour le nom de l'entreprise */
.company-name {
    color: #00e0ff !important;
    font-size: 2rem !important;
    margin: 40px 0 25px 0 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
    border: none !important;
    text-transform: none;
    letter-spacing: normal;
}

/* Styles pour les titres h5 dans la section stage */
.stage-section h5 {
    font-size: 1.5rem;
    color: #00e0ff;
    margin: 30px 0 15px 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
}

/* ===== SYSTÈME D'ONGLETS STAGES ===== */
.stage-tabs-container {
    margin-top: 30px;
}

.stage-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stage-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 40px;
    background: rgba(31, 31, 61, 0.6);
    border: 2px solid rgba(0, 224, 255, 0.3);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
    font-family: inherit;
}

.stage-tab:hover {
    background: rgba(0, 224, 255, 0.1);
    border-color: rgba(0, 224, 255, 0.5);
    transform: translateY(-3px);
}

.stage-tab.active {
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.2), rgba(0, 184, 255, 0.1));
    border-color: #00e0ff;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 224, 255, 0.3);
}

.stage-tab .tab-icon {
    font-size: 2rem;
}

.stage-tab .tab-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.stage-tab .tab-period {
    font-size: 0.85rem;
    padding: 4px 12px;
    background: rgba(0, 224, 255, 0.2);
    border-radius: 20px;
    color: #00e0ff;
}

.stage-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.stage-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grille pour compétences et missions */
.stage-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.stage-detail-card {
    background: rgba(31, 31, 61, 0.5);
    border: 1px solid rgba(0, 224, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.stage-detail-card:hover {
    border-color: rgba(0, 224, 255, 0.5);
    box-shadow: 0 5px 20px rgba(0, 224, 255, 0.15);
    transform: translateY(-3px);
}

.stage-detail-card h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 224, 255, 0.3);
}

.stage-detail-card h5::after {
    display: none;
}

.stage-detail-card .detail-icon {
    font-size: 1.3rem;
}

.stage-detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stage-detail-card ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stage-detail-card ul li:last-child {
    border-bottom: none;
}

.stage-detail-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00e0ff;
}

@media (max-width: 600px) {
    .stage-tabs {
        flex-direction: column;
        align-items: center;
    }

    .stage-tab {
        width: 100%;
        max-width: 280px;
    }

    .stage-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Section BTS SIO intégrée dans hero */
.bts-explanation {
    margin: 30px 0 20px 0;
    padding: 25px;
    background: rgba(42, 42, 86, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 224, 255, 0.2);
}

.bts-explanation h3 {
    text-align: center;
    color: #00e0ff;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bts-options-inline {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    justify-content: center;
}

.bts-option-inline {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 25px 20px;
    background: rgba(31, 31, 61, 0.6);
    border-radius: 15px;
    border: 3px solid;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.bts-option-inline.slam {
    border-color: #00e0ff;
    background: rgba(0, 224, 255, 0.1);
}

.bts-option-inline.sisr {
    border-color: #ffa500;
    background: rgba(255, 165, 0, 0.1);
}

/* Styles pour la timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: #00e0ff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #00e0ff;
    border-radius: 50%;
    top: 15px;
    right: -8px;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    background: rgba(42, 42, 86, 0.7);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 224, 255, 0.2);
}

.timeline-date {
    color: #00e0ff;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.timeline-location {
    color: #aaa;
    font-style: italic;
    margin: 5px 0 10px;
    font-size: 0.9rem;
}

.timeline-skills {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-skills span {
    background: rgba(0, 224, 255, 0.2);
    color: #00e0ff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.timeline-skills span:hover {
    background: rgba(0, 224, 255, 0.4);
    transform: translateY(-2px);
}

/* Responsive pour la timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 23px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px;
    }
}

.bts-option-inline:hover {
    transform: scale(1.05);
}

.bts-option-inline.slam:hover {
    background: rgba(0, 224, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 224, 255, 0.3);
}

.bts-option-inline.sisr:hover {
    background: rgba(255, 165, 0, 0.2);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
}

.bts-option-inline h4 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.bts-option-inline.slam h4 {
    color: #00e0ff;
}

.bts-option-inline.sisr h4 {
    color: #ffa500;
}

.bts-option-inline p {
    margin: 0;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.4;
}

.my-choice-inline {
    text-align: center;
    margin: 15px 0 0 0;
    padding: 12px;
    background: rgba(0, 224, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    font-size: 0.95rem;
}

/* Styles pour les nouvelles sections CV et Stage */
.document-download,
.secure-document {
    background: rgba(42, 42, 86, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid rgba(0, 224, 255, 0.2);
    text-align: center;
}

.download-button {
    display: inline-block;
    background: linear-gradient(90deg, #00e0ff, #003366);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    margin: 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #00b8ff, #001a33);
    box-shadow: 0 6px 12px rgba(0, 224, 255, 0.3);
}

.secure-access-button {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 12px 25px;
    border: none;
    font-weight: bold;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.secure-access-button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #e55a2b, #d4841a);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.3);
}

.quick-info,
.stage-summary {
    background: rgba(31, 31, 61, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #00e0ff;
}

.download-icon,
.lock-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Styles pour la section parcours */
.parcours-timeline {
    margin: 20px 0;
}

.parcours-item {
    background: rgba(31, 31, 61, 0.4);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid #00e0ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parcours-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 224, 255, 0.2);
}

.parcours-item h4 {
    color: #00e0ff;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.parcours-item p {
    margin: 8px 0;
    line-height: 1.5;
}

.parcours-item p strong {
    color: #fff;
}

/* Styles pour la section compétences simplifiée */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    padding: 0 10px;
}

.skill-category {
    background: rgba(42, 42, 86, 0.3);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category {
    background: rgba(42, 42, 86, 0.3);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 224, 255, 0.2);
    border-color: rgba(0, 224, 255, 0.5);
    background: rgba(42, 42, 86, 0.5);
}



.skill-title {
    color: #00e0ff !important;
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid rgba(0, 224, 255, 0.3);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.15), rgba(0, 184, 255, 0.15));
    color: #00e0ff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 224, 255, 0.3);
    transition: all 0.3s ease;
    cursor: default;
    display: inline-block;
}



.skill-tag:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.25), rgba(0, 184, 255, 0.25));
    box-shadow: 0 4px 12px rgba(0, 224, 255, 0.2);
    border-color: rgba(0, 224, 255, 0.6);
}

/* Styles pour le header et le titre principal */
header {
    background: transparent;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Titre principal */
header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(45deg, #00e0ff, #00b8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}



/* Style pour les titres animés */
.animated-title {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.animated-title:hover {
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.6);
}



/* Styles pour les projets améliorés */
.project-details {
    margin-top: 20px;
}

.project-info {
    background: rgba(31, 31, 61, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(0, 224, 255, 0.1);
}

.project-info h5 {
    color: #00e0ff;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.2), rgba(0, 184, 255, 0.2));
    color: #00e0ff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 224, 255, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 224, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.3), rgba(0, 184, 255, 0.3));
}

.project-features,
.skills-learned {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.project-features li,
.skills-learned li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #ccc;
    transition: color 0.3s ease;
}

.project-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00e0ff;
    font-weight: bold;
}

.skills-learned li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00e0ff;
    font-weight: bold;
}

.project-features li:hover,
.skills-learned li:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Styles pour la veille technologique simplifiée */
.veille-intro {
    background: rgba(42, 42, 86, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #00e0ff;
}

.veille-intro h3 {
    color: #00e0ff;
    margin: 0 0 15px 0;
    font-size: 1.4rem;
}

.veille-intro h4 {
    color: #fff;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.veille-article {
    background: rgba(31, 31, 61, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-top: 3px solid #00e0ff;
    transition: transform 0.3s ease;
}

.veille-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 224, 255, 0.2);
}

.veille-article h4 {
    color: #00e0ff;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.article-date {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 15px;
}

.article-content {
    color: #ccc;
    line-height: 1.6;
}

.article-content p {
    margin: 10px 0;
}

.article-content ul {
    margin: 10px 0;
    padding-left: 25px;
}

.article-content li {
    margin: 5px 0;
    color: #ccc;
}

.article-content strong {
    color: #fff;
}

.veille-conclusion {
    background: rgba(42, 42, 86, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(0, 224, 255, 0.2);
}

.veille-conclusion p {
    margin: 10px 0;
    line-height: 1.6;
}

.veille-theme {
    background: rgba(42, 42, 86, 0.3);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #00e0ff;
    margin: 20px 0;
}

.veille-theme h4 {
    color: #00e0ff;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.veille-objectives {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.veille-objectives li {
    padding: 10px;
    margin: 10px 0;
    background: rgba(31, 31, 61, 0.3);
    border-radius: 8px;
    border-left: 3px solid #00e0ff;
    transition: all 0.3s ease;
}

.veille-objectives li:hover {
    transform: translateX(10px);
    background: rgba(0, 224, 255, 0.1);
}

.veille-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tool-card {
    background: rgba(42, 42, 86, 0.4);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 224, 255, 0.3);
    background: rgba(0, 224, 255, 0.1);
}

.tool-card h5 {
    color: #00e0ff;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.tool-card p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

.veille-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.result-item {
    background: linear-gradient(135deg, rgba(31, 31, 61, 0.6), rgba(42, 42, 86, 0.6));
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 224, 255, 0.3);
}

.result-item h5 {
    color: #00e0ff;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.result-item p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.veille-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.article-card {
    background: rgba(31, 31, 61, 0.4);
    border-radius: 10px;
    padding: 20px;
    border-top: 3px solid #00e0ff;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 224, 255, 0.2);
}

.article-card h5 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.article-meta {
    color: #00e0ff;
    font-size: 0.85rem;
    font-style: italic;
    margin: 5px 0;
}

.article-card p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.applied-projects {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.applied-projects li {
    padding: 12px;
    margin: 10px 0;
    background: rgba(31, 31, 61, 0.3);
    border-radius: 8px;
    border-left: 3px solid #00e0ff;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 30px;
}

.applied-projects li:before {
    content: "★";
    position: absolute;
    left: 10px;
    color: #00e0ff;
}

.applied-projects li:hover {
    transform: translateX(10px);
    background: rgba(0, 224, 255, 0.1);
}

/* Styles pour le tableau de compétences référentiel */
.competences-table {
    margin: 20px 0;
    overflow-x: auto;
}

.ref-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(31, 31, 61, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.ref-table thead {
    background: rgba(0, 224, 255, 0.2);
}

.ref-table th {
    padding: 12px;
    text-align: left;
    color: #00e0ff;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 224, 255, 0.3);
}

.ref-table td {
    padding: 10px;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ref-table tbody tr:hover {
    background: rgba(0, 224, 255, 0.05);
    transition: background 0.3s ease;
}

.level-high {
    color: #4CAF50;
    font-weight: bold;
}

.level-medium {
    color: #FFA500;
    font-weight: bold;
}

.level-low {
    color: #FF6B6B;
    font-weight: bold;
}

/* Styles pour la section Tableau BTS */
.tableau-intro {
    margin-top: 20px;
}

.tableau-download {
    background: rgba(42, 42, 86, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid rgba(0, 224, 255, 0.2);
}

.tableau-download h3 {
    color: #00e0ff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tableau-download ul {
    text-align: left;
    max-width: 600px;
    margin: 15px auto;
    padding-left: 20px;
}

.tableau-download li {
    color: #ccc;
    margin: 8px 0;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.download-btn.excel {
    background: linear-gradient(135deg, #107C41, #185A2E);
    color: #fff;
    border: 2px solid #107C41;
}

.download-btn.excel:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 124, 65, 0.3);
    background: linear-gradient(135deg, #185A2E, #107C41);
}

.download-btn.pdf {
    background: linear-gradient(135deg, #DC2626, #991B1B);
    color: #fff;
    border: 2px solid #DC2626;
}

.download-btn.pdf:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, #991B1B, #DC2626);
}

.tableau-preview {
    background: rgba(31, 31, 61, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.tableau-preview h3 {
    color: #00e0ff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.project-summary {
    background: rgba(42, 42, 86, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 3px solid #00e0ff;
}

.project-summary h4 {
    color: #00e0ff;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.project-summary ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.project-summary li {
    padding: 5px 0;
    color: #ccc;
    padding-left: 20px;
    position: relative;
}

.project-summary li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #00e0ff;
}

.note {
    background: rgba(0, 224, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(0, 224, 255, 0.2);
    color: #ccc;
}

/* Styles pour la section contact */
.contact-content {
    margin-top: 30px;
}

.contact-info {
    background: rgba(31, 31, 61, 0.4);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 224, 255, 0.2);
}

.contact-info h3 {
    color: #00e0ff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(42, 42, 86, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(0, 224, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 224, 255, 0.2);
}

.contact-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 224, 255, 0.1);
    border-radius: 50%;
}

.contact-item h4 {
    color: #00e0ff;
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.contact-item p,
.contact-item a {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: #00e0ff;
}

.social-links {
    margin: 30px 0;
    text-align: center;
}

.social-links h4 {
    color: #00e0ff;
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(31, 31, 61, 0.6), rgba(42, 42, 86, 0.6));
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(0, 224, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 224, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.2), rgba(0, 184, 255, 0.2));
}

.social-btn.linkedin {
    border-color: #0077B5;
}

.social-btn.linkedin:hover {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.2), rgba(0, 119, 181, 0.3));
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3);
}

.social-btn.github {
    border-color: #6e5494;
}

.social-btn.github:hover {
    background: linear-gradient(135deg, rgba(110, 84, 148, 0.2), rgba(110, 84, 148, 0.3));
    box-shadow: 0 10px 25px rgba(110, 84, 148, 0.3);
}

.availability {
    background: rgba(42, 42, 86, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    text-align: center;
}

.availability h4 {
    color: #00e0ff;
    margin-bottom: 15px;
}

.availability p {
    color: #ccc;
    margin: 8px 0;
}



/* Amélioration du responsive */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .veille-tools {
        grid-template-columns: 1fr;
    }

    .veille-results {
        grid-template-columns: 1fr;
    }

    .veille-articles {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .ref-table {
        font-size: 0.85rem;
    }

    .ref-table th,
    .ref-table td {
        padding: 8px 5px;
    }
}

/* Preuves Professionnelles */
.proofs-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 224, 255, 0.2);
}

.proofs-section h3 {
    text-align: center;
    color: #00e0ff;
    margin-bottom: 10px;
}

.proofs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.proof-card {
    background: rgba(42, 42, 86, 0.4);
    border: 1px solid rgba(0, 224, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.proof-card:hover {
    transform: translateY(-10px);
    background: rgba(42, 42, 86, 0.7);
    border-color: #00e0ff;
    box-shadow: 0 15px 30px rgba(0, 224, 255, 0.25);
}

.proof-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proof-card:hover::before {
    opacity: 1;
}

.proof-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: rgba(0, 224, 255, 0.1);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, background 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.1);
}

.proof-card:hover .proof-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(0, 224, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.3);
}

.proof-card h4 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proof-card p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
}

@media (max-width: 768px) {
    .proof-card {
        min-height: auto;
        padding: 25px 15px;
    }

    .proof-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
}

/* Style pour les cartes verrouillées/en attente */
.proof-card.locked {
    cursor: not-allowed;
    opacity: 0.7;
    background: rgba(30, 30, 50, 0.4);
    border-color: rgba(100, 100, 100, 0.2);
}

.proof-card.locked:hover {
    transform: none;
    box-shadow: none;
    background: rgba(30, 30, 50, 0.4);
}

.proof-card.locked .proof-icon {
    background: rgba(100, 100, 100, 0.1);
    box-shadow: none;
}

/* Styles pour les blocs image + description */
.proof-item {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    background: rgba(30, 30, 50, 0.5);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 224, 255, 0.15);
    align-items: center;
}

.proof-item:nth-child(even) {
    flex-direction: row-reverse;
    /* Alterne l'ordre image/texte */
}

.proof-image {
    flex: 1;
    min-width: 300px;
}

.proof-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 224, 255, 0.2);
    transition: transform 0.3s ease;
}

.proof-image img:hover {
    transform: scale(1.02);
    border-color: #00e0ff;
}

.proof-content {
    flex: 1;
    min-width: 300px;
}

.proof-content h4 {
    color: #00e0ff;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.proof-content p {
    color: #ccc;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .proof-item,
    .proof-item:nth-child(even) {
        flex-direction: column;
    }

    .proof-image,
    .proof-content {
        width: 100%;
        min-width: auto;
    }
}

/* Lightbox (Zoom Image) */
#lightbox {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    overflow: hidden;
    /* Pas de scroll, on déplace l'image */
}

#lightbox img {
    max-width: 90%;
    /* Taille par défaut : s'adapte à l'écran */
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 224, 255, 0.3);
    border: 2px solid #00e0ff;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    /* Transition douce pour le zoom */
    cursor: zoom-in;
    /* Change le curseur pour indiquer qu'on peut zoomer */
}

#lightbox.active img {
    transform: scale(1);
}

/* Classe pour le mode "Zoom Max" */
#lightbox img.zoomed {
    transform: scale(2.5);
    /* Zoom puissant */
    cursor: zoom-out;
    /* On garde les contraintes de base, le scale fait le reste */
    max-width: 90%;
    max-height: 90%;
    margin: 0;
    min-width: auto;
}

#lightbox .close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

#lightbox .close-btn:hover {
    color: #00e0ff;
    transform: rotate(90deg);
}

/* Indication que l'image est cliquable */

/* Indication que l'image est cliquable */
.proof-image img {
    cursor: zoom-in;
}

/* Empêche le défilement horizontal global */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ajustement spécifique pour les éléments qui pourraient dépasser */
img,
video,
iframe,
table,
pre,
code {
    max-width: 100%;
}

/* Correctif pour les cartes de preuves sur mobile */
.proof-item {
    width: 100%;
    box-sizing: border-box;
}



/* Correction Responsive Mobile Optimisée - Version Compacte */

/* Correction Responsive Mobile - Ligne Unique Forcée */
@media (max-width: 768px) {

    /* Navigation forcée sur UNE SEULE ligne de gauche à droite */
    .section-nav {
        display: flex;
        flex-direction: row !important;
        /* Force la direction ligne */
        flex-wrap: nowrap !important;
        /* INTERDIT le retour à la ligne */
        justify-content: space-between;
        /* Répartit l'espace disponible */
        width: 100%;
        padding: 0 2px;
        overflow-x: hidden;
        /* Pas de scroll si possible, sinon auto */
        gap: 2px;
        white-space: nowrap;
    }

    .section-nav::-webkit-scrollbar {
        height: 0;
    }

    .section-nav a {
        flex: 1 1 auto;
        /* Extensible équitablement */
        padding: 8px 1px;
        /* Marges réduites au minimum */
        font-size: 0.65rem;
        /* Texte réduit pour tout faire rentrer */
        margin: 0;
        min-width: 0;
        /* Permet de rétrécir en dessous du contenu si besoin */
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    }

    /* Permettre aux blocs SLAM/SISR de s'empiler normalement */
    div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    /* Conteneurs */
    .container,
    .hero-section {
        width: 96% !important;
        margin: 10px auto !important;
        padding: 15px 5px !important;
    }
}

/* Navigation Flottante Globale (Projets & Stages) */
.floating-menu {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1200;
    border-radius: 12px;
    padding: 10px;
    background: rgba(20, 22, 34, 0.84);
    border: 1px solid rgba(0, 224, 255, 0.3);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-menu a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid rgba(0, 224, 255, 0.35);
    background: rgba(0, 224, 255, 0.12);
    color: #d8f7ff;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.floating-menu a:hover {
    background: rgba(0, 224, 255, 0.3);
    transform: scale(1.1);
    border-color: #00e0ff;
}

.floating-menu a::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(20, 22, 34, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 224, 255, 0.3);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-menu a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 1024px) {
    .floating-menu {
        top: auto;
        bottom: 15px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        padding: 8px;
    }
    .floating-menu a::after {
        display: none;
    }
}