/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* ===== Normalisation de l'échelle (ajouté) ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px; /* Base commune pour rem */
}

/* Assure une base cohérente de la typo sur toutes les pages */
:root {
  --base-font-size: 16px;
  --gh-text: #c9d1d9; /* Définit la variable utilisée par .dropdown-content a */
}

body {
  font-size: var(--base-font-size);
}

/* Neutralise tout zoom/transform global accidentel */
.activity-page, .with-sidebar, .container {
  transform: none !important;
  zoom: 1 !important; /* utile sur certains navigateurs */
}

/* Typo uniforme dans les contenus d'activité */
.activity-content-wrapper {
  font-size: 1rem;
  line-height: 1.6;
}

/* Largeur de conteneur stable pour la perception de taille */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/* ===== Fin normalisation ===== */
:root {
    --primary-color: #58a6ff;      /* GitHub Dark */
    --secondary-color: #8b949e;    /* GitHub Dark */
    --dark-color: #0d1117;         /* GitHub Dark */
    --light-color: #161b22;        /* GitHub Dark */
    --success-color: #3fb950;      /* GitHub Dark */
    --danger-color: #f85149;       /* GitHub Dark */
    --warning-color: #d29922;      /* GitHub Dark */
    --info-color: #a371f7;         /* GitHub Dark */
    --border-color: #30363d;       /* GitHub Dark */
    --text-color: #ffffff;
}

body {
   background-color: #c9d1d9; /* GitHub Dark */
    color: white; /* Override car --text-primary n'existe pas dans vos variables */
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */


.header .logo {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-image {
    object-fit: contain !important;
    padding: 20px;
    background-color: #161b22; /* GitHub Dark */
}

.nav ul li a:hover {
  background-color: #1a1f29;
  color: #ffffff;
}


.nav ul li a:hover::after {
    width: 100%;
}

.nav ul li:hover .dropdown-content {
  display: block;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero section */
.hero {
    padding: 150px 0 100px;
    background: #0d1117 /* GitHub Dark */;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #c9d1d9; /* GitHub Dark */
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1a4bff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 91, 255, 0.2);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* About section */
.about {
    padding: 100px 0;
    background-color: #161b22; /* GitHub Dark */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #c9d1d9; /* GitHub Dark */
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #c9d1d9; /* GitHub Dark */
}

.skills {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-name {
    margin-bottom: 5px;
    font-weight: 500;
    color: #c9d1d9; /* GitHub Dark */
}

.skill-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-percent {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-out;
    position: relative;
}

.skill-level::after {
    content: '';
    position: absolute;
    right: 0;
    top: -10px;
    height: 0;
    width: 0;
    border-left: 5px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Activities section */
.activities {
    padding: 100px 0;
    background-color: #161b22; /* GitHub Dark */
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.activity-card {
      background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
    display: flex;
    flex-direction: column;
    height: 100%; /* Prend toute la hauteur disponible */
}

/* Style spécifique pour l'image Apache */
.activity-card:nth-child(3) .activity-image {
    background-color: white !important;
}

.activity-card:nth-child(3) .activity-image img {
    object-fit: contain;
    padding: 20px;
    background-color: white !important;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.activity-image {
    height: 200px;
    overflow: hidden;
}

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

/* Optionnel : ciblez spécifiquement l'image Apache */
/* Par cette règle plus générique */
.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-content {
    padding: 20px;
    flex: 1; /* Permet au contenu de prendre l'espace disponible */
    display: flex;
    flex-direction: column;
}

.activity-content h3 {
    margin-bottom: 10px;
    color: #c9d1d9; /* GitHub Dark */
}

.activity-content p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    flex-grow: 1; /* Fait en sorte que le paragraphe prenne l'espace disponible */
}

.activity-btn {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.activity-btn:hover {
    color: #1a4bff;
}

/* Contact section */
.contact {
    padding: 100px 0;
    background-color: #161b22; /* GitHub Dark */
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #c9d1d9; /* GitHub Dark */
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #161b22; /* GitHub Dark */
    border-radius: 50%;
    color: #c9d1d9; /* GitHub Dark */
    transition: all 0.3s;
}

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

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #30363d; /* GitHub Dark */
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--light-color); /* GitHub Dark */
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Modal pour les activités */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: #161b22; /* GitHub Dark */
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #c9d1d9; /* GitHub Dark */
}

.modal-title {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.modal-images img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container,
    .about-content {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    
    .nav.active {
        left: 0;
    }

    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about, .activities, .contact {
        padding: 80px 0;
    }
}

/* Page À Propos */
.about-page {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #c9d1d9; /* GitHub Dark */
}

.about-content {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #c9d1d9; /* GitHub Dark */
}

.about-text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.about-text li {
    margin-bottom: 10px;
}

.cv-download {
    margin-top: 30px;
    padding: 20px;
    background-color: #161b22; /* GitHub Dark */
    border-radius: 10px;
}

.cv-download h3 {
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.skills-section {
    margin-top: 50px;
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* Page Activité */
.activity-page {
    padding: 100px 0;
}

.activity-details {
    display: flex;
    gap: 50px;
}

.activity-images {
    flex: 1;
}

.activity-images img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.activity-description {
    flex: 1;
}

.activity-description h2 {
    font-size: 1.5rem;
    margin: 20px 0 15px;
    color: #c9d1d9; /* GitHub Dark */
}

@media (max-width: 768px) {
    .about-content,
    .activity-details {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
}

/* Hero Video */
.hero-video {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 600px;
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(45, 91, 255, 0.1) 0%, rgba(45, 91, 255, 0.05) 100%);
}

/* Supprimez ou commentez l'animation floating si elle était appliquée à l'image */
/* .floating {
    animation: floating 3s ease-in-out infinite;
} */

@media (max-width: 992px) {
    .hero-video {
        margin-top: 50px;
        max-width: 100%;
    }
}

/* CV Embed */
.cv-embed {
    margin-top: 40px;
}

.cv-embed h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #c9d1d9; /* GitHub Dark */
}

.cv-container {
    width: 100%;
    height: 800px; /* Ajustez cette valeur selon vos besoins */
    border: 1px solid #30363d; /* GitHub Dark */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cv-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .cv-container {
        height: 600px; /* Hauteur réduite pour mobile */
    }
}

.activity-details {
    margin-top: 15px;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.activity-details img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}


/* Style spécifique pour les pages d'activités */

.activity-page {
    padding: 100px 0;
    background-color: #161b22; /* GitHub Dark */
    color: #c9d1d9; /* GitHub Dark */
    line-height: 1.8;
}

.activity-page h1.section-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #58a6ff; /* GitHub Dark */
    text-align: center;
}

.activity-page .section-subtitle {
    text-align: center;
    font-style: italic;
    color: #8b949e; /* GitHub Dark */
    margin-bottom: 40px;
}

.activity-page p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.activity-page h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #58a6ff; /* GitHub Dark */
    border-bottom: 2px solid #30363d; /* GitHub Dark */
    padding-bottom: 8px;
}

.activity-page h3 {
    font-size: 1.4rem;
    margin: 30px 0 10px;
    color: #c9d1d9; /* GitHub Dark */
}

.activity-page ul {
    list-style: disc inside;
    margin: 15px 0 30px;
    padding-left: 15px;
    color: #8b949e; /* GitHub Dark */
}

.activity-page ul li a {
    text-decoration: none;
    color: #58a6ff; /* GitHub Dark */
    transition: color 0.3s;
}

.activity-page ul li a:hover {
    color: #1a4bff;
    text-decoration: underline;
}

.activity-page img {
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    height: auto;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .activity-page h1.section-title {
        font-size: 2.2rem;
    }

    .activity-page h2 {
        font-size: 1.5rem;
    }

    .activity-page h3 {
        font-size: 1.2rem;
    }
}

/* Transition de page - FONDU */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color); /* ou la couleur de votre choix */
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== Sidebar d'activité type Atera ===== */
.activity-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.activity-sidebar {
    width: 250px;
    position: sticky;
    top: 120px;
    background-color: #161b22; /* GitHub Dark */
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-left: -100px;
}

.activity-sidebar .sidebar-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #c9d1d9; /* GitHub Dark */
    font-size: 1.1rem;
}

.activity-sidebar ul {
    list-style: none;
    padding-left: 0;
}

.activity-sidebar ul li {
    margin-bottom: 12px;
}

.activity-sidebar ul li a {
    text-decoration: none;
    color: #c9d1d9; /* GitHub Dark */
    transition: color 0.3s;
    font-size: 0.95rem;
}

.activity-sidebar ul li a:hover,
.activity-sidebar ul li a:focus {
    color: var(--primary-color);
}

/* Zone de contenu à droite */
.activity-content-wrapper {
    flex: 1;
}

/* Responsive : hide sidebar on mobile */
@media (max-width: 992px) {
    .activity-layout {
        flex-direction: column;
    }

    .activity-sidebar {
        width: 100%;
        position: static;
        border-left: none;
        margin-bottom: 30px;
        padding-left: 0;
    }

    .activity-sidebar .sidebar-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
}

/* Corrige le scroll masqué par le header fixe */
.activity-content-wrapper h3,
.activity-content-wrapper h2,
.activity-content-wrapper div[id] {
    scroll-margin-top: 100px; /* ajuste si ton header fait ~100px */
}

.google-reviews-section {
  padding: 80px 0;
  background-color: #161b22; /* GitHub Dark */
  text-align: center;
}

.google-reviews-section .section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #c9d1d9; /* GitHub Dark */
}

/* Style spécifique pour les blocs de code */
.command-block {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    margin: 15px 0;
    position: relative;
    overflow-x: auto;
}

.command-block pre {
    margin: 0;
    white-space: pre-wrap;
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #444;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: #555;
}

.command-block .comment {
    color: #75715e;
    font-style: italic;
}

.terminal {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
}

.terminal-dots {
    display: flex;
    margin-right: 10px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.terminal-dot.red { background-color: #ff5f56; }
.terminal-dot.yellow { background-color: #ffbd2e; }
.terminal-dot.green { background-color: #27c93f; }

.terminal-title {
    font-size: 0.9rem;
    color: #888;
}

/* Style spécifique pour la page d'activité */
.activity-page h1.section-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #58a6ff; /* GitHub Dark */
    text-align: center;
}

.activity-page .section-subtitle {
    text-align: center;
    font-style: italic;
    color: #8b949e; /* GitHub Dark */
    margin-bottom: 40px;
}

.activity-page h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #58a6ff; /* GitHub Dark */
    border-bottom: 2px solid #30363d; /* GitHub Dark */
    padding-bottom: 8px;
}

.activity-page h3 {
    font-size: 1.4rem;
    margin: 30px 0 10px;
    color: #c9d1d9; /* GitHub Dark */
}

/* Style spécifique pour la page d'activité 3 */
.activity-page.with-sidebar {
    padding: 80px 0;
}

.activity-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.activity-sidebar {
    width: 250px;
    position: sticky;
    top: 120px;
    background-color: #161b22; /* GitHub Dark */
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-left: -100px;
}

.activity-sidebar .sidebar-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #c9d1d9; /* GitHub Dark */
    font-size: 1.1rem;
}

.activity-sidebar ul {
    list-style: none;
    padding-left: 0;
}

.activity-sidebar ul li {
    margin-bottom: 12px;
}

.activity-sidebar ul li a {
    text-decoration: none;
    color: #c9d1d9; /* GitHub Dark */
    transition: color 0.3s;
    font-size: 0.95rem;
}

.activity-sidebar ul li a:hover,
.activity-sidebar ul li a:focus {
    color: var(--primary-color);
}

.activity-content-wrapper {
    flex: 1;
}

/* Blocs de commande */
.command-block {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    margin: 15px 0;
    position: relative;
    overflow-x: auto;
}

.command-block pre {
    margin: 0;
    white-space: pre-wrap;
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #444;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: #555;
}

.command-block .comment {
    color: #75715e;
    font-style: italic;
}

.terminal {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
}

.terminal-dots {
    display: flex;
    margin-right: 10px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.terminal-dot.red { background-color: #ff5f56; }
.terminal-dot.yellow { background-color: #ffbd2e; }
.terminal-dot.green { background-color: #27c93f; }

.terminal-title {
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {
    .activity-layout {
        flex-direction: column;
    }

    .activity-sidebar {
        width: 100%;
        position: static;
        border-left: none;
        margin-bottom: 30px;
        padding-left: 0;
    }

    .activity-sidebar .sidebar-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
}

/* Menu déroulant */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.dropdown-content a:hover {
  background-color: #1a1f29;
  color: #ffffff;
}

.dropdown > a i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Version mobile */
@media (max-width: 768px) {

    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown > a i {
        display: none;
    }
}

/* Ajoutez ceci dans votre fichier CSS */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 20px;
    color: #c9d1d9;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Styles globaux pour le light-mode */
body.light-mode {
    background-color: #f5f5f5;
    color: #333;
    filter: brightness(0.95);
}

body.light-mode .bts {
  color: #000 !important;
}

body:not(.light-mode) .bts {
  color: #fff !important;
}

body.light-mode .header,
body.light-mode .hero,
body.light-mode .about,
body.light-mode .activities,
body.light-mode .footer,
body.light-mode .activity-page {
    background-color: #ffffff;
    color: #333;
    border-color: #e1e1e1;
}

body.light-mode .nav ul li a,
body.light-mode .hero-title,
body.light-mode .section-title,
body.light-mode .about-text h3,
body.light-mode .skill-name,
body.light-mode .activity-content h3,
body.light-mode .activity-sidebar .sidebar-title,
body.light-mode .activity-sidebar ul li a {
    color: #333;
}

body.light-mode .activity-card {
    background-color: #f9f9f9;
    border-color: #e1e1e1;
}

body.light-mode .command-block,
body.light-mode .terminal {
    background-color: #f0f0f0;
    color: #333;
}

body.light-mode .section-title,
body.light-mode .section-subtitle,
body.light-mode .about-text h3,
body.light-mode .hero-title,
body.light-mode .activity-content h3 {
    color: #111;
}

body.light-mode .activity-card {
    background-color: #ffffff;
    border-color: #ddd;
}

/* Styles pour l'interrupteur iOS */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Icône soleil/lune */
.slider:after {
 
    position: absolute;
    left: 5px;
    top: 2px;
    font-size: 12px;
    opacity: 0;
    transition: .4s;
}

input:checked + .slider:after {

    left: -25px;
    opacity: 1;
}

/* Mode light spécifique */
body.light-mode .slider:after {

    left: -25px;
    opacity: 1;
}

body.light-mode input:checked + .slider:after {
    left: 5px;
}

/* Ajoutez ces styles */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-switch-wrapper {
    order: 2; /* Met le bouton à droite */
    margin-left: 0;
}

.menu-toggle {
    order: 3; /* Met le menu hamburger à la fin */
}


/* Pour la version mobile */
@media (max-width: 768px) {
    .header-right {
        gap: 15px;
    }
    .theme-switch-wrapper {
        margin-left: auto; /* Pousse le bouton à droite */
    }
}


body.light-mode .nav ul li a:hover::after {
    background: #1a4bff;
}

body.light-mode .activity-sidebar {
    background-color: #f1f1f1;
    color: #333;
    border-left: 4px solid #1a4bff;
}

body.light-mode .activity-sidebar .sidebar-title {
    color: #111;
}

body.light-mode .activity-sidebar ul li a {
    color: #333;
}

body.light-mode .activity-sidebar ul li a:hover {
    color: #1a4bff;
}

body.light-mode .dropdown-content {
    background-color: #ffffff;
    border: 1px solid #ccc;
}


body.light-mode .dropdown-content a:hover {
    background-color: #f0f0f0;
    color: #1a4bff;
    border-left: 3px solid #1a4bff;
}

body.light-mode .about-page,
body.light-mode .about,
body.light-mode .activity-page,
body.light-mode .contact,
body.light-mode .activities,
body.light-mode .footer {
    background-color: #ffffff;
    color: #333;
}

body.light-mode .about-text h2,
body.light-mode .about-text h3,
body.light-mode .section-title,
body.light-mode .section-subtitle,
body.light-mode .page-title,
body.light-mode .activity-page h2,
body.light-mode .activity-page h3 {
    color: #111;
}

body.light-mode .cv-download {
    background-color: #f8f8f8;
    color: #111;
}

body.light-mode .cv-container {
    border: 1px solid #ccc;
}

body.light-mode .activity-page p,
body.light-mode .about-text p {
    color: #444;
}

body.light-mode .google-reviews-section {
  background-color: #ffffff;
  color: #333;
}

body.light-mode .google-reviews-section .section-title {
  color: #111;
}

/* Network Diagram Styles */
.network-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px auto;
    max-width: 600px;
    position: relative;
}

.diagram-item {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    width: 200px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.diagram-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.diagram-item .label {
    font-weight: bold;
    margin-bottom: 5px;
}

.diagram-item .details {
    font-size: 0.8rem;
    color: var(--text-color);
    line-height: 1.4;
}

.diagram-item .details span {
    display: block;
}

/* Specific item colors */
.diagram-item.internet {
    background-color: #1a4bff;
    color: white;
}

.diagram-item.firewall {
    background-color: #d29922;
    color: white;
}

.diagram-item.switch {
    background-color: #3fb950;
    color: white;
}

.diagram-item.server {
    background-color: #a371f7;
    color: white;
}

/* Connection lines */
.connection-line {
    background-color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.connection-line.vertical {
    width: 2px;
    height: 40px;
}

.connection-line.horizontal {
    height: 2px;
    width: 100%;
    position: absolute;
    top: 50%;
}

/* Servers container */
.servers-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: relative;
    margin-top: 20px;
}

.server-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Responsive */
@media (max-width: 600px) {
    .servers-container {
        flex-direction: column;
        align-items: center;
    }
    
    .server-wrapper {
        margin-bottom: 40px;
    }
    
    .connection-line.horizontal {
        display: none;
    }
}

/* Light mode adjustments */
body.light-mode .diagram-item {
    background-color: #f8f8f8;
    border-color: #ddd;
    color: #333;
}

body.light-mode .diagram-item .details {
    color: #666;
}

body.light-mode .diagram-item.internet {
    background-color: #1a4bff;
    color: white;
}

body.light-mode .diagram-item.firewall {
    background-color: #d29922;
    color: white;
}

body.light-mode .diagram-item.switch {
    background-color: #3fb950;
    color: white;
}

body.light-mode .diagram-item.server {
    background-color: #a371f7;
    color: white;
}

/* ===== Sommaire flottant (apparait en bas de page) ===== */
#floating-sommaire {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: none; /* Devient visible quand on approche du bas */
}

#sommaire-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--light-color);
  color: #c9d1d9;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#sommaire-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.3); }
#sommaire-btn:focus { outline: 2px solid var(--primary-color); outline-offset: 3px; }

#sommaire-menu {
  position: absolute;
  right: 0;
  bottom: 56px;
  min-width: 260px;
  max-height: 60vh;
  overflow: auto;
  background: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  padding: 8px;
}

#sommaire-menu.hidden { display: none; }

#sommaire-menu ul {
  list-style: none;
  margin: 0;
  padding: 6px;
}

#sommaire-menu li { margin: 4px 0; }

#sommaire-menu a {
  display: block;
  text-decoration: none;
  color: #c9d1d9;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

#sommaire-menu a:hover { background: #0d1117; color: #fff; }

/* Light mode adjustments */
body.light-mode #sommaire-btn { background: #fff; color: #333; }
body.light-mode #sommaire-menu { background: #fff; }
body.light-mode #sommaire-menu a { color: #333; }
body.light-mode #sommaire-menu a:hover { background: #f0f0f0; color: #111; }

@media (max-width: 768px) {
  #floating-sommaire {
    right: 12px;
    bottom: 12px;
  }
  #sommaire-menu { min-width: 70vw; }
}

/* ===== TOC Scrollspy (style Atera) ===== */
.activity-sidebar .sidebar-title { margin-bottom: 14px; }

.activity-sidebar ul.toc {
  position: relative;
  list-style: none;
  padding-left: 28px; /* space for the line + dots */
  margin: 0;
}

.activity-sidebar ul.toc::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--border-color, #2e2e2e);
  border-radius: 2px;
}

.activity-sidebar ul.toc li {
  position: relative;
  margin: 10px 0;
}

.activity-sidebar ul.toc li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border-color, #666);
  background: var(--light-color, #0d1117);
  box-sizing: border-box;
}

.activity-sidebar ul.toc li.active::before {
  background: var(--primary-color, #6ea8fe);
  border-color: var(--primary-color, #6ea8fe);
}

.activity-sidebar ul.toc a {
  color: #c9d1d9;
  text-decoration: none;
  line-height: 1.4;
  display: inline-block;
  transition: color .2s ease;
}

.activity-sidebar ul.toc a:hover {
  color: #fff;
  text-decoration: underline;
}

.activity-sidebar ul.toc li.active > a {
  color: #fff;
  font-weight: 600;
}

body.light-mode .activity-sidebar ul.toc::before { background: #e1e1e1; }
body.light-mode .activity-sidebar ul.toc li::before { background: #fff; border-color: #c9c9c9; }
body.light-mode .activity-sidebar ul.toc a { color: #333; }
body.light-mode .activity-sidebar ul.toc li.active > a { color: #111; }

/* ===== Barre de progression de lecture (top) ===== */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;              /* épaisseur de la barre */
  background: transparent;  /* pas de fond, seule la barre intérieure est visible */
  z-index: 2000;            /* au-dessus du header */
  pointer-events: none;     /* ne bloque pas les clics du header */
}

#reading-progress .bar {
  width: 0%;
  height: 100%;
background: linear-gradient(
    90deg,
    #00c6ff 0%,
    #0072ff 50%,
    #1a4bff 100%
); 
  background-size: 300% 300%;
  animation: none;
  transition: width 0.2s ease-out;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px rgba(0, 153, 255, 0.7);
}

body.light-mode #reading-progress .bar {
  background: #0070f3;
}


/* Ligne animée en bas */


/* Halo lumineux dynamique */


/* Au survol */
.nav ul li a:hover {
    transform: rotateX(8deg) translateY(-4px) scale(1.05);
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.6);
}

.nav ul li a:hover::after {
    width: 100%;
}

.nav ul li a:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.glow-gradient {
    background: linear-gradient(90deg, #58a6ff, #6ea8fe, #1a4bff, #7f6aff);
    background-size: 300% 300%;
    animation: none;
    color: white;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.6);
    border: none;
    border-radius: 8px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.skill-bar {
    background-color: #1e1e2f;
    border-radius: 10px;
    overflow: hidden;
    height: 12px;
    margin-top: 6px;
    position: relative;
}

.skill-level {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #00c6ff 0%,
        #0072ff 50%,
        #1a4bff 100%
    );
    background-size: 300% 300%;
    animation: none;
    box-shadow: 0 0 14px rgba(0, 153, 255, 0.9),
                0 0 20px rgba(159, 0, 255, 0.4);
    transition: width 1.2s ease;
}

.animated-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.animated-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(25deg);
    animation: shine 2.5s infinite linear;
    z-index: -1;
}

@keyframes shine {
    0% {
        transform: rotate(25deg) translateX(-100%);
    }
    100% {
        transform: rotate(25deg) translateX(100%);
    }
}

.glow-gradient-btn {
    background: linear-gradient(
        90deg,
        #00c6ff 0%,
        #0072ff 40%,
        #1a4bff 100%
    );
    background-size: 300% 300%;
    animation: none;
    color: white;
    border: none;
    box-shadow: 0 0 14px rgba(0, 153, 255, 0.7),
                0 0 18px rgba(159, 0, 255, 0.4);
    transition: all 0.3s ease;
}


.glow-gradient-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.9), 0 0 30px rgba(159, 0, 255, 0.5);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Liquid Glass iOS — bouton premium === */
.liquid-glass-btn{
  --glass-bg: rgba(255,255,255,.08);
  --glass-border1: rgba(255,255,255,.55);
  --glass-border2: rgba(255,255,255,.12);
  --inner-shadow: rgba(0,0,0,.35);
  --specular: rgba(255,255,255,.9);
 --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.06'/></svg>");
  

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 14px 28px;
  border-radius: 22px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  isolation: isolate;                 /* pour que les pseudos fassent des masques propres */
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 60%),
    var(--glass-bg);
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),             /* arête haute */
    inset 0 -8px 14px rgba(0,0,0,.18),               /* ombre interne basse */
    0 10px 24px rgba(0,0,0,.35);                     /* ombre portée */
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s;
}

/* Bordure “liquide” avec léger dégradé autour */
.liquid-glass-btn::before{
  content:"";
  position:absolute; inset:-1px;
  border-radius: 23px;
  padding:1px; 
  background: linear-gradient(180deg, var(--glass-border1), var(--glass-border2));
 -webkit-mask:
  linear-gradient(to bottom, white 0%, white 100%) content-box,
  linear-gradient(to bottom, white 0%, white 100%);
-webkit-mask-composite: xor;
mask-composite: exclude;
  pointer-events:none;
}

/* Reflets haut/bas + bruit pour casser les bandes */
.liquid-glass-btn::after{
  content:"";
  position:absolute; inset:0; border-radius:22px; pointer-events:none;
  background:
    radial-gradient(120% 60% at 50% -10%, var(--specular) 0%, rgba(255,255,255,.2) 25%, transparent 46%) , /* reflet haut */
    radial-gradient(120% 65% at 50% 120%, rgba(255,255,255,.08), transparent 60%),                          /* glow bas */
    var(--noise);
  mix-blend-mode: screen;
  opacity:.9;
}

/* Micro relief du texte/icone */
.liquid-glass-btn span, .liquid-glass-btn i{
  position:relative; z-index:1;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

/* Interaction */
.liquid-glass-btn:hover{
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -10px 18px rgba(0,0,0,.22),
    0 14px 28px rgba(0,0,0,.42);
}
.liquid-glass-btn:active{
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -6px 12px rgba(0,0,0,.28),
    0 8px 18px rgba(0,0,0,.36);
}

/* Petite animation “sheen” façon iOS au survol */
.liquid-glass-btn .sheen{
  position:absolute; inset:-30% -10%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-80%) rotate(8deg);
  filter: blur(4px);
  border-radius:30px;
  transition: transform .8s ease;
  pointer-events:none;
}
.liquid-glass-btn:hover .sheen{ transform: translateX(120%) rotate(8deg); }

/* Mode clair */
body.light-mode .liquid-glass-btn{
  --glass-bg: rgba(255,255,255,.62);
  --glass-border1: rgba(0,0,0,.18);
  --glass-border2: rgba(0,0,0,.06);
  --inner-shadow: rgba(0,0,0,.18);
  --specular: rgba(255,255,255,.95);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -8px 14px rgba(0,0,0,.08),
    0 10px 22px rgba(0,0,0,.15);
}

/* Accessibilité : réduit l’animation si préférences utilisateur */
@media (prefers-reduced-motion: reduce){
  .liquid-glass-btn, .liquid-glass-btn .sheen{ transition: none; }
}

/* Assure-toi que le bouton découpe bien les overlays */
.liquid-glass-btn{ overflow: hidden; }

/* Surplus "liquid glass" qui slide L→R */
.liquid-glass-btn .liquid-flow{
  position:absolute;
  top:-35%; bottom:-35%;
  left:-60%;
  width:70%;
  border-radius:48px;
  pointer-events:none;
  z-index:0;                           /* sous le texte, au-dessus du fond */
  /* Bande fluide : combo reflet + halo + transparences */
  background:
    radial-gradient(120% 100% at 50% 50%,
      rgba(255,255,255,.40) 0%,
      rgba(255,255,255,.18) 32%,
      rgba(255,255,255,.08) 46%,
      transparent 64%),
    linear-gradient(90deg,
      transparent 10%,
      rgba(255,255,255,.22) 38%,
      rgba(255,255,255,.55) 50%,
      rgba(255,255,255,.22) 62%,
      transparent 90%);
  mix-blend-mode: screen;
  filter: blur(6px);
  transform: translateX(-120%) skewX(-10deg);
  will-change: transform;
  animation: liquidSlide 2.8s cubic-bezier(.4,0,.2,1) infinite;
}

/* Variante : intensité plus forte si besoin */
.liquid-glass-btn.intense .liquid-flow{ filter: blur(7px); opacity: .95; }

/* Accélération au survol (optionnel) */
.liquid-glass-btn:hover .liquid-flow{
  animation-duration: 1.9s;
}

/* Animation L→R (pause à droite pour respirer) */
@keyframes liquidSlide{
  0%   { transform: translateX(-120%) skewX(-10deg); opacity:.95; }
  55%  { transform: translateX(135%)  skewX(-10deg); opacity:.95; }
  70%  { transform: translateX(135%)  skewX(-10deg); opacity:.75; }
  100% { transform: translateX(135%)  skewX(-10deg); opacity:.75; }
}

/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce){
  .liquid-glass-btn .liquid-flow{ animation: none; transform: translateX(-10%) skewX(-10deg); }
}

/* === Liquid Glass iOS26 — version bleue assortie à la skill bar === */
.liquid-glass-btn{
  --glass-color1: #00c6ff;
  --glass-color2: #0072ff;
  --glass-color3: #1a4bff;

  background:
    linear-gradient(90deg, var(--glass-color1) 0%, var(--glass-color2) 50%, var(--glass-color3) 100%),
    rgba(255,255,255,.08);
  background-size: 200% 200%;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow:
    0 0 14px rgba(0,153,255,0.9),
    0 0 22px rgba(159,0,255,0.4),
    inset 0 1px 1px rgba(255,255,255,0.3);
  transition:
    background-position 4s ease infinite,
    transform .25s ease,
    box-shadow .25s ease;
}

/* Animation de dégradé lente, même ambiance que ta skill bar */
.liquid-glass-btn:hover{
  background-position: 100% 0;
  transform: translateY(-2px);
}

/* Pour que le texte reste lisible dans le flux lumineux */
.liquid-glass-btn span, .liquid-glass-btn i{
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.liquid-text {
  position: relative;
  display: inline-block;
  font-weight: 800;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
          background-clip: text;

  background-image:
    linear-gradient(90deg, #00c6ff 0%, #0072ff 50%, #1a4bff 100%),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.85) 50%, transparent 60%);
  background-size: 200% 100%, 200% 100%;
  background-position: 0% 0%, -150% 0%;
  filter: drop-shadow(0 2px 6px rgba(0,140,255,.35));

  /* ✅ syntaxe propre avec 2 animations simultanées */
  animation:
    liquidTextShift 8s linear infinite,
    liquidSheen 3.5s cubic-bezier(.4,0,.2,1) infinite;
}

@keyframes liquidTextShift {
  0% { background-position: 0% 0%, -150% 0%; }
  50% { background-position: 100% 0%, -75% 0%; }
  100% { background-position: 0% 0%, -150% 0%; }
}

@keyframes liquidSheen {
  0% { background-position: 0% 0%, -150% 0%; }
  60% { background-position: 0% 0%, 150% 0%; }
  100% { background-position: 0% 0%, 150% 0%; }
}

/* === Base commune (liquid glass structure) === */
.liquid-text{
  display:inline-block;
  font-weight:800;
  color:transparent;
  -webkit-text-fill-color:transparent;
  -webkit-background-clip:text;
          background-clip:text;
  animation:
    liquidBaseFlow 9s linear infinite,
    liquidWave 2.2s cubic-bezier(.4,0,.2,1) infinite;
  background-repeat:no-repeat,no-repeat,no-repeat;
  background-size:200% 100%,140% 100%,150% 100%;
  background-position:0% 0%,-140% 0%,-150% 0%;
  will-change:background-position;
}

/* Animation commune */
@keyframes liquidBaseFlow{
  0%,100%{background-position:0% 0%,-140% 0%,-150% 0%;}
  50%{background-position:100% 0%,-140% 0%,-150% 0%;}
}
@keyframes liquidWave{
  0%{background-position:0% 0%,-140% 0%,-150% 0%;}
  60%{background-position:0% 0%,140% 0%,120% 0%;}
  100%{background-position:0% 0%,140% 0%,120% 0%;}
}

/* === Variante blanche/grise pour “BTS SIO” === */
.liquid-text.white{
  background-image:
    linear-gradient(90deg,#f1f1f1 0%,#dcdcdc 50%,#bdbdbd 100%),
    linear-gradient(100deg,transparent 40%,rgba(255,255,255,.85) 50%,transparent 60%),
    linear-gradient(100deg,transparent 45%,rgba(255,255,255,.25) 50%,transparent 55%);
  filter:
    drop-shadow(0 1px 2px rgba(255,255,255,.25))
    drop-shadow(0 0 4px rgba(255,255,255,.15));
}

/* === Variante bleue liquid glass pour “SISR” === */
.liquid-text.blue{
  background-image:
    linear-gradient(90deg,#00c6ff 0%,#0072ff 50%,#1a4bff 100%),
    linear-gradient(100deg,transparent 40%,rgba(255,255,255,.9) 50%,transparent 60%),
    linear-gradient(100deg,transparent 45%,rgba(255,255,255,.3) 50%,transparent 55%);
  filter:
    drop-shadow(0 1px 2px rgba(0,120,255,.3))
    drop-shadow(0 0 6px rgba(0,120,255,.2));
}

/* Mode clair : atténuer un peu */
body.light-mode .liquid-text.white{
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
body.light-mode .liquid-text.blue{
  filter:drop-shadow(0 1px 3px rgba(0,114,255,.25));
}

/* ================= NAVBAR ORIGINALE (opaque, sobre) ================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #0d1117; /* opaque */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.header .logo {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav ul li {
  position: relative;
}

.nav ul li a {
  color: #c9d1d9;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav ul li a:hover,
.nav ul li a:focus-visible {
  background-color: #1a1f29;
  color: #ffffff;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0d1117;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  overflow: hidden;
  z-index: 999;
}

.dropdown-content a {
  display: block;
  color: #c9d1d9;
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  border-radius: 0;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
  background-color: #1a1f29;
  color: #ffffff;
}

.nav ul li:hover .dropdown-content {
  display: block;
}

/* évite que la navbar masque le contenu */
body { padding-top: 70px; }

.activity-card .gdata-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
  padding: 10px;
  border-radius: 8px;
}

body:not(.light-mode) .bts,
body.light-mode .bts {
  position: relative;
  display: inline-block;
  font-weight: 800;
  color: transparent !important;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-image: linear-gradient(90deg, #ffffff 0%, #cfcfcf 50%, #ffffff 100%);
  background-size: 300% 300%;
  animation: gradientShift 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(255,255,255,0.25));
}

body.light-mode .bts {
  background-image: linear-gradient(90deg, #111 0%, #333 50%, #111 100%);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* Animation (douce et visible en continu) */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Lien actif : corrige le fond trop sombre */
body.light-mode .nav ul li a.active {
  background-color: #e0e0e0 !important;
  color: #1a4bff !important;
  border-radius: 8px;
  font-weight: bold;
}









