
:root {
    --primary-color: #70cbf0;
    --primary-color-darker: #0056b3; 
    --secondary-color: #6c757d;
    --secondary-color-darker: #545b62; 
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333;
    --text-color-light: #f8f9fa;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --navbar-height: 70px;
    --navbar-height-scrolled: 60px; 
    --transition-speed: 0.3s ease; 
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(to right, #3fa0f0, #1723ca);
    padding-top: var(--navbar-height);
}
body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

ul { list-style: none; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--primary-color-darker);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 { margin-bottom: 1rem; line-height: 1.2; }
h1 { font-size: 2.8rem; color: var(--dark-color); }
h2 { font-size: 2.2rem; color: var(--dark-color); text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; color: var(--dark-color); text-align: center; margin-bottom: 2rem; } 


.navbar {
    background: linear-gradient(to right, #3fa0f0, #1723ca);
    color: var(--dark-color);
    height: var(--navbar-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0.5rem 0;
    box-shadow: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 100%;
}
.nav-logo img {
    height: calc(var(--navbar-height) - 25px);
    width: auto;
    transition: height var(--transition-speed);
}

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

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--text-color-light);
    padding: 0.5rem;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-color-light);
    transition: width var(--transition-speed);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    font-weight: bold;
}



.navbar.navbar-scrolled {
    background:linear-gradient(to right, #3fa0f0, #1723ca);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: var(--navbar-height-scrolled);
    padding: 0.2rem 0;
}
.navbar.navbar-scrolled .nav-logo {
    color: var(--primary-color);
}
.navbar.navbar-scrolled .nav-logo img {
    height: calc(var(--navbar-height-scrolled) - 20px);
}
.navbar.navbar-scrolled .nav-link {
    color: var(--text-color-light);
}
.navbar.navbar-scrolled .nav-link::after {
    background-color: var(--primary-color);
}
.navbar.navbar-scrolled .hamburger .bar {
    background-color: var(--dark-color);
}


.navbar.navbar-hidden {
    transform: translateY(-100%);
}


.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color-light);
    transition: all var(--transition-speed);
}


.hero-section {
    background: linear-gradient(to right, #3fa0f0, #1723ca), url('https://via.placeholder.com/1920x1080?text=Background+Image') no-repeat center center/cover;
    color: var(--text-color-light);
    
    min-height: calc(30vh - var(--navbar-height)); 
    height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px; 
}
.hero-section h1 { font-size: 3.5rem; margin-bottom: 0.5rem; color: #fff; }
.hero-section #typed-name { color: var(--primary-color); min-height: 1.2em; }
.hero-section .subtitle { font-size: 1.5rem; margin-bottom: 2rem; min-height: 2.2em; }



.hero-section h1 .cursor,
.hero-section .subtitle .cursor {
    display: inline-block;
    background-color: var(--text-color-light);
    margin-left: 0.1em;
    width: 3px;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    transition: background-color var(--transition-speed), transform var(--transition-speed), color var(--transition-speed);
    cursor: pointer;
    border: none;
}
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: var(--primary-color-darker); transform: translateY(-2px); color: #fff; }
.btn-secondary { background-color: var(--secondary-color); color: #fff; }
.btn-secondary:hover { background-color: var(--secondary-color-darker); transform: translateY(-2px); color: #fff; }

/* Sections de contenu */
.content-section { padding: 40px 0; } 
.content-section.bg-light { background-color: var(--light-color); }

/* Section À Propos */
.about-content { display: flex; align-items: center; gap: 2rem; }
.about-image { flex: 1; max-width: 300px; }
.about-image img { border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.about-text { flex: 2; }

/* Section Projets */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}


.project-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.project-card img { width: 100%; height: 200px; object-fit: cover; }
.project-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-info h3 { margin-bottom: 0.5rem; text-align: left; } /* Aligner les titres de carte à gauche */
.project-info p { font-size: 0.9rem; color: #555; flex-grow: 1; margin-bottom: 1rem; }
.project-links { margin-top: auto; }
.project-links .btn { margin-right: 0.5rem; margin-bottom: 0.5rem; font-size: 0.9rem; padding: 0.6rem 1.2rem; }
.project-links .btn i { margin-left: 0.3rem; }

/* Section Compétences */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.skill-category h3 { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 0.5rem; margin-bottom: 1rem; text-align: left; } /* Aligner titre à gauche */
.skill-category ul li { padding: 0.5rem 0; font-size: 1.1rem; }
.skill-category ul li i { margin-right: 0.8rem; color: var(--secondary-color); width: 20px; text-align: center; }

/* Section Contact */
.contact-methods { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.contact-methods .btn i { margin-right: 0.5rem; }

/* Styles pour Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
    transition-delay: 0.1s;
    will-change: opacity, transform;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}
.project-grid .reveal-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.project-grid .reveal-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.skills-grid .reveal-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.skills-grid .reveal-on-scroll:nth-child(3) { transition-delay: 0.3s; }


.terminal {
  background-color: #1e1e1e;
  color: #f5faf9;
  padding: 1em;
  border-radius: 5px;
  font-family: monospace;
  overflow-x: auto;
}

/* Styles pour la Mosaïque d'images et Lightbox */
.mosaic {
    display: flex;
    gap: 15px; 
    justify-content: center;
    align-items: flex-start; 
    flex-wrap: wrap; 
    margin-bottom: 1.5rem; 
}

.mosaic img {
    width: auto;
    height: 150px;
    max-width: 32%; 
    object-fit: contain; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer; 
}

.mosaic img:hover {
    transform: translateY(-8px) scale(1.03); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}



/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 2000; 
    padding: 20px;
}

.lightbox2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5faf9;
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 2000; 
    padding: 20px;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90vh; 
    object-fit: contain; 
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    font-weight: bold;
    color: #4e37e1;
    cursor: pointer;
    transition: color 0.3s ease;
}

#lightbox-close:hover {
    color: #ccc;
}


.timeline-process {
    position: relative;   
    padding-left: 45px;   
    max-width: 800px;     
    width: 90%;           
    margin: 2.5rem auto;  
}


.timeline-process::before {
    content: '';
    position: absolute;
    left: 20px; 
    top: 15px;
    bottom: 15px;
    width: 3px; 
    background-color: var(--primary-color);
    border-radius: 3px;
}

.timeline-step {
    position: relative; 
    margin-bottom: 2rem;
}


.timeline-step::before {
    content: '';
    position: absolute;
    top: 19px;  
    left: -25px; 
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
}

.timeline-title {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: #fff;
    border: 1px solid #3fa0f0;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color); 
}

 .swag-info-card {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        background-color: #f9f9fb;
        border: 1px solid #e1e4e8;
        border-radius: 8px;
        padding: 20px 25px;
        max-width: 800px;
        margin: 2.5rem auto;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        line-height: 1.6;
        width: 90%; 
    }    
    
    .swag-info-card p {
        color: #586069;
        font-size: 1.1em;
    }
    .swag-info-card ul {
        list-style: none;
        padding-left: 0;
    }
    .swag-info-card li {
        padding: 8px 0;
        border-bottom: 1px solid #e1e4e8;
    }
    .swag-info-card li:last-child {
        border-bottom: none;
    }
    .swag-info-card li::before {
        content: "🔹";
        margin-right: 10px;
        color: #0366d6;
    }
    .swag-info-card strong {
        color: #24292e;
    }
    .schema-image {
    display: block;          
    max-width: 800px;        
    width: 90%;              
    margin: 2.5rem auto;     
    border-radius: 8px;      
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    cursor: pointer;
}



.conclusion-summary-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2rem auto 0;
    max-width: 850px; 
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color); 
}

.conclusion-summary-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.conclusion-points {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.conclusion-points li {
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.conclusion-points li:last-child {
    margin-bottom: 0;
}

.conclusion-points li i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 1.2rem;
    margin-top: 0.1em; 
    width: 25px; 
}

.conclusion-final-thought {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef; 
    font-style: italic;
    color: #555;
}


@media (max-width: 768px) {
    .conclusion-summary-card {
        padding: 1.5rem;
        border-left-width: 4px;
    }
    .conclusion-points li i {
        margin-right: 1rem;
    }
}


        


.responsive-pdf-iframe {
    display: block;          
    width: 100%;             
    max-width: 980px;       
    height: 650px;           
    margin: 20px auto;       
    border: 1px solid #ddd;  
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

/* Footer */
footer { background-color: var(--dark-color); color: var(--text-color-light); text-align: center; padding: 2rem 0; margin-top: auto; /* Pour pousser le footer en bas */ }
footer .container { display: flex; flex-direction: column; align-items: center; }
.social-links { margin-top: 0.5rem; }
.social-links a { color: var(--text-color-light); margin: 0 0.5rem; font-size: 1.5rem; transition: color var(--transition-speed); }
.social-links a:hover { color: var(--primary-color); }


@media (max-width: 768px) {
    html { font-size: 15px; }

    .navbar .container { padding: 0 15px; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        flex-direction: column;
        background: linear-gradient(to right, #2bc4eb, #4788db);
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        text-align: center;
        transition: left var(--transition-speed);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding-top: 2rem;
        overflow-y: auto;
    }
    .navbar.navbar-scrolled .nav-menu {
         top: var(--navbar-height-scrolled);
         height: calc(100vh - var(--navbar-height-scrolled));
    }

    .nav-menu.active { left: 0; }
    .nav-item { margin: 1.5rem 0; }
    .nav-link {
        font-size: 1.2rem;
        color: var(--text-color);
    }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.active {
        color: var(--primary-color);
    }

    .hamburger { display: block; z-index: 1001; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .navbar.navbar-scrolled .hamburger.active .bar {
        background-color: var(--dark-color);
    }


    .hero-section { min-height: calc(80vh - var(--navbar-height)); padding-top: 40px; padding-bottom: 40px; } /* Ajustement pour mobile */
    .hero-section h1 { font-size: 2.5rem; }
    .hero-section .subtitle { font-size: 1.2rem; }

    .about-content { flex-direction: column; text-align: center; }
    .about-image { margin-bottom: 1.5rem; max-width: 200px; }

    .mosaic img {
        height: 120px; 
        max-width: 48%; 
    }
} 

@media (max-width: 480px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section .subtitle { font-size: 1rem; }
    h2 { font-size: 1.8rem; }
    .project-grid { grid-template-columns: 1fr; }
}
    .mosaic img {
        height: 100px;
        max-width: 100%; 
    }
    #lightbox-close { 
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    .responsive-pdf-iframe {
        height: 55vh; 
        min-height: 300px;
    }
   
